diff options
author | Matt Caswell <matt@openssl.org> | 2014-10-28 22:59:34 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2014-12-08 21:40:52 +0000 |
commit | 68c29f61a404db3d620278878d77ca90ad853b8d (patch) | |
tree | c9f77787e3708781c65e5aa02e705c1937e5a13b /crypto/evp/pmeth_gn.c | |
parent | 5784a52145d0062d42724d4d0fab3b4c82de35ee (diff) | |
download | openssl-68c29f61a404db3d620278878d77ca90ad853b8d.tar.gz |
Implement internally opaque bn access from evp
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/evp/pmeth_gn.c')
-rw-r--r-- | crypto/evp/pmeth_gn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/evp/pmeth_gn.c b/crypto/evp/pmeth_gn.c index b006a3710a..ab46e5a7d9 100644 --- a/crypto/evp/pmeth_gn.c +++ b/crypto/evp/pmeth_gn.c @@ -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); |