summaryrefslogtreecommitdiffstats
path: root/crypto/evp/pmeth_gn.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-05-31 17:34:14 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-05-31 17:34:14 +0000
commitb28dea4e1026534afc7783e20f92089a5b4e744a (patch)
tree6e04f5a954e1a092d35a44b7225be49cb4c33ae0 /crypto/evp/pmeth_gn.c
parent21f0db692dcde2874caaacb0273f0d273a950e03 (diff)
New pkey functions for keygen callbacks and retrieving operation type.
Diffstat (limited to 'crypto/evp/pmeth_gn.c')
-rw-r--r--crypto/evp/pmeth_gn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/evp/pmeth_gn.c b/crypto/evp/pmeth_gn.c
index da7d800f53..eb81d52134 100644
--- a/crypto/evp/pmeth_gn.c
+++ b/crypto/evp/pmeth_gn.c
@@ -166,6 +166,11 @@ void EVP_PKEY_CTX_set_cb(EVP_PKEY_CTX *ctx, EVP_PKEY_gen_cb *cb)
ctx->pkey_gencb = cb;
}
+EVP_PKEY_gen_cb *EVP_PKEY_CTX_get_cb(EVP_PKEY_CTX *ctx)
+ {
+ return ctx->pkey_gencb;
+ }
+
/* "translation callback" to call EVP_PKEY_CTX callbacks using BN_GENCB
* style callbacks.
*/