380bc30f0c
|ASN1_INTEGER_set| and |BN_to_ASN1_INTEGER| disagree about how to encode zero. OpenSSL master has aligned around the behaviour of the latter (i.e. a single zero byte) so fix |ASN1_INTEGER_set| to do that. (This is also the form that DER requires.) At the same time, fix undefined behaviour when negative a |long| whose value is |LONG_MIN|. Change-Id: I1198de35e61a286ac6472e99152f3d22fda59044 Reviewed-on: https://boringssl-review.googlesource.com/24485 Commit-Queue: Adam Langley <agl@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> Reviewed-by: David Benjamin <davidben@google.com> |
||
---|---|---|
.. | ||
a_bitstr.c | ||
a_bool.c | ||
a_d2i_fp.c | ||
a_dup.c | ||
a_enum.c | ||
a_gentm.c | ||
a_i2d_fp.c | ||
a_int.c | ||
a_mbstr.c | ||
a_object.c | ||
a_octet.c | ||
a_print.c | ||
a_strnid.c | ||
a_time.c | ||
a_type.c | ||
a_utctm.c | ||
a_utf8.c | ||
asn1_lib.c | ||
asn1_locl.h | ||
asn1_par.c | ||
asn1_test.cc | ||
asn_pack.c | ||
charmap.pl | ||
CMakeLists.txt | ||
f_enum.c | ||
f_int.c | ||
f_string.c | ||
tasn_dec.c | ||
tasn_enc.c | ||
tasn_fre.c | ||
tasn_new.c | ||
tasn_typ.c | ||
tasn_utl.c | ||
time_support.c |