summaryrefslogtreecommitdiff
path: root/tests/certder.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/certder.c')
-rw-r--r--tests/certder.c658
1 files changed, 370 insertions, 288 deletions
diff --git a/tests/certder.c b/tests/certder.c
index 9a902b03c2..a794991761 100644
--- a/tests/certder.c
+++ b/tests/certder.c
@@ -28,307 +28,389 @@
#include <gnutls/x509.h>
#include "utils.h"
-void
-doit (void)
+void doit(void)
{
- int ret;
- unsigned char der[] = {
- 0x30, 0x82, 0x04, 0x10, 0x30, 0x82, 0x03, 0x79,
- 0xa0, 0x07, 0x02, 0x84, 0x90, 0x00, 0x00, 0x00,
- 0x02, 0x02, 0x01, 0x00, 0x30, 0x0d, 0x06, 0x09,
- 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
- 0x04, 0x05, 0x00, 0x30, 0x81, 0xbb, 0x31, 0x0b,
- 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13,
- 0x02, 0x2d, 0x2d, 0x31, 0x12, 0x30, 0x10, 0x06,
- 0x03, 0x55, 0x04, 0x08, 0x13, 0x09, 0x53, 0x6f,
- 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x31,
- 0x11, 0x30, 0x0f, 0x06, 0x03, 0x55, 0x04, 0x07,
- 0x13, 0x08, 0x53, 0x6f, 0x6d, 0x65, 0x43, 0x69,
- 0x74, 0x79, 0x31, 0x19, 0x30, 0x17, 0x06, 0x03,
- 0x55, 0x04, 0x0a, 0x13, 0x10, 0x53, 0x6f, 0x6d,
- 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a,
- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x31, 0x1f, 0x30,
- 0x1d, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x13, 0x16,
- 0x53, 0x6f, 0x6d, 0x65, 0x4f, 0x72, 0x67, 0x61,
- 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
- 0x61, 0x6c, 0x55, 0x6e, 0x69, 0x74, 0x31, 0x1e,
- 0x30, 0x1c, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13,
- 0x15, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x68, 0x6f,
- 0x73, 0x74, 0x2e, 0x6c, 0x6f, 0x63, 0x61, 0x6c,
- 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x31, 0x29,
- 0x30, 0x27, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86,
- 0xf7, 0x0d, 0x01, 0x09, 0x01, 0x16, 0x1a, 0x72,
- 0x6f, 0x6f, 0x74, 0x40, 0x6c, 0x6f, 0x63, 0x61,
- 0x6c, 0x68, 0x6f, 0x73, 0x74, 0x2e, 0x6c, 0x6f,
- 0x63, 0x61, 0x6c, 0x64, 0x6f, 0x6d, 0x61, 0x69,
- 0x6e, 0x30, 0x1e, 0x17, 0x0d, 0x30, 0x34, 0x30,
- 0x32, 0x31, 0x38, 0x32, 0x30, 0x30, 0x32, 0x33,
- 0x34, 0x5a, 0x17, 0x0d, 0x30, 0x35, 0x31, 0x31,
- 0x31, 0x37, 0x32, 0x30, 0x30, 0x32, 0x33, 0x34,
- 0x5a, 0x30, 0x81, 0xbb, 0x31, 0x0b, 0x30, 0x09,
- 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x2d,
- 0x2d, 0x31, 0x12, 0x30, 0x10, 0x06, 0x03, 0x55,
- 0x04, 0x08, 0x13, 0x09, 0x53, 0x6f, 0x6d, 0x65,
- 0x53, 0x74, 0x61, 0x74, 0x65, 0x31, 0x11, 0x30,
- 0x0f, 0x06, 0x03, 0x55, 0x04, 0x07, 0x13, 0x08,
- 0x53, 0x6f, 0x6d, 0x65, 0x43, 0x69, 0x74, 0x79,
- 0x31, 0x19, 0x30, 0x17, 0x06, 0x03, 0x55, 0x04,
- 0x0a, 0x13, 0x10, 0x53, 0x6f, 0x6d, 0x65, 0x4f,
- 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74,
- 0x69, 0x6f, 0x6e, 0x31, 0x1f, 0x30, 0x1d, 0x06,
- 0x03, 0x55, 0x04, 0x0b, 0x13, 0x16, 0x53, 0x6f,
- 0x6d, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69,
- 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c,
- 0x55, 0x6e, 0x69, 0x74, 0x31, 0x1e, 0x30, 0x1c,
- 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x15, 0x6c,
- 0x6f, 0x63, 0x61, 0x6c, 0x68, 0x6f, 0x73, 0x74,
- 0x2e, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x64, 0x6f,
- 0x6d, 0x61, 0x69, 0x6e, 0x31, 0x29, 0x30, 0x27,
- 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d,
- 0x01, 0x09, 0x01, 0x16, 0x1a, 0x72, 0x6f, 0x6f,
- 0x74, 0x40, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x68,
- 0x6f, 0x73, 0x74, 0x2e, 0x6c, 0x6f, 0x63, 0x61,
- 0x6c, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x30,
- 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86,
- 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05,
- 0x00, 0x03, 0x81, 0x8d, 0x00, 0x30, 0x81, 0x89,
- 0x02, 0x81, 0x81, 0x00, 0xda, 0x3d, 0xb7, 0x66,
- 0x9a, 0x41, 0x4f, 0xca, 0x1d, 0xd1, 0xc4, 0x1f,
- 0xc9, 0x4c, 0xc6, 0x76, 0x45, 0xc5, 0x8e, 0x2f,
- 0x3d, 0x45, 0xf5, 0x16, 0x9f, 0xb5, 0x22, 0x0b,
- 0x61, 0x60, 0xa4, 0x42, 0x42, 0x98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 0xa4,
- 0x81, 0xbe, 0x30, 0x81, 0xbb, 0x31, 0x0b, 0x30,
- 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02,
- 0x2d, 0x2d, 0x31, 0x12, 0x30, 0x10, 0x06, 0x03,
- 0x55, 0x04, 0x08, 0x13, 0x09, 0x53, 0x6f, 0x6d,
- 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x31, 0x11,
- 0x30, 0x0f, 0x06, 0x03, 0x55, 0x04, 0x07, 0x13,
- 0x08, 0x53, 0x6f, 0x6d, 0x65, 0x43, 0x69, 0x74,
- 0x79, 0x31, 0x19, 0x30, 0x17, 0x06, 0x03, 0x55,
- 0x04, 0x0a, 0x13, 0x10, 0x53, 0x6f, 0x6d, 0x65,
- 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61,
- 0x74, 0x69, 0x6f, 0x6e, 0x31, 0x1f, 0x30, 0x1d,
- 0x06, 0x03, 0x55, 0x04, 0x0b, 0x13, 0x16, 0x53,
- 0x6f, 0x6d, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e,
- 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61,
- 0x6c, 0x55, 0x6e, 0x69, 0x74, 0x31, 0x1e, 0x30,
- 0x1c, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x15,
- 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x68, 0x6f, 0x73,
- 0x74, 0x2e, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x64,
- 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x31, 0x29, 0x30,
- 0x27, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7,
- 0x0d, 0x01, 0x09, 0x01, 0x16, 0x1a, 0x72, 0x6f,
- 0x6f, 0x74, 0x40, 0x6c, 0x6f, 0x63, 0x61, 0x6c,
- 0x68, 0x6f, 0x73, 0x74, 0x2e, 0x6c, 0x6f, 0x63,
- 0x61, 0x6c, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
- 0x82, 0x01, 0x00, 0x30, 0x0c, 0x06, 0x03, 0x55,
- 0x1d, 0x13, 0x04, 0x05, 0x30, 0x03, 0x01, 0x01,
- 0xff, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48,
- 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00,
- 0x03, 0x81, 0x81, 0x00, 0xcd, 0xc9, 0x30, 0x6d,
- 0x02, 0x65, 0x41, 0xea, 0x0e, 0x46, 0x08, 0x6c,
- 0x2f, 0xd5, 0xa7, 0xe4, 0x29, 0xd7, 0x3f, 0x18,
- 0x16, 0xd7, 0x4b, 0x6f, 0x9d, 0xc0, 0x5b, 0xbf,
- 0x68, 0x7b, 0x2e, 0x66, 0xa5, 0x1b, 0xfd, 0xff,
- 0x09, 0x25, 0xa5, 0x56, 0x37, 0x41, 0xd8, 0xaf,
- 0x07, 0xa6, 0x12, 0xa8, 0x58, 0xc4, 0x42, 0x9c,
- 0xce, 0x90, 0x6a, 0x9e, 0x7e, 0x04, 0x27, 0xe3,
- 0xfa, 0x8e, 0xe5, 0xdc, 0xa8, 0x5a, 0xf7, 0xc9,
- 0x0d, 0x23, 0x56, 0x8e, 0x46, 0x84, 0xe8, 0x34,
- 0x83, 0x86, 0xca, 0xc1, 0xcd, 0xfe, 0x68, 0x00,
- 0x67, 0x3f, 0x24, 0x3b, 0x50, 0x63, 0x21, 0x7f,
- 0xba, 0xc6, 0xdb, 0xff, 0xf4, 0x3a, 0x10, 0xb6,
- 0xb5, 0x09, 0x4d, 0x41, 0xff, 0xef, 0xc0, 0x84,
- 0x48, 0x1b, 0x51, 0x87, 0xe6, 0x85, 0xf0, 0x1e,
- 0xbd, 0x99, 0x0d, 0xd3, 0x98, 0xd0, 0xab, 0xd8,
- 0x30, 0x2a, 0xd5, 0x74
- };
+ int ret;
+ unsigned char der[] = {
+ 0x30, 0x82, 0x04, 0x10, 0x30, 0x82, 0x03, 0x79,
+ 0xa0, 0x07, 0x02, 0x84, 0x90, 0x00, 0x00, 0x00,
+ 0x02, 0x02, 0x01, 0x00, 0x30, 0x0d, 0x06, 0x09,
+ 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
+ 0x04, 0x05, 0x00, 0x30, 0x81, 0xbb, 0x31, 0x0b,
+ 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13,
+ 0x02, 0x2d, 0x2d, 0x31, 0x12, 0x30, 0x10, 0x06,
+ 0x03, 0x55, 0x04, 0x08, 0x13, 0x09, 0x53, 0x6f,
+ 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x31,
+ 0x11, 0x30, 0x0f, 0x06, 0x03, 0x55, 0x04, 0x07,
+ 0x13, 0x08, 0x53, 0x6f, 0x6d, 0x65, 0x43, 0x69,
+ 0x74, 0x79, 0x31, 0x19, 0x30, 0x17, 0x06, 0x03,
+ 0x55, 0x04, 0x0a, 0x13, 0x10, 0x53, 0x6f, 0x6d,
+ 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x31, 0x1f, 0x30,
+ 0x1d, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x13, 0x16,
+ 0x53, 0x6f, 0x6d, 0x65, 0x4f, 0x72, 0x67, 0x61,
+ 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x61, 0x6c, 0x55, 0x6e, 0x69, 0x74, 0x31, 0x1e,
+ 0x30, 0x1c, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13,
+ 0x15, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x68, 0x6f,
+ 0x73, 0x74, 0x2e, 0x6c, 0x6f, 0x63, 0x61, 0x6c,
+ 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x31, 0x29,
+ 0x30, 0x27, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86,
+ 0xf7, 0x0d, 0x01, 0x09, 0x01, 0x16, 0x1a, 0x72,
+ 0x6f, 0x6f, 0x74, 0x40, 0x6c, 0x6f, 0x63, 0x61,
+ 0x6c, 0x68, 0x6f, 0x73, 0x74, 0x2e, 0x6c, 0x6f,
+ 0x63, 0x61, 0x6c, 0x64, 0x6f, 0x6d, 0x61, 0x69,
+ 0x6e, 0x30, 0x1e, 0x17, 0x0d, 0x30, 0x34, 0x30,
+ 0x32, 0x31, 0x38, 0x32, 0x30, 0x30, 0x32, 0x33,
+ 0x34, 0x5a, 0x17, 0x0d, 0x30, 0x35, 0x31, 0x31,
+ 0x31, 0x37, 0x32, 0x30, 0x30, 0x32, 0x33, 0x34,
+ 0x5a, 0x30, 0x81, 0xbb, 0x31, 0x0b, 0x30, 0x09,
+ 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x2d,
+ 0x2d, 0x31, 0x12, 0x30, 0x10, 0x06, 0x03, 0x55,
+ 0x04, 0x08, 0x13, 0x09, 0x53, 0x6f, 0x6d, 0x65,
+ 0x53, 0x74, 0x61, 0x74, 0x65, 0x31, 0x11, 0x30,
+ 0x0f, 0x06, 0x03, 0x55, 0x04, 0x07, 0x13, 0x08,
+ 0x53, 0x6f, 0x6d, 0x65, 0x43, 0x69, 0x74, 0x79,
+ 0x31, 0x19, 0x30, 0x17, 0x06, 0x03, 0x55, 0x04,
+ 0x0a, 0x13, 0x10, 0x53, 0x6f, 0x6d, 0x65, 0x4f,
+ 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x31, 0x1f, 0x30, 0x1d, 0x06,
+ 0x03, 0x55, 0x04, 0x0b, 0x13, 0x16, 0x53, 0x6f,
+ 0x6d, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69,
+ 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6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, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48,
+ 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00,
+ 0x03, 0x81, 0x81, 0x00, 0xcd, 0xc9, 0x30, 0x6d,
+ 0x02, 0x65, 0x41, 0xea, 0x0e, 0x46, 0x08, 0x6c,
+ 0x2f, 0xd5, 0xa7, 0xe4, 0x29, 0xd7, 0x3f, 0x18,
+ 0x16, 0xd7, 0x4b, 0x6f, 0x9d, 0xc0, 0x5b, 0xbf,
+ 0x68, 0x7b, 0x2e, 0x66, 0xa5, 0x1b, 0xfd, 0xff,
+ 0x09, 0x25, 0xa5, 0x56, 0x37, 0x41, 0xd8, 0xaf,
+ 0x07, 0xa6, 0x12, 0xa8, 0x58, 0xc4, 0x42, 0x9c,
+ 0xce, 0x90, 0x6a, 0x9e, 0x7e, 0x04, 0x27, 0xe3,
+ 0xfa, 0x8e, 0xe5, 0xdc, 0xa8, 0x5a, 0xf7, 0xc9,
+ 0x0d, 0x23, 0x56, 0x8e, 0x46, 0x84, 0xe8, 0x34,
+ 0x83, 0x86, 0xca, 0xc1, 0xcd, 0xfe, 0x68, 0x00,
+ 0x67, 0x3f, 0x24, 0x3b, 0x50, 0x63, 0x21, 0x7f,
+ 0xba, 0xc6, 0xdb, 0xff, 0xf4, 0x3a, 0x10, 0xb6,
+ 0xb5, 0x09, 0x4d, 0x41, 0xff, 0xef, 0xc0, 0x84,
+ 0x48, 0x1b, 0x51, 0x87, 0xe6, 0x85, 0xf0, 0x1e,
+ 0xbd, 0x99, 0x0d, 0xd3, 0x98, 0xd0, 0xab, 0xd8,
+ 0x30, 0x2a, 0xd5, 0x74
+ };
- /* Triggers crash in _asn1_get_objectid_der. */
- unsigned char der2[] = {
- 0x30, 0x82, 0x04, 0x10, 0x30, 0x82, 0x03, 0x79,
- 0xa0, 0x3, 0x2, 0x1, 0x2, 0x2, 0x1, 0x0, 0x30,
- 0x11, 0x6, 0x84, 0x10, 0x0, 0x0, 0x0, 0x2a,
- 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x1, 0x4,
- 0x5, 0x0, 0x30, 0x81, 0xbb, 0x31, 0xb, 0x30,
- 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2,
- 0x2d, 0x2d, 0x31, 0x12, 0x30, 0x10, 0x6,
- 0x3, 0x55, 0x4, 0x8, 0x13, 0x9, 0x53,
- 0x6f, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74,
- 0x65, 0x31, 0x11, 0x30, 0xf, 0x6, 0x3,
- 0x55, 0x4, 0x7, 0x13, 0x8, 0x53, 0x6f,
- 0x6d, 0x65, 0x43, 0x69, 0x74, 0x79,
- 0x31, 0x19, 0x30, 0x17, 0x6, 0x3, 0x55,
- 0x4, 0xa, 0x13, 0x10, 0x53, 0x6f, 0x6d,
- 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69,
- 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x31,
- 0x1f, 0x30, 0x1d, 0x6, 0x3, 0x55, 0x4, 0xb,
- 0x13, 0x16, 0x53, 0x6f, 0x6d, 0x65, 0x4f,
- 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61,
- 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x55,
- 0x6e, 0x69, 0x74, 0x31, 0x1e, 0x30, 0x1c,
- 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x15, 0x6c,
- 0x6f, 0x63, 0x61, 0x6c, 0x68, 0x6f, 0x73,
- 0x74, 0x2e, 0x6c, 0x6f, 0x63, 0x61, 0x6c,
- 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x31,
- 0x29, 0x30, 0x27, 0x6, 0x9, 0x2a, 0x86,
- 0x48, 0x86, 0xf7, 0xd, 0x1, 0x9, 0x1, 0x16,
- 0x1a, 0x72
- };
+ /* Triggers crash in _asn1_get_objectid_der. */
+ unsigned char der2[] = {
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, 0x31,
+ 0x29, 0x30, 0x27, 0x6, 0x9, 0x2a, 0x86,
+ 0x48, 0x86, 0xf7, 0xd, 0x1, 0x9, 0x1, 0x16,
+ 0x1a, 0x72
+ };
- /* Triggers crash in asn1_der_decoding. */
- unsigned char der3[] = {
- 0x30, 0x82, 0x4, 0x10, 0x30, 0x82, 0x3, 0x79,
- 0xa0, 0x3, 0x2, 0x1, 0x2, 0x2, 0x1, 0x0,
- 0x30, 0x11, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd,
- 0x1, 0x1, 0x4, 0x5, 0x84, 0x10, 0x0, 0x0, 0x0, 0x30, 0x81, 0xbb, 0x31,
- 0xb, 0x30, 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2, 0x2d, 0x2d, 0x31,
- 0x12, 0x30, 0x10, 0x6, 0x3, 0x55, 0x4, 0x8, 0x13, 0x9, 0x53, 0x6f, 0x6d,
- 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x31, 0x11, 0x30, 0xf, 0x6, 0x3,
- 0x55, 0x4, 0x7, 0x13, 0x8, 0x53, 0x6f, 0x6d, 0x65, 0x43, 0x69, 0x74,
- 0x79, 0x31, 0x19, 0x30, 0x17, 0x6, 0x3, 0x55, 0x4, 0xa, 0x13, 0x10,
- 0x53, 0x6f, 0x6d, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61,
- 0x74, 0x69, 0x6f, 0x6e, 0x31, 0x1f, 0x30, 0x1d, 0x6, 0x3, 0x55, 0x4,
- 0xb, 0x13, 0x16, 0x53, 0x6f, 0x6d, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e,
- 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x55, 0x6e, 0x69,
- 0x74, 0x31, 0x1e, 0x30, 0x1c, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x15,
- 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x68, 0x6f, 0x73, 0x74, 0x2e, 0x6c, 0x6f,
- 0x63, 0x61, 0x6c, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x31, 0x29, 0x30,
- 0x27, 0x6, 0x9, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x1, 0x9, 0x1, 0x16,
- 0x1a, 0x72, 0x6f, 0x6f, 0x74, 0x40, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x68,
- 0x6f, 0x73, 0x74, 0x2e, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x64, 0x6f, 0x6d,
- 0x61, 0x69, 0x6e, 0x30, 0x1e, 0x17, 0xd, 0x30, 0x34, 0x30, 0x32, 0x31,
- 0x38, 0x32, 0x30, 0x30, 0x32, 0x33, 0x34, 0x5a, 0x17, 0xd, 0x30, 0x35,
- 0x31, 0x31, 0x31, 0x37, 0x32, 0x30, 0x30, 0x32, 0x33, 0x34, 0x5a, 0x30,
- 0x81, 0xbb, 0x31, 0xb, 0x30, 0x9, 0x6, 0x3, 0x55, 0x4, 0x6, 0x13, 0x2,
- 0x2d, 0x2d, 0x31, 0x12, 0x30, 0x10, 0x6, 0x3, 0x55, 0x4, 0x8, 0x13, 0x9,
- 0x53, 0x6f, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x31, 0x11, 0x30,
- 0xf, 0x6, 0x3, 0x55, 0x4, 0x7, 0x13, 0x8, 0x53, 0x6f, 0x6d, 0x65, 0x43,
- 0x69, 0x74, 0x79, 0x31, 0x19, 0x30, 0x17, 0x6, 0x3, 0x55, 0x4, 0xa,
- 0x13, 0x10, 0x53, 0x6f, 0x6d, 0x65, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69,
- 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x31, 0x1f, 0x30, 0x1d, 0x6, 0x3,
- 0x55, 0x4, 0xb, 0x13, 0x16, 0x53, 0x6f, 0x6d, 0x65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0x1, 0x4, 0x5, 0x0, 0x3, 0x81, 0x81, 0x0, 0xcd, 0xc9, 0x30,
- 0x6d, 0x2, 0x65, 0x41, 0xea, 0xe, 0x46, 0x8, 0x6c, 0x2f, 0xd5, 0xa7,
- 0xe4, 0x29, 0xd7, 0x3f, 0x18, 0x16, 0xd7, 0x4b, 0x6f, 0x9d, 0xc0, 0x5b,
- 0xbf, 0x68, 0x7b, 0x2e, 0x66, 0xa5, 0x1b, 0xfd, 0xff, 0x9, 0x25, 0xa5,
- 0x56, 0x37, 0x41, 0xd8, 0xaf, 0x7, 0xa6, 0x12, 0xa8, 0x58, 0xc4, 0x42,
- 0x9c, 0xce, 0x90, 0x6a, 0x9e, 0x7e, 0x4, 0x27, 0xe3, 0xfa, 0x8e, 0xe5,
- 0xdc, 0xa8, 0x5a, 0xf7, 0xc9, 0xd, 0x23, 0x56, 0x8e, 0x46, 0x84, 0xe8,
- 0x34, 0x83, 0x86, 0xca, 0xc1, 0xcd, 0xfe, 0x68, 0x0, 0x67, 0x3f, 0x24,
- 0x3b, 0x50, 0x63, 0x21, 0x7f, 0xba, 0xc6, 0xdb, 0xff, 0xf4, 0x3a, 0x10,
- 0xb6, 0xb5, 0x9, 0x4d, 0x41, 0xff, 0xef, 0xc0, 0x84, 0x48, 0x1b, 0x51,
- 0x87, 0xe6, 0x85, 0xf0, 0x1e, 0xbd, 0x99, 0xd, 0xd3, 0x98, 0xd0, 0xab,
- 0xd8, 0x30, 0x2a, 0xd5, 0x74
- };
- gnutls_datum_t derCert = { der, sizeof (der) };
- gnutls_datum_t der2Cert = { der2, sizeof (der2) };
- gnutls_datum_t der3Cert = { der3, sizeof (der3) };
- gnutls_x509_crt_t cert;
+ /* Triggers crash in asn1_der_decoding. */
+ unsigned char der3[] = {
+ 0x30, 0x82, 0x4, 0x10, 0x30, 0x82, 0x3, 0x79,
+ 0xa0, 0x3, 0x2, 0x1, 0x2, 0x2, 0x1, 0x0,
+ 0x30, 0x11, 0x6, 0x9, 0x2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0x86, 0x48,
+ 0x86, 0xf7,
+ 0xd, 0x1, 0x1, 0x4, 0x5, 0x0, 0x3, 0x81, 0x81, 0x0, 0xcd,
+ 0xc9, 0x30,
+ 0x6d, 0x2, 0x65, 0x41, 0xea, 0xe, 0x46, 0x8, 0x6c, 0x2f,
+ 0xd5, 0xa7,
+ 0xe4, 0x29, 0xd7, 0x3f, 0x18, 0x16, 0xd7, 0x4b, 0x6f, 0x9d,
+ 0xc0, 0x5b,
+ 0xbf, 0x68, 0x7b, 0x2e, 0x66, 0xa5, 0x1b, 0xfd, 0xff, 0x9,
+ 0x25, 0xa5,
+ 0x56, 0x37, 0x41, 0xd8, 0xaf, 0x7, 0xa6, 0x12, 0xa8, 0x58,
+ 0xc4, 0x42,
+ 0x9c, 0xce, 0x90, 0x6a, 0x9e, 0x7e, 0x4, 0x27, 0xe3, 0xfa,
+ 0x8e, 0xe5,
+ 0xdc, 0xa8, 0x5a, 0xf7, 0xc9, 0xd, 0x23, 0x56, 0x8e, 0x46,
+ 0x84, 0xe8,
+ 0x34, 0x83, 0x86, 0xca, 0xc1, 0xcd, 0xfe, 0x68, 0x0, 0x67,
+ 0x3f, 0x24,
+ 0x3b, 0x50, 0x63, 0x21, 0x7f, 0xba, 0xc6, 0xdb, 0xff, 0xf4,
+ 0x3a, 0x10,
+ 0xb6, 0xb5, 0x9, 0x4d, 0x41, 0xff, 0xef, 0xc0, 0x84, 0x48,
+ 0x1b, 0x51,
+ 0x87, 0xe6, 0x85, 0xf0, 0x1e, 0xbd, 0x99, 0xd, 0xd3, 0x98,
+ 0xd0, 0xab,
+ 0xd8, 0x30, 0x2a, 0xd5, 0x74
+ };
+ gnutls_datum_t derCert = { der, sizeof(der) };
+ gnutls_datum_t der2Cert = { der2, sizeof(der2) };
+ gnutls_datum_t der3Cert = { der3, sizeof(der3) };
+ gnutls_x509_crt_t cert;
- ret = global_init ();
- if (ret < 0)
- fail ("init %d\n", ret);
+ ret = global_init();
+ if (ret < 0)
+ fail("init %d\n", ret);
- ret = gnutls_x509_crt_init (&cert);
- if (ret < 0)
- fail ("crt_init %d\n", ret);
+ ret = gnutls_x509_crt_init(&cert);
+ if (ret < 0)
+ fail("crt_init %d\n", ret);
- ret = gnutls_x509_crt_import (cert, &derCert, GNUTLS_X509_FMT_DER);
- if (ret != GNUTLS_E_ASN1_DER_ERROR)
- fail ("crt_import %d\n", ret);
+ ret = gnutls_x509_crt_import(cert, &derCert, GNUTLS_X509_FMT_DER);
+ if (ret != GNUTLS_E_ASN1_DER_ERROR)
+ fail("crt_import %d\n", ret);
- gnutls_x509_crt_deinit (cert);
+ gnutls_x509_crt_deinit(cert);
- ret = gnutls_x509_crt_init (&cert);
- if (ret < 0)
- fail ("crt_init %d\n", ret);
+ ret = gnutls_x509_crt_init(&cert);
+ if (ret < 0)
+ fail("crt_init %d\n", ret);
- ret = gnutls_x509_crt_import (cert, &der2Cert, GNUTLS_X509_FMT_DER);
- if (ret != GNUTLS_E_ASN1_DER_ERROR)
- fail ("crt2_import %d\n", ret);
+ ret = gnutls_x509_crt_import(cert, &der2Cert, GNUTLS_X509_FMT_DER);
+ if (ret != GNUTLS_E_ASN1_DER_ERROR)
+ fail("crt2_import %d\n", ret);
- gnutls_x509_crt_deinit (cert);
+ gnutls_x509_crt_deinit(cert);
- ret = gnutls_x509_crt_init (&cert);
- if (ret < 0)
- fail ("crt_init %d\n", ret);
+ ret = gnutls_x509_crt_init(&cert);
+ if (ret < 0)
+ fail("crt_init %d\n", ret);
- ret = gnutls_x509_crt_import (cert, &der3Cert, GNUTLS_X509_FMT_DER);
- if (ret != GNUTLS_E_ASN1_DER_ERROR)
- fail ("crt3_import %d\n", ret);
+ ret = gnutls_x509_crt_import(cert, &der3Cert, GNUTLS_X509_FMT_DER);
+ if (ret != GNUTLS_E_ASN1_DER_ERROR)
+ fail("crt3_import %d\n", ret);
- if (debug)
- success ("done\n");
+ if (debug)
+ success("done\n");
- gnutls_x509_crt_deinit (cert);
+ gnutls_x509_crt_deinit(cert);
- gnutls_global_deinit ();
+ gnutls_global_deinit();
}