From 29c1d2cf8620ad14e06d8e7ff91db8f4de04d481 Mon Sep 17 00:00:00 2001 From: Robert Sloan Date: Mon, 30 Oct 2017 14:10:28 -0700 Subject: external/boringssl: Sync to ba94746eb2b4b59a0eb72047e4ca2d2d54454c87. This includes the following changes: https://boringssl.googlesource.com/boringssl/+log/7f8c553d7f4db0a6ce727f2986d41bf8fe8ec4bf..ba94746eb2b4b59a0eb72047e4ca2d2d54454c87 Test: BoringSSL CTS Presubmits Change-Id: I5283ca8ec80f4abbc2543fece2ecf2b33240c6e4 --- src/crypto/bn_extra/bn_asn1.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/crypto/bn_extra') diff --git a/src/crypto/bn_extra/bn_asn1.c b/src/crypto/bn_extra/bn_asn1.c index 8b939da5..0d96573a 100644 --- a/src/crypto/bn_extra/bn_asn1.c +++ b/src/crypto/bn_extra/bn_asn1.c @@ -42,22 +42,6 @@ int BN_parse_asn1_unsigned(CBS *cbs, BIGNUM *ret) { return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL; } -int BN_parse_asn1_unsigned_buggy(CBS *cbs, BIGNUM *ret) { - CBS child; - if (!CBS_get_asn1(cbs, &child, CBS_ASN1_INTEGER) || - CBS_len(&child) == 0) { - OPENSSL_PUT_ERROR(BN, BN_R_BAD_ENCODING); - return 0; - } - - // This function intentionally does not reject negative numbers or non-minimal - // encodings. Estonian IDs issued between September 2014 to September 2015 are - // broken. See https://crbug.com/532048 and https://crbug.com/534766. - // - // TODO(davidben): Remove this code and callers in March 2016. - return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL; -} - int BN_marshal_asn1(CBB *cbb, const BIGNUM *bn) { // Negative numbers are unsupported. if (BN_is_negative(bn)) { -- cgit v1.2.3