summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/encode.c
diff options
context:
space:
mode:
authortb <>2023-03-10 09:56:09 +0000
committertb <>2023-03-10 09:56:09 +0000
commit72196349be7c62460f3c81bbcf4f357d46ba91de (patch)
tree567c9f4485e429cbc9cde9f58e0a77318fe5d88b /src/lib/libcrypto/evp/encode.c
parente618485baac7a3a801239050e123640f8895eac9 (diff)
downloadopenbsd-72196349be7c62460f3c81bbcf4f357d46ba91de.tar.gz
openbsd-72196349be7c62460f3c81bbcf4f357d46ba91de.tar.bz2
openbsd-72196349be7c62460f3c81bbcf4f357d46ba91de.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/evp/encode.c')
0 files changed, 0 insertions, 0 deletions