mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Add missing DN nid to work with PrintName()
This commit is contained in:
@ -5526,7 +5526,7 @@ static int X509PrintSerial_ex(WOLFSSL_BIO* bio, byte* serial, int sz,
|
|||||||
|
|
||||||
/* serial is larger than int size so print off hex values */
|
/* serial is larger than int size so print off hex values */
|
||||||
if ((scratchLen = XSNPRINTF(
|
if ((scratchLen = XSNPRINTF(
|
||||||
scratch, MAX_WIDTH, "\n%*s", indent, ""))
|
scratch, MAX_WIDTH, "%*s", indent, ""))
|
||||||
>= MAX_WIDTH) {
|
>= MAX_WIDTH) {
|
||||||
WOLFSSL_MSG("buffer overrun");
|
WOLFSSL_MSG("buffer overrun");
|
||||||
return WOLFSSL_FAILURE;
|
return WOLFSSL_FAILURE;
|
||||||
@ -11938,6 +11938,10 @@ static int get_dn_attr_by_nid(int n, const char** buf)
|
|||||||
str = "initials";
|
str = "initials";
|
||||||
len = 8;
|
len = 8;
|
||||||
break;
|
break;
|
||||||
|
case NID_distinguishedName:
|
||||||
|
str = "DN";
|
||||||
|
len = 2;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
WOLFSSL_MSG("Attribute type not found");
|
WOLFSSL_MSG("Attribute type not found");
|
||||||
str = NULL;
|
str = NULL;
|
||||||
|
@ -798,7 +798,7 @@ enum
|
|||||||
NID_inhibit_any_policy = 168, /* 2.5.29.54 */
|
NID_inhibit_any_policy = 168, /* 2.5.29.54 */
|
||||||
NID_tlsfeature = 1020, /* id-pe 24 */
|
NID_tlsfeature = 1020, /* id-pe 24 */
|
||||||
NID_buildingName = 1494,
|
NID_buildingName = 1494,
|
||||||
|
NID_distinguishedName = 25,
|
||||||
|
|
||||||
NID_dnQualifier = 174, /* 2.5.4.46 */
|
NID_dnQualifier = 174, /* 2.5.4.46 */
|
||||||
NID_commonName = 14, /* CN Changed to not conflict
|
NID_commonName = 14, /* CN Changed to not conflict
|
||||||
|
Reference in New Issue
Block a user