Browse Source

lib: correct typo in createSecureContext

Minor correction in the comment regarding ssl_set_pkey.

PR-URL: https://github.com/nodejs/node/pull/13653
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v6.x
Daniel Bevenius 8 years ago
committed by Myles Borins
parent
commit
5eb11ba73e
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 2
      lib/_tls_common.js

2
lib/_tls_common.js

@ -71,7 +71,7 @@ exports.createSecureContext = function createSecureContext(options, context) {
}
// NOTE: It is important to set the key after the cert.
// `ssl_set_pkey` returns `0` when the key does not much the cert, but
// `ssl_set_pkey` returns `0` when the key does not match the cert, but
// `ssl_set_cert` returns `1` and nullifies the key in the SSL structure
// which leads to the crash later on.
if (options.key) {

Loading…
Cancel
Save