boringssl/crypto/bytestring
David Benjamin a8653208ec Add CBB_zero to set a CBB to the zero state.
One tedious thing about using CBB is that you can't safely CBB_cleanup
until CBB_init is successful, which breaks the general 'goto err' style
of cleanup. This makes it possible:

  CBB_zero ~ EVP_MD_CTX_init
  CBB_init ~ EVP_DigestInit
  CBB_cleanup ~ EVP_MD_CTX_cleanup

Change-Id: I085ecc4405715368886dc4de02285a47e7fc4c52
Reviewed-on: https://boringssl-review.googlesource.com/5267
Reviewed-by: Adam Langley <agl@google.com>
2015-07-01 19:45:43 +00:00
..
ber.c Make CBS_get_any_asn1_element accept only DER. 2015-06-03 22:08:16 +00:00
bytestring_test.cc Add CBB_zero to set a CBB to the zero state. 2015-07-01 19:45:43 +00:00
cbb.c Add CBB_zero to set a CBB to the zero state. 2015-07-01 19:45:43 +00:00
cbs.c Make CBS_get_any_asn1_element accept only DER. 2015-06-03 22:08:16 +00:00
CMakeLists.txt Add malloc test support to unit tests. 2015-05-21 17:59:48 +00:00
internal.h Export |CBS_get_any_ber_asn1_element|. 2015-06-05 21:56:42 +00:00