Add option --enable-ip-alt-name

This commit adds the configure option `--enable-ip-alt-name` that enables support for the IP alternative subject name parsing in `wolfcrypt/src/asn.c:DecodeAltNames`.
This commit is contained in:
Juliusz Sosinowicz
2020-05-07 12:26:52 +02:00
parent 9e68de0fb7
commit b5886e0e37
3 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -7798,7 +7798,7 @@ static int DecodeAltNames(const byte* input, int sz, DecodedCert* cert)
length -= strLen;
idx += strLen;
}
#if defined(WOLFSSL_QT) || defined(OPENSSL_ALL)
#if defined(WOLFSSL_QT) || defined(OPENSSL_ALL) || defined(WOLFSSL_IP_ALT_NAME)
else if (b == (ASN_CONTEXT_SPECIFIC | ASN_IP_TYPE)) {
DNS_entry* ipAddr;
int strLen;