diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-04-07 16:42:09 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-04-07 16:42:09 +0000 |
commit | f733a5ef0ede95494996ebef63e2a04bdc963230 (patch) | |
tree | c8d16636f1eef19cca71f7cc1dee19eacf7d2efd /crypto/evp/pmeth_lib.c | |
parent | 5da98aa687ebb54358c35bf9450afcaa90a4de8a (diff) |
Initial functions for main EVP_PKEY_METHOD operations.
No method implementations yet.
Diffstat (limited to 'crypto/evp/pmeth_lib.c')
-rw-r--r-- | crypto/evp/pmeth_lib.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/crypto/evp/pmeth_lib.c b/crypto/evp/pmeth_lib.c index 3a854f00c4..d229b0996d 100644 --- a/crypto/evp/pmeth_lib.c +++ b/crypto/evp/pmeth_lib.c @@ -167,4 +167,12 @@ int EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype, } - +int EVP_PKEY_CTX_ctrl_str(EVP_PKEY_CTX *ctx, char *name, char *value) + { + if (!ctx || !ctx->pmeth || !ctx->pmeth->ctrl) + { + EVPerr(EVP_F_EVP_PKEY_CTX_CTRL, EVP_R_COMMAND_NOT_SUPPORTED); + return -2; + } + return ctx->pmeth->ctrl_str(ctx, name, value); + } |