forked from wolfSSL/wolfssl
Merge pull request #1805 from dgarske/fix_csr
Fix for CSR generation email value
This commit is contained in:
@ -9709,7 +9709,14 @@ static char GetNameType(CertName* name, int idx)
|
|||||||
#ifdef WOLFSSL_CERT_EXT
|
#ifdef WOLFSSL_CERT_EXT
|
||||||
case 7:
|
case 7:
|
||||||
return name->busCatEnc;
|
return name->busCatEnc;
|
||||||
|
|
||||||
|
case 8:
|
||||||
|
#else
|
||||||
|
case 7:
|
||||||
#endif
|
#endif
|
||||||
|
/* FALL THROUGH */
|
||||||
|
/* The last index, email name, does not have encoding type.
|
||||||
|
The empty case here is to keep track of it for future reference. */
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -9741,8 +9748,15 @@ static byte GetNameId(int idx)
|
|||||||
case 6:
|
case 6:
|
||||||
return ASN_COMMON_NAME;
|
return ASN_COMMON_NAME;
|
||||||
|
|
||||||
|
#ifdef WOLFSSL_CERT_EXT
|
||||||
case 7:
|
case 7:
|
||||||
return ASN_EMAIL_NAME;
|
return ASN_BUS_CAT;
|
||||||
|
|
||||||
|
case 8:
|
||||||
|
#else
|
||||||
|
case 7:
|
||||||
|
#endif
|
||||||
|
return ASN_EMAIL_NAME;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user