summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/comp/comp_lib.c
diff options
context:
space:
mode:
authortb <>2022-01-09 15:15:25 +0000
committertb <>2022-01-09 15:15:25 +0000
commit12dd2352d38b1ef2237d623bc6b869d169e71567 (patch)
treeb42edbe525fc7c43874d4c14d0981bb1cb4e2d3d /src/lib/libcrypto/comp/comp_lib.c
parent98fb653e64884887dde11a1e705e45a6290548d1 (diff)
downloadopenbsd-12dd2352d38b1ef2237d623bc6b869d169e71567.tar.gz
openbsd-12dd2352d38b1ef2237d623bc6b869d169e71567.tar.bz2
openbsd-12dd2352d38b1ef2237d623bc6b869d169e71567.zip
Prepare to provide EVP_MD_CTX{,_set}_pkey_ctx()
This API with very strange ownership handling is used by Ruby 3.1, unfortunately. For unclear reasons, it was decided that the caller retains ownership of the pctx passed in. EVP_PKEY_CTX aren't refcounted, so a flag was added to make sure that md_ctx->pctx is not freed in EVP_MD_CTX_{cleanup,reset}(). Since EVP_MD_CTX_copy_ex() duplicates the md_ctx->pctx, the flag also needs to be unset on the duplicated EVP_MD_CTX. ok inoguchi jsing
Diffstat (limited to 'src/lib/libcrypto/comp/comp_lib.c')
0 files changed, 0 insertions, 0 deletions