Skip to content

Commit

Permalink
return response as well even if async
Browse files Browse the repository at this point in the history
  • Loading branch information
troyfactor4 committed Apr 13, 2020
1 parent 4ffe0aa commit f982b0c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/signed-xml.js
Expand Up @@ -90,7 +90,7 @@ function RSASHA1() {
signer.update(signedInfo)
var res = signer.sign(signingKey, 'base64')
if (callback) callback(null, res)
else return res
return res
}

/**
Expand All @@ -102,7 +102,7 @@ function RSASHA1() {
verifier.update(str)
var res = verifier.verify(key, signatureValue, 'base64')
if (callback) callback(null, res)
else return res
return res
}

this.getAlgorithmName = function() {
Expand All @@ -127,7 +127,7 @@ function RSASHA256() {
signer.update(signedInfo)
var res = signer.sign(signingKey, 'base64')
if (callback) callback(null, res)
else return res
return res
}

/**
Expand All @@ -139,7 +139,7 @@ function RSASHA256() {
verifier.update(str)
var res = verifier.verify(key, signatureValue, 'base64')
if (callback) callback(null, res)
else return res
return res
}

this.getAlgorithmName = function() {
Expand All @@ -163,7 +163,7 @@ function RSASHA512() {
signer.update(signedInfo)
var res = signer.sign(signingKey, 'base64')
if (callback) callback(null, res)
else return res
return res
}

/**
Expand All @@ -175,7 +175,7 @@ function RSASHA512() {
verifier.update(str)
var res = verifier.verify(key, signatureValue, 'base64')
if (callback) callback(null, res)
else return res
return res
}

this.getAlgorithmName = function() {
Expand Down

0 comments on commit f982b0c

Please sign in to comment.