Use ERR_R_*_LIB instead of ERR_LIB_* as reason code for sub-libraries
[openssl.git] / crypto / rsa / rsa_gen.c
index 53545edb71ac6158d3299a27458419e3c0617d34..3a124e5b6682d421690d1435fa756b40a1d1a136 100644 (file)
@@ -410,7 +410,7 @@ static int rsa_multiprime_keygen(RSA *rsa, int bits, int primes,
     ok = 1;
  err:
     if (ok == -1) {
-        ERR_raise(ERR_LIB_RSA, ERR_LIB_BN);
+        ERR_raise(ERR_LIB_RSA, ERR_R_BN_LIB);
         ok = 0;
     }
     BN_CTX_end(ctx);