diff options
author | Shigeki Ohtsu <ohtsu@iij.ad.jp> | 2015-05-22 18:23:57 +0900 |
---|---|---|
committer | Shigeki Ohtsu <ohtsu@iij.ad.jp> | 2015-10-16 11:40:05 +0900 |
commit | 0140e1b5e39342f87133f7f42e9b49a702f69b39 (patch) | |
tree | 929cf591554c2ff1d1fa294de6c139b340d8d2a5 /lib/_tls_common.js | |
parent | f72e178a78950b38e6149148d88d2853f780f7f9 (diff) | |
download | android-node-v8-0140e1b5e39342f87133f7f42e9b49a702f69b39.tar.gz android-node-v8-0140e1b5e39342f87133f7f42e9b49a702f69b39.tar.bz2 android-node-v8-0140e1b5e39342f87133f7f42e9b49a702f69b39.zip |
tls: output warning of setDHParam to console.trace
To make it easy to figure out where the warning comes from.
Also fix style and variable name that was made in #1739.
PR-URL: https://github.com/nodejs/node/pull/1831
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'lib/_tls_common.js')
-rw-r--r-- | lib/_tls_common.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/_tls_common.js b/lib/_tls_common.js index d857717dab..120dce5784 100644 --- a/lib/_tls_common.js +++ b/lib/_tls_common.js @@ -99,7 +99,11 @@ exports.createSecureContext = function createSecureContext(options, context) { else if (options.ecdhCurve) c.context.setECDHCurve(options.ecdhCurve); - if (options.dhparam) c.context.setDHParam(options.dhparam); + if (options.dhparam) { + var warning = c.context.setDHParam(options.dhparam); + if (warning) + console.trace(warning); + } if (options.crl) { if (Array.isArray(options.crl)) { |