summaryrefslogtreecommitdiff
path: root/lib/libcrypto/evp/m_sm3.c
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-06-20 14:05:47 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-06-20 14:05:47 +0000
commit95ba1e8c3cc2342a14cedc800d40ce81a259e231 (patch)
treed38514e0dd228847f95c15b2064060b213fb8738 /lib/libcrypto/evp/m_sm3.c
parent6fd6d59135158cd9395f6718c3e53b10444db411 (diff)
Clean up EVP_PKEY_CTX_meth_dup()
Explicitly check against NULL, replace malloc() plus manual zeroing with calloc(). Use EVP_PKEY_up_ref() rather than handrolling it and use a more normal error idiom. There still seems to be a bug in here in that the ENGINE's refcount isn't bumped, but that will be investigated and fixed separately. ok jsing
Diffstat (limited to 'lib/libcrypto/evp/m_sm3.c')
0 files changed, 0 insertions, 0 deletions