summaryrefslogtreecommitdiff
path: root/test/asn1_decode_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/asn1_decode_test.c')
-rw-r--r--test/asn1_decode_test.c32
1 files changed, 4 insertions, 28 deletions
diff --git a/test/asn1_decode_test.c b/test/asn1_decode_test.c
index 49af48c1605e..6e00d4089692 100644
--- a/test/asn1_decode_test.c
+++ b/test/asn1_decode_test.c
@@ -163,21 +163,8 @@ static int test_gentime(void)
{
/* Underflowing GeneralizedTime 161208193400Z (YYMMDDHHMMSSZ) */
const unsigned char der[] = {
- 0x18,
- 0x0d,
- 0x31,
- 0x36,
- 0x31,
- 0x32,
- 0x30,
- 0x38,
- 0x31,
- 0x39,
- 0x33,
- 0x34,
- 0x30,
- 0x30,
- 0x5a,
+ 0x18, 0x0d, 0x31, 0x36, 0x31, 0x32, 0x30, 0x38, 0x31, 0x39,
+ 0x33, 0x34, 0x30, 0x30, 0x5a
};
const unsigned char *p;
int der_len, rc = 1;
@@ -200,19 +187,8 @@ static int test_utctime(void)
{
/* Underflowing UTCTime 0205104700Z (MMDDHHMMSSZ) */
const unsigned char der[] = {
- 0x17,
- 0x0b,
- 0x30,
- 0x32,
- 0x30,
- 0x35,
- 0x31,
- 0x30,
- 0x34,
- 0x37,
- 0x30,
- 0x30,
- 0x5a,
+ 0x17, 0x0b, 0x30, 0x32, 0x30, 0x35, 0x31, 0x30, 0x34, 0x37,
+ 0x30, 0x30, 0x5a
};
const unsigned char *p;
int der_len, rc = 1;