AlgorithmIdentifier bugs
[oweals/openssl.git] / crypto / bn / bn_lib.c
index c32958c1012e1e8a1aaae3baa607efa342b22238..7767d6517022eb2062a7bffed6c1e4791e7793cc 100644 (file)
@@ -62,6 +62,7 @@
 #endif
 
 #include <assert.h>
+#include <limits.h>
 #include <stdio.h>
 #include "cryptlib.h"
 #include "bn_lcl.h"
@@ -321,7 +322,7 @@ BIGNUM *bn_expand2(BIGNUM *b, int words)
                {
                if (words > (INT_MAX/(4*BN_BITS2)))
                        {
-                       BNerr(BN_F_BN_EXPAND2,BN_R_TOO_LARGE);
+                       BNerr(BN_F_BN_EXPAND2,BN_R_BIGNUM_TOO_LONG);
                        return NULL;
                        }