From 493e5a0aea9dd1bf1244c749cfcbfeb1617d7c99 Mon Sep 17 00:00:00 2001 From: Varun Rau Date: Wed, 26 Apr 2023 10:06:00 -0400 Subject: [PATCH] Fixes #514 -- removing node when not using exclusive canonicalization fails validation --- src/libsaml.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libsaml.ts b/src/libsaml.ts index d04b964..3a6d342 100644 --- a/src/libsaml.ts +++ b/src/libsaml.ts @@ -444,8 +444,6 @@ const libSaml = () => { sig.loadSignature(signatureNode); - doc.removeChild(signatureNode); - verified = verified && sig.checkSignature(doc.toString()); // immediately throw error when any one of the signature is failed to get verified