diff options
author | tb <> | 2023-03-10 09:56:09 +0000 |
---|---|---|
committer | tb <> | 2023-03-10 09:56:09 +0000 |
commit | 4c05c0a31024777788d7b110368169a1a85eeb2c (patch) | |
tree | 567c9f4485e429cbc9cde9f58e0a77318fe5d88b /src/lib/libcrypto/ui | |
parent | 1e4a6f5f3046ceb9e3739079089d950ec2b9715f (diff) | |
download | openbsd-4c05c0a31024777788d7b110368169a1a85eeb2c.tar.gz openbsd-4c05c0a31024777788d7b110368169a1a85eeb2c.tar.bz2 openbsd-4c05c0a31024777788d7b110368169a1a85eeb2c.zip |
Return the correct type for ASN.1 BOOLEANs
ASN.1 BOOLEANs and ASN.1 NULL are handled specially in the ASN.1 sausage
factory and they are special in that they don't have a->value.ptr set.
Both need to be special cased here since they fail the a->type.ptr != NULL
check.
Apart from fixing an obvious bug in ASN1_TYPE_get(), this fixes another
crash in openssl(1) asn1parse. There is more to do in the vicinity, but
that is more complex and will have to wait for OpenBSD 7.3-current.
with/ok jsing
Diffstat (limited to 'src/lib/libcrypto/ui')
0 files changed, 0 insertions, 0 deletions