Skip to content

Commit

Permalink
tls: add assert msg options.checkServerIdentity
Browse files Browse the repository at this point in the history
  • Loading branch information
Shigeki Ohtsu committed Jun 1, 2015
1 parent 9a5d761 commit 8b16dfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/_tls_wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,8 @@ exports.connect = function(/* [port, host], options, cb */) {
if (!options.keepAlive)
options.singleUse = true;

assert(typeof options.checkServerIdentity === 'function');
assert(typeof options.checkServerIdentity === 'function',
'options.checkServerIdentity is not a function');
assert(typeof options.minDHSize === 'number',
'options.minDHSize is not a number: ' + options.minDHSize);
assert(options.minDHSize > 0,
Expand Down

0 comments on commit 8b16dfd

Please sign in to comment.