diff options
author | tb <> | 2023-11-09 08:29:53 +0000 |
---|---|---|
committer | tb <> | 2023-11-09 08:29:53 +0000 |
commit | be423dedd29a6eb1dc4da38c241dc3a85eb9e271 (patch) | |
tree | 52b20f9d43bbe50d322dc5f0371f87bf773e84a2 /src/regress | |
parent | 8262b39a51d36e26c823d43a1adeadbe3f6ef196 (diff) | |
download | openbsd-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