diff options
Diffstat (limited to 'src/pluto/x509.c')
-rw-r--r-- | src/pluto/x509.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/pluto/x509.c b/src/pluto/x509.c index 9d4448c94..f1d079560 100644 --- a/src/pluto/x509.c +++ b/src/pluto/x509.c @@ -333,11 +333,9 @@ static const x501rdn_t x501rdns[] = { #define X501_RDN_ROOF 26 -static u_char ASN1_subjectAltName_oid_str[] = { +static chunk_t ASN1_subjectAltName_oid = chunk_from_chars( 0x06, 0x03, 0x55, 0x1D, 0x11 -}; - -static const chunk_t ASN1_subjectAltName_oid = chunk_from_buf(ASN1_subjectAltName_oid_str); +); static void update_chunk(chunk_t *ch, int n) { @@ -345,7 +343,6 @@ static void update_chunk(chunk_t *ch, int n) ch->ptr += n; ch->len -= n; } - /** * Pointer is set to the first RDN in a DN */ |