add WOLFSSL_CERT_NAME_ALL macro guard and new values to set subject

This commit is contained in:
JacobBarthelmeh
2022-08-01 10:52:09 -07:00
parent abba59f735
commit 99ed727179
5 changed files with 82 additions and 28 deletions

View File

@@ -9403,10 +9403,12 @@ static int ConvertNIDToWolfSSL(int nid)
{
switch (nid) {
case NID_commonName : return ASN_COMMON_NAME;
#ifdef WOLFSSL_CERT_NAME_ALL
case NID_name : return ASN_NAME;
case NID_givenName: return ASN_GIVEN_NAME;
case NID_dnQualifier : return ASN_DNQUALIFIER;
case NID_initials: return ASN_INITIALS;
#endif /* WOLFSSL_CERT_NAME_ALL */
case NID_surname : return ASN_SUR_NAME;
case NID_countryName: return ASN_COUNTRY_NAME;
case NID_localityName: return ASN_LOCALITY_NAME;