diff options
author | Dariusz Michaluk <d.michaluk@samsung.com> | 2024-02-13 15:38:29 +0100 |
---|---|---|
committer | Dariusz Michaluk <d.michaluk@samsung.com> | 2024-02-13 15:38:29 +0100 |
commit | 031996ef501f8c3d0532f7df1c38cf2e540a4f11 (patch) | |
tree | 27217d793b273edadc969aa3110378aac3c36e9c /tests/strict-der.c | |
parent | 26bea900a531662c6028ecc06f4adea825658434 (diff) | |
download | libtasn1-031996ef501f8c3d0532f7df1c38cf2e540a4f11.tar.gz libtasn1-031996ef501f8c3d0532f7df1c38cf2e540a4f11.tar.bz2 libtasn1-031996ef501f8c3d0532f7df1c38cf2e540a4f11.zip |
Imported Upstream version 4.19.0upstream/4.19.0upstream
Diffstat (limited to 'tests/strict-der.c')
-rw-r--r-- | tests/strict-der.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/strict-der.c b/tests/strict-der.c index 477e041..693f1b8 100644 --- a/tests/strict-der.c +++ b/tests/strict-der.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2002-2014 Free Software Foundation, Inc. + * Copyright (C) 2002-2022 Free Software Foundation, Inc. * * This file is part of LIBTASN1. * @@ -96,11 +96,13 @@ main (int argc, char *argv[]) exit (1); } - result = asn1_der_decoding2 (&asn1_element, buffer, &size, 0, errorDescription); + result = + asn1_der_decoding2 (&asn1_element, buffer, &size, 0, errorDescription); if (result != ASN1_SUCCESS) { asn1_perror (result); - printf ("Cannot decode BER data (size %ld) in %s: %s\n", (long) size, indeffile, errorDescription); + printf ("Cannot decode BER data (size %ld) in %s: %s\n", (long) size, + indeffile, errorDescription); exit (1); } @@ -116,11 +118,14 @@ main (int argc, char *argv[]) exit (1); } - result = asn1_der_decoding2 (&asn1_element, buffer, &size, ASN1_DECODE_FLAG_STRICT_DER, errorDescription); + result = + asn1_der_decoding2 (&asn1_element, buffer, &size, + ASN1_DECODE_FLAG_STRICT_DER, errorDescription); if (result == ASN1_SUCCESS) { asn1_perror (result); - printf ("Should not have decoded DER data (size %ld) in %s: %s\n", (long) size, indeffile, errorDescription); + printf ("Should not have decoded DER data (size %ld) in %s: %s\n", + (long) size, indeffile, errorDescription); exit (1); } |