Skip to content

Commit 26ab3b1

Browse files
Merge pull request #6858 from anhu/FASCN_OID
Support FASCN OID in wolfssl_dns_entry_othername_to_gn()
2 parents 883fcfc + f332995 commit 26ab3b1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/x509.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,10 @@ static int wolfssl_dns_entry_othername_to_gn(DNS_entry* dns,
569569
static const unsigned char upn_oid[] = {
570570
0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x14, 0x02, 0x03
571571
};
572+
/* FASCN OID: 2.16.840.1.101.3.6.6 */
573+
static const unsigned char fascn_oid[] = {
574+
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x06, 0x06
575+
};
572576
const unsigned char* oid;
573577
word32 oidSz;
574578

@@ -578,6 +582,10 @@ static int wolfssl_dns_entry_othername_to_gn(DNS_entry* dns,
578582
oid = upn_oid;
579583
oidSz = (word32)sizeof(upn_oid);
580584
}
585+
else if (dns->oidSum == FASCN_OID) {
586+
oid = fascn_oid;
587+
oidSz = (word32)sizeof(fascn_oid);
588+
}
581589
else {
582590
goto err;
583591
}

0 commit comments

Comments
 (0)