use ERR_peek_last_error() instead of ERR_peek_error() to ignore
[openssl.git] / crypto / bn / bn_lib.c
index c71f0b0863e530564310505480d712f1409aa087..a016cb7f5379776658357367bd86d5383e297392 100644 (file)
@@ -128,7 +128,7 @@ int BN_get_params(int which)
        else return(0);
        }
 
-BIGNUM *BN_value_one(void)
+const BIGNUM *BN_value_one(void)
        {
        static BN_ULONG data_one=1L;
        static BIGNUM const_one={&data_one,1,1,0};
@@ -315,7 +315,7 @@ static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
 
        if (words > (INT_MAX/(4*BN_BITS2)))
                {
-               BNerr(BN_F_BN_EXPAND_INTERNAL,BN_R_TOO_LARGE);
+               BNerr(BN_F_BN_EXPAND_INTERNAL,BN_R_BIGNUM_TOO_LONG);
                return NULL;
                }