Skip to content

Commit 140808c

Browse files
committed
catch valueerror to avoid tripping up on missing fingerprints - validate over all signatures
1 parent a42287d commit 140808c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xmlsec/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def _verify(t, keyspec, sig_path=".//{%s}Signature" % NS['ds'], drop_signature=F
337337
if not this_cert.verify(b64d(sv), actual, sig_digest_alg):
338338
raise XMLSigException("Failed to validate {!s} using sig digest {!s} and cm {!s}".format(etree.tostring(sig), sig_digest_alg, cm_alg))
339339
validated.append(obj)
340-
except XMLSigException as ex:
340+
except (XMLSigException, ValueError) as ex:
341341
log.error(ex)
342342

343343
if not validated:

0 commit comments

Comments
 (0)