Cleanup OPENSSL_NO_xxx, part 1
[openssl.git] / crypto / evp / pmeth_gn.c
index b006a3710a1473e12bec466ba0f0d1158ee60842..ab46e5a7d9374036e189ddb85cdee21b01663472 100644 (file)
@@ -61,7 +61,7 @@
 #include "cryptlib.h"
 #include <openssl/objects.h>
 #include <openssl/evp.h>
-#include <openssl/bn.h>
+#include "internal/bn_int.h"
 #include "evp_locl.h"
 
 int EVP_PKEY_paramgen_init(EVP_PKEY_CTX *ctx)
@@ -178,7 +178,7 @@ EVP_PKEY_gen_cb *EVP_PKEY_CTX_get_cb(EVP_PKEY_CTX *ctx)
 
 static int trans_cb(int a, int b, BN_GENCB *gcb)
        {
-       EVP_PKEY_CTX *ctx = gcb->arg;
+       EVP_PKEY_CTX *ctx = BN_GENCB_get_arg(gcb);
        ctx->keygen_info[0] = a;
        ctx->keygen_info[1] = b;
        return ctx->pkey_gencb(ctx);