Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exports C14nCanonicalization, ExclusiveCanonicalization #471

Merged
merged 2 commits into from
Aug 24, 2024

Conversation

parallels999
Copy link
Contributor

After #325 this functionality was lost

Trying same as #335

This allow us to do

const C14nCanonicalization = require('xml-crypto').C14nCanonicalization 
const ExclusiveCanonicalization= require('xml-crypto').ExclusiveCanonicalization

// Use Example 
const DOMParser = require("@xmldom/xmldom").DOMParser
let xml_string = '<root><child>123</child></root>'
let documentElement= (new DOMParser()).parseFromString(xml_string).documentElement

// C14nCanonicalization
console.log( (new C14nCanonicalization()).process(documentElement, {}).toString() )
// ExclusiveCanonicalization
console.log( (new ExclusiveCanonicalization()).process(documentElement, {}).toString() )

@cjbarth cjbarth self-assigned this Aug 24, 2024
@cjbarth cjbarth changed the title Exports C14nCanonicalization, ExclusiveCanonicalizatio Exports C14nCanonicalization, ExclusiveCanonicalization Aug 24, 2024
@cjbarth cjbarth merged commit f9b3682 into node-saml:master Aug 24, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants