This adds runtime checks that types which are aliases of ASN1_STRING are in fact the expected ASN.1 type. Not comprehensive -- I got the obvious ones from x509.h. These checks are not generally covered by unit tests, except for one which was easy to test as a sanity-check. Bug: 445 Change-Id: I8cd689b6b1e6121fce62c7f0ab25fee7e2a0b2ff Update-Note: Various X.509 functions will now fail given the wrong ASN1_STRING subtype. Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/54286 Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: David Benjamin <davidben@google.com>chromium-5359
parent
7b2795a323
commit
fd522968ee
7 changed files with 42 additions and 1 deletions
Loading…
Reference in new issue