Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xml-crypto

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml-crypto - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

test/static/valid_signature_with_reference_keyInfo.xml

2

lib/signed-xml.js

@@ -206,3 +206,3 @@ var select = require('./xpath.js').SelectNodes

this.references = []
var references = select(doc, "//*[local-name(.)='Reference']")
var references = select(doc, "//*[local-name(.)='SignedInfo']/*[local-name(.)='Reference' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']")
if (references.length == 0) throw "could not find any Reference elements"

@@ -209,0 +209,0 @@

{
"name": "xml-crypto",
"version": "0.0.4",
"version": "0.0.5",
"description": "Xml digital signature and encryption library for Node.js",

@@ -5,0 +5,0 @@ "engines": { "node": ">=0.4.0" },

@@ -271,3 +271,4 @@ var select = require('../lib/xpath.js').SelectNodes

passValidSignature(test, "./test/static/valid_signature.xml")
passValidSignature(test, "./test/static/valid_signature wsu.xml", "wssecurity")
passValidSignature(test, "./test/static/valid_signature wsu.xml", "wssecurity")
passValidSignature(test, "./test/static/valid_signature_with_reference_keyInfo.xml")
test.done()

@@ -274,0 +275,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc