diff options
author | tb <> | 2018-05-30 15:59:33 +0000 |
---|---|---|
committer | tb <> | 2018-05-30 15:59:33 +0000 |
commit | e5d993a83a8d6ac7bb0256a4a09f128ce3019905 (patch) | |
tree | 1da781cec26d49a1339bb21bf801177950d2a9e3 /src/lib/libcrypto/ui/ui.h | |
parent | 358c59aecf17d566f9e65cca771cccd144234716 (diff) | |
download | openbsd-e5d993a83a8d6ac7bb0256a4a09f128ce3019905.tar.gz openbsd-e5d993a83a8d6ac7bb0256a4a09f128ce3019905.tar.bz2 openbsd-e5d993a83a8d6ac7bb0256a4a09f128ce3019905.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/libcrypto/ui/ui.h')
0 files changed, 0 insertions, 0 deletions