summaryrefslogtreecommitdiff
path: root/src/regress
diff options
context:
space:
mode:
authortb <>2023-11-09 08:29:53 +0000
committertb <>2023-11-09 08:29:53 +0000
commitbe423dedd29a6eb1dc4da38c241dc3a85eb9e271 (patch)
tree52b20f9d43bbe50d322dc5f0371f87bf773e84a2 /src/regress
parent8262b39a51d36e26c823d43a1adeadbe3f6ef196 (diff)
downloadopenbsd-be423dedd29a6eb1dc4da38c241dc3a85eb9e271.tar.gz
openbsd-be423dedd29a6eb1dc4da38c241dc3a85eb9e271.tar.bz2
openbsd-be423dedd29a6eb1dc4da38c241dc3a85eb9e271.zip
Fix X509_ALGOR_set0() usage in rsa_alg_set_oaep_padding()
Replace X509_ALGOR_set0() with X509_ALGOR_set0_by_nid(). This way there is no missing error checking for OBJ_nid2obj() and no nested functions. Slightly more importantly, this plugs two long standing potential leaks in this function (or previously rsa_cms_encrypt()) due to missing error checking: in the unlikely event that X509_ALGOR_set0() failed, astr/ostr would leak. ok jsing
Diffstat (limited to 'src/regress')
0 files changed, 0 insertions, 0 deletions