From: doug Date: Sun, 25 Oct 2015 20:15:06 +0000 (+0000) Subject: Change test to use length 128 (shortest long-form encoding). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a0a767665dc33b52b3e269753bfd9bbca4f396ac;p=openbsd Change test to use length 128 (shortest long-form encoding). From BoringSSL commit: d13a5e15d4e4eb51513be665306a2beba39869df --- diff --git a/regress/lib/libssl/bytestring/bytestringtest.c b/regress/lib/libssl/bytestring/bytestringtest.c index 808fd0cc873..52752699020 100644 --- a/regress/lib/libssl/bytestring/bytestringtest.c +++ b/regress/lib/libssl/bytestring/bytestringtest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bytestringtest.c,v 1.9 2015/07/18 21:57:00 bcook Exp $ */ +/* $OpenBSD: bytestringtest.c,v 1.10 2015/10/25 20:15:06 doug Exp $ */ /* * Copyright (c) 2014, Google Inc. * @@ -138,7 +138,7 @@ test_get_asn1(void) static const uint8_t kData2[] = {0x30, 3, 1, 2}; static const uint8_t kData3[] = {0x30, 0x80}; static const uint8_t kData4[] = {0x30, 0x81, 1, 1}; - static const uint8_t kData5[] = {0x30, 0x82, 0, 1, 1}; + static const uint8_t kData5[4 + 0x80] = {0x30, 0x82, 0, 0x80}; static const uint8_t kData6[] = {0xa1, 3, 0x4, 1, 1}; static const uint8_t kData7[] = {0xa1, 3, 0x4, 2, 1}; static const uint8_t kData8[] = {0xa1, 3, 0x2, 1, 1};