mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
fix for relative URI detection
This commit is contained in:
@@ -5717,7 +5717,7 @@ static int DecodeAltNames(byte* input, int sz, DecodedCert* cert)
|
|||||||
/* Verify RFC 5280 Sec 4.2.1.6 rule:
|
/* Verify RFC 5280 Sec 4.2.1.6 rule:
|
||||||
"The name MUST NOT be a relative URI" */
|
"The name MUST NOT be a relative URI" */
|
||||||
|
|
||||||
if (XSTRNCMP((const char*)&input[idx], "://", strLen + 1) != 0) {
|
if (XSTRNSTR((const char*)&input[idx], "://", strLen + 1) == NULL) {
|
||||||
WOLFSSL_MSG("\tAlt Name must be absolute URI");
|
WOLFSSL_MSG("\tAlt Name must be absolute URI");
|
||||||
return ASN_ALT_NAME_E;
|
return ASN_ALT_NAME_E;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user