mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Support FASCN OID in wolfssl_dns_entry_othername_to_gn()
This commit is contained in:
@ -569,6 +569,10 @@ static int wolfssl_dns_entry_othername_to_gn(DNS_entry* dns,
|
|||||||
static const unsigned char upn_oid[] = {
|
static const unsigned char upn_oid[] = {
|
||||||
0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x14, 0x02, 0x03
|
0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x14, 0x02, 0x03
|
||||||
};
|
};
|
||||||
|
/* FASCN OID: 2.16.840.1.101.3.6.6 */
|
||||||
|
static const unsigned char fascn_oid[] = {
|
||||||
|
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x06, 0x06
|
||||||
|
};
|
||||||
const unsigned char* oid;
|
const unsigned char* oid;
|
||||||
word32 oidSz;
|
word32 oidSz;
|
||||||
|
|
||||||
@ -578,6 +582,10 @@ static int wolfssl_dns_entry_othername_to_gn(DNS_entry* dns,
|
|||||||
oid = upn_oid;
|
oid = upn_oid;
|
||||||
oidSz = (word32)sizeof(upn_oid);
|
oidSz = (word32)sizeof(upn_oid);
|
||||||
}
|
}
|
||||||
|
else if (dns->oidSum == FASCN_OID) {
|
||||||
|
oid = fascn_oid;
|
||||||
|
oidSz = (word32)sizeof(fascn_oid);
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user