-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Roundtrip referenced XML nodes before c14n to detach them from parent
When signing, we roundtrip referenced XML nodes before passing them to the c14n algorithm. This effectively detaches the node from the parent document into its own document subset. We need to do the same when verifying, otherwise our own c14n is inconsistent when a default namespace is declared on a parent node and the element node namespace axis processing algorithm causes empty namespace declarations to appear. See https://www.w3.org/TR/xml-c14n11/ sections 2.3, 4.6, 4.7 Fixes #225
- Loading branch information
Showing
3 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters