diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-11-23 16:07:46 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-11-24 19:18:44 +0000 |
commit | 396d5fd091f68729f0a038a283fe3cca3eb670dd (patch) | |
tree | a6691fe07c7003e48f6907a3281236d08b391e9c /crypto | |
parent | 93972b8c72d5c074278654b3380a8215d741ea1f (diff) | |
download | openssl-396d5fd091f68729f0a038a283fe3cca3eb670dd.tar.gz |
Add EVP_MD_CTX_ctrl function.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/evp/digest.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/evp/digest.c b/crypto/evp/digest.c index 607f0a1a0d..32a87f627d 100644 --- a/crypto/evp/digest.c +++ b/crypto/evp/digest.c @@ -364,3 +364,14 @@ int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) return 1; } + +int EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int cmd, int p1, void *p2) +{ + if (ctx->digest && ctx->digest->md_ctrl) { + int ret = ctx->digest->md_ctrl(ctx, cmd, p1, p2); + if (ret <= 0) + return 0; + return 1; + } + return 0; +} |