projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New pkey functions for keygen callbacks and retrieving operation type.
[openssl.git]
/
crypto
/
evp
/
pmeth_gn.c
diff --git
a/crypto/evp/pmeth_gn.c
b/crypto/evp/pmeth_gn.c
index da7d800f53629768e85c73018978da779453425a..eb81d521348e9bd3aec28eb29194054fc399ec7f 100644
(file)
--- 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.
*/