en EVP_PKEY_CTX_set_rsa_keygen_pubexp() BIGNUM management
[openssl.git] / apps / genrsa.c
index 04315a559bf45bb164aa480b6a391c183b54771f..f471814e0844491011ccf1ec99245461fed58dd7 100644 (file)
@@ -188,7 +188,7 @@ opthelp:
         BIO_printf(bio_err, "Error allocating RSA public exponent\n");
         goto end;
     }
-    if (EVP_PKEY_CTX_set_rsa_keygen_pubexp(ctx, bn) <= 0) {
+    if (EVP_PKEY_CTX_set1_rsa_keygen_pubexp(ctx, bn) <= 0) {
         BIO_printf(bio_err, "Error setting RSA public exponent\n");
         goto end;
     }