projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a09474d
)
RT3662: Allow leading . in nameConstraints
author
Dr. Stephen Henson
<steve@openssl.org>
Tue, 6 Jan 2015 20:29:28 +0000
(15:29 -0500)
committer
Rich Salz
<rsalz@openssl.org>
Tue, 6 Jan 2015 20:29:28 +0000
(15:29 -0500)
Change by SteveH from original by John Denker (in the RT)
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/x509v3/v3_ncons.c
patch
|
blob
|
history
diff --git
a/crypto/x509v3/v3_ncons.c
b/crypto/x509v3/v3_ncons.c
index 06520fee4114a933b49b3e6d0f0f416aaf9f5e8c..25c18551493325ef546d1f76177e8949be74274a 100644
(file)
--- a/
crypto/x509v3/v3_ncons.c
+++ b/
crypto/x509v3/v3_ncons.c
@@
-405,7
+405,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;
}