diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-05-31 17:34:14 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-05-31 17:34:14 +0000 |
commit | b28dea4e1026534afc7783e20f92089a5b4e744a (patch) | |
tree | 6e04f5a954e1a092d35a44b7225be49cb4c33ae0 /crypto/evp/pmeth_lib.c | |
parent | 21f0db692dcde2874caaacb0273f0d273a950e03 (diff) |
New pkey functions for keygen callbacks and retrieving operation type.
Diffstat (limited to 'crypto/evp/pmeth_lib.c')
-rw-r--r-- | crypto/evp/pmeth_lib.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/evp/pmeth_lib.c b/crypto/evp/pmeth_lib.c index 069cdaf3ff..fb07c00d89 100644 --- a/crypto/evp/pmeth_lib.c +++ b/crypto/evp/pmeth_lib.c @@ -310,6 +310,17 @@ int EVP_PKEY_CTX_ctrl_str(EVP_PKEY_CTX *ctx, return ctx->pmeth->ctrl_str(ctx, name, value); } +int EVP_PKEY_CTX_get_operation(EVP_PKEY_CTX *ctx) + { + return ctx->operation; + } + +void EVP_PKEY_CTX_set0_keygen_info(EVP_PKEY_CTX *ctx, int *dat, int datlen) + { + ctx->keygen_info = dat; + ctx->keygen_info_count = datlen; + } + void EVP_PKEY_CTX_set_data(EVP_PKEY_CTX *ctx, void *data) { ctx->data = data; |