diff options
author | tb <> | 2018-05-30 15:59:33 +0000 |
---|---|---|
committer | tb <> | 2018-05-30 15:59:33 +0000 |
commit | 60382f7d19bb7b7087eb92001a800a712bcc4f4a (patch) | |
tree | 1da781cec26d49a1339bb21bf801177950d2a9e3 /src/lib/libssl/s3_lib.c | |
parent | ab8347d6b3d1d095f308d5d9bde3c6bc7e2a6db6 (diff) | |
download | openbsd-60382f7d19bb7b7087eb92001a800a712bcc4f4a.tar.gz openbsd-60382f7d19bb7b7087eb92001a800a712bcc4f4a.tar.bz2 openbsd-60382f7d19bb7b7087eb92001a800a712bcc4f4a.zip |
Add const to both arguments of X509_certificate_type() and clean up
a little:
Use X509_get0_pubkey() in place of X509_get_pubkey() and EVP_PKEY_free().
Check return value of the former in the appropriate place and simplify the
logic for dealing with the potentially NULL pkey argument (includes a neat
tweak from jsing). Finally, kill an ugly comment that has been rotting for
twenty years and merge the lines around it.
tested in a bulk build by sthen
ok jsing
Diffstat (limited to 'src/lib/libssl/s3_lib.c')
0 files changed, 0 insertions, 0 deletions