File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -323,7 +323,11 @@ export class SignedXml {
323
323
valid(ated). Put simply: if one fails, they are all not trustworthy.
324
324
*/
325
325
this . signedReferences = [ ] ;
326
+ this . references . forEach ( ( ref ) => {
327
+ ref . signedReference = undefined ;
328
+ } ) ;
326
329
// TODO: add this breaking change here later on for even more security: `this.references = [];`
330
+
327
331
if ( callback ) {
328
332
callback ( new Error ( "Could not validate all references" ) , false ) ;
329
333
return ;
@@ -358,6 +362,9 @@ export class SignedXml {
358
362
// but that may cause some breaking changes, so we'll handle that in v7.x.
359
363
// If we were validating `signedInfoCanon` first, we wouldn't have to reset this array.
360
364
this . signedReferences = [ ] ;
365
+ this . references . forEach ( ( ref ) => {
366
+ ref . signedReference = undefined ;
367
+ } ) ;
361
368
// TODO: add this breaking change here later on for even more security: `this.references = [];`
362
369
363
370
if ( callback ) {
You can’t perform that action at this time.
0 commit comments