summaryrefslogtreecommitdiffstats
path: root/crypto/hmac/hmac_local.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-01-04 19:24:39 +0100
committerDmitry Belyavskiy <beldmit@gmail.com>2020-01-06 13:34:38 +0300
commit60a3399721a48931b137ae4d966a9ef4b6a85d11 (patch)
tree7c0018dc9b55d48fcaabf5dd779ea2cb72455d57 /crypto/hmac/hmac_local.h
parentbc24e3ee52aacf3afe700617a13995c8ac96c8d5 (diff)
EVP: Fix method to determine if a PKEY is legacy or not
For the implementation of EVP_PKEY_CTX_new(), we determined if an EVP_PKEY wass legacy or not by looking at 'pkey->pkey.ptr'. It turns out that this code could get an unassigned EVP_PKEY, with that pointer being NULL, and the determination proven incorrect. The check now looks at 'pkey->ameth' instead. Fixes #10704 Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/10758)
Diffstat (limited to 'crypto/hmac/hmac_local.h')
0 files changed, 0 insertions, 0 deletions