Skip to content

Commit

Permalink
test: log when openssl doesn't support cipher
Browse files Browse the repository at this point in the history
This fixes browserify#37.
  • Loading branch information
kapouer committed Jan 3, 2018
1 parent 44a10f6 commit aa9afe3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/index.js
Expand Up @@ -63,8 +63,15 @@ fixtures.valid.ec.forEach(function (f) {
}

test(f.message, function (t) {
var nSign = nCrypto.createSign(f.scheme)
var bSign = bCrypto.createSign(f.scheme)
var nSign, bSign
try {
nSign = nCrypto.createSign(f.scheme)
bSign = bCrypto.createSign(f.scheme)
} catch(ex) {
console.info("skipping unsupported scheme", f.scheme)
t.end()
return
}

var bSig = bSign.update(message).sign(priv)
var nSig = nSign.update(message).sign(priv)
Expand Down

0 comments on commit aa9afe3

Please sign in to comment.