diff options
author | David Benjamin <davidben@chromium.org> | 2015-03-10 23:41:53 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-03-13 22:17:59 +0300 |
commit | 33c8d60a1ffa74fdebe8bc161f5867cc0e887753 (patch) | |
tree | d9369c6f79ba63e8e9a10f6cce55120c29702b64 /include/openssl/evp.h | |
parent | b18f02481678994f8d679029670d345565af7ae7 (diff) |
Remove EVP_PKEY_CTRL_DIGESTINIT -2 special-case in md_begin_digest.
All EVP_PKEY types return 1 on that. (It can go away entirely when
EVP_PKEY_HMAC is gone.) This removes a place internally where we're sensitive
to the failure code.
Change-Id: Ic6cda2da9337ba7ef1c66a18e40c5dcc44fcf840
Reviewed-on: https://boringssl-review.googlesource.com/3871
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/evp.h')
-rw-r--r-- | include/openssl/evp.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/openssl/evp.h b/include/openssl/evp.h index 396624ab..49cf03b1 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h @@ -590,7 +590,10 @@ OPENSSL_EXPORT int EVP_PKEY_CTX_get_signature_md(EVP_PKEY_CTX *ctx, /* EVP_PKEY_CTRL_DIGESTINIT is an internal value. It's called by * EVP_DigestInit_ex to signal the |EVP_PKEY| that a digest operation is - * starting. */ + * starting. + * + * TODO(davidben): This is only needed to support the deprecated HMAC |EVP_PKEY| + * types. */ #define EVP_PKEY_CTRL_DIGESTINIT 3 /* EVP_PKEY_CTRL_PEER_KEY is called with different values of |p1|: |