We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea672df commit e291897Copy full SHA for e291897
1 file changed
src/misc/pem/pem.c
@@ -10,6 +10,13 @@
10
#ifdef LTC_PEM
11
12
const struct pem_header_id pem_std_headers[] = {
13
+ {
14
+ /* X.509 Certificates */
15
+ SET_CSTR(.start, "-----BEGIN CERTIFICATE-----"),
16
+ SET_CSTR(.end, "-----END CERTIFICATE-----"),
17
+ .has_more_headers = no,
18
+ .flags = pf_x509,
19
+ },
20
{
21
/* PKCS#8 encrypted */
22
SET_CSTR(.start, "-----BEGIN ENCRYPTED PRIVATE KEY-----"),
@@ -24,13 +31,6 @@ const struct pem_header_id pem_std_headers[] = {
24
31
.has_more_headers = no,
25
32
.flags = pf_pkcs8,
26
33
},
27
- {
28
- /* X.509 Certificates */
29
- SET_CSTR(.start, "-----BEGIN CERTIFICATE-----"),
30
- SET_CSTR(.end, "-----END CERTIFICATE-----"),
- .has_more_headers = no,
- .flags = pf_x509,
- },
34
35
/* Regular (plain) public keys */
36
SET_CSTR(.start, "-----BEGIN PUBLIC KEY-----"),
0 commit comments