Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
andresriancho committed Jun 27, 2017
2 parents de98180 + db844e5 commit cda33a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion w3af/plugins/audit/ssl_certificate.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,12 @@ class CertificateError(Exception):
pass


def _dnsname_to_pat(dn):
def _dnsname_to_pat(dn, max_wildcards=2):
pats = []
for frag in dn.split(r'.'):
if frag.count('*') > max_wildcards:
raise CertificateError("too many wildcards in certificate name: "
+ repr(dn))
if frag == '*':
# When '*' is a fragment by itself, it matches a non-empty dotless
# fragment.
Expand Down

0 comments on commit cda33a4

Please sign in to comment.