RT3662: Allow leading . in nameConstraints
Change by SteveH from original by John Denker (in the RT) Reviewed-by: Rich Salz <rsalz@openssl.org> (cherry picked from commit 77ff1f3b8bfaa348956c5096a2b829f2e767b4f1)
This commit is contained in:
parent
a97c208c5a
commit
8fb2c9922a
@ -401,7 +401,7 @@ static int nc_dns(ASN1_IA5STRING *dns, ASN1_IA5STRING *base)
|
||||
if (dns->length > base->length)
|
||||
{
|
||||
dnsptr += dns->length - base->length;
|
||||
if (dnsptr[-1] != '.')
|
||||
if (*baseptr != '.' && dnsptr[-1] != '.')
|
||||
return X509_V_ERR_PERMITTED_VIOLATION;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user