summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/p_lib.c
diff options
context:
space:
mode:
authortb <>2023-09-10 16:53:56 +0000
committertb <>2023-09-10 16:53:56 +0000
commit3ffd50d46144ae89cb26a04218127b0cf3038673 (patch)
treedc2f850c2a6a79fc072ad216f6c8f0ea4e6f3e92 /src/lib/libcrypto/evp/p_lib.c
parentbf15262a311df853b072fcf1dedb7cc8735057ea (diff)
downloadopenbsd-3ffd50d46144ae89cb26a04218127b0cf3038673.tar.gz
openbsd-3ffd50d46144ae89cb26a04218127b0cf3038673.tar.bz2
openbsd-3ffd50d46144ae89cb26a04218127b0cf3038673.zip
EVP_CipherInit(): use EVP_CIPHER_CTX_cleanup()
Before EVP_CIPHER_CTX was opaque, callers could pass an uninitialized ctx into EVP_CipherInit() and calling EVP_CIPHER_CTX_cleanup() on such a ctx would end in tears. The only way to initialize a ctx is by way of EVP_CIPHER_CTX_new(), on which we can call EVP_CIPHER_CTX_cleanup() and avoid silly leaks on ctx reuse. This also allows some simplifications in the documentation. There are more changes of this kind that should be done all over libcrypto. They will be tackled in subsequent commits. "makes a lot of sense" schwarze ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/p_lib.c')
0 files changed, 0 insertions, 0 deletions