summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/p_legacy.c
diff options
context:
space:
mode:
authortb <>2024-02-18 15:41:50 +0000
committertb <>2024-02-18 15:41:50 +0000
commit8649ab60e71ce1289b2311ce03e64455620cb86b (patch)
tree0795181fb795082de7682d5b584a19be8615bed5 /src/lib/libcrypto/evp/p_legacy.c
parent8b5c8b457a257ae2930ac247453e99a1dee9a693 (diff)
downloadopenbsd-8649ab60e71ce1289b2311ce03e64455620cb86b.tar.gz
openbsd-8649ab60e71ce1289b2311ce03e64455620cb86b.tar.bz2
openbsd-8649ab60e71ce1289b2311ce03e64455620cb86b.zip
Add EVP_CIPHER_CTX_legacy_clear()
OpenSSL 1.1 made EVP_CIPHER_CTX_init() an alias of EVP_CIPHER_CTX_reset(). In particular, it changed signature and it would no longer leak internal state if used on an already used ctx. On the other hand, it can't be used for ctx on the stack. libcrypto still has a few ctx on the stack which will be converted to heap allocated contexts at some point. Until this is completed, we will use EVP_CIPHER_CTX_legacy_clear() internally, so that the public API can be changed to match OpenSSL 1.1. ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/p_legacy.c')
0 files changed, 0 insertions, 0 deletions