Skip to content

Commit

Permalink
lib: correct typo in createSecureContext
Browse files Browse the repository at this point in the history
Minor correction in the comment regarding ssl_set_pkey.

PR-URL: #13653
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
danbev authored and jasnell committed Jun 13, 2017
1 parent 7f3f72c commit e5a4948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_tls_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,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) {
Expand Down

0 comments on commit e5a4948

Please sign in to comment.