summaryrefslogtreecommitdiff
path: root/trust/test-trust.h
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2014-09-12 15:37:02 +0200
committerStef Walter <stefw@redhat.com>2014-10-09 11:49:59 +0200
commitb3579cb54bd5cd16e9740404408b2505b4b1e26b (patch)
tree78b63008d006071f4173ac8107da5e37a740fde7 /trust/test-trust.h
parentc1dd399d265f20bd3df4dc76dcf735aba1ffa515 (diff)
downloadp11-kit-b3579cb54bd5cd16e9740404408b2505b4b1e26b.tar.gz
trust: Allow 'BEGIN PUBLIC KEY' PEM blocks in .p11-kit files
These PEM blocks contribute a CKA_PUBLIC_KEY_INFO to the object being read/written. https://bugs.freedesktop.org/show_bug.cgi?id=83799
Diffstat (limited to 'trust/test-trust.h')
-rw-r--r--trust/test-trust.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/trust/test-trust.h b/trust/test-trust.h
index b70bbdb..81c779c 100644
--- a/trust/test-trust.h
+++ b/trust/test-trust.h
@@ -335,6 +335,28 @@ static const unsigned char verisign_v1_ca_public_key[] = {
0x00, 0x01,
};
+static const unsigned char example_public_key[] = {
+ 0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
+ 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f, 0x00, 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01,
+ 0x00, 0xaf, 0x24, 0x08, 0x08, 0x29, 0x7a, 0x35, 0x9e, 0x60, 0x0c, 0xaa, 0xe7, 0x4b, 0x3b, 0x4e,
+ 0xdc, 0x7c, 0xbc, 0x3c, 0x45, 0x1c, 0xbb, 0x2b, 0xe0, 0xfe, 0x29, 0x02, 0xf9, 0x57, 0x08, 0xa3,
+ 0x64, 0x85, 0x15, 0x27, 0xf5, 0xf1, 0xad, 0xc8, 0x31, 0x89, 0x5d, 0x22, 0xe8, 0x2a, 0xaa, 0xa6,
+ 0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, 0x9d, 0xd4, 0xd1, 0x43, 0xc0, 0x67, 0x73, 0xe3, 0x14, 0x08, 0x7e, 0xe5, 0x3f,
+ 0x9f, 0x73, 0xb8, 0x33, 0x0a, 0xcf, 0x5d, 0x3f, 0x34, 0x87, 0x96, 0x8a, 0xee, 0x53, 0xe8, 0x25,
+ 0x15, 0x02, 0x03, 0x01, 0x00, 0x01
+};
+
static const char test_text[] = "This is the file text";
static const char test_eku_server_and_client[] = {