boringssl/crypto/bytestring
Adam Langley d096c06b34 bytestring: document that |CBS_get_optional_asn1| can have a NULL output.
On the other hand, the type-specific
|CBS_get_optional_asn1_octet_string| must have a valid pointer and we
should check this in the “present” case or there could be a lucking
crash in some user waiting for an expected value to be missing.

Change-Id: Ida40e069ac7f0e50967e3f6c6b3fc01e49bd8894
Reviewed-on: https://boringssl-review.googlesource.com/26564
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2018-03-19 20:22:25 +00:00
..
asn1_compat.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ber.c Support high tag numbers in CBS/CBB. 2018-01-03 22:28:32 +00:00
bytestring_test.cc Add a function for encoding SET OF. 2018-01-05 23:39:02 +00:00
cbb.c Add some more utility functions to bytestring. 2018-01-25 23:51:36 +00:00
cbs.c bytestring: document that |CBS_get_optional_asn1| can have a NULL output. 2018-03-19 20:22:25 +00:00
CMakeLists.txt Convert bytestring_test to GTest. 2017-04-17 14:19:47 +00:00
internal.h Run the comment converter on libcrypto. 2017-08-18 21:49:04 +00:00