From 8c69e06972b5b0aa7e45163f860fb63d90203289 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Wed, 27 Mar 2019 12:10:48 -0700 Subject: tls: return an OpenSSL error from renegotiate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A generic error lacks any of the context or detail of the underlying OpenSSL error, so throw from C++, and report the OpenSSL error to the callback. PR-URL: https://github.com/nodejs/node/pull/26868 Reviewed-By: Anna Henningsen Reviewed-By: Ben Noordhuis Reviewed-By: Tobias Nießen --- lib/internal/errors.js | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/internal/errors.js') diff --git a/lib/internal/errors.js b/lib/internal/errors.js index ea7c5a8aa4..c7dac93783 100644 --- a/lib/internal/errors.js +++ b/lib/internal/errors.js @@ -1046,7 +1046,6 @@ E('ERR_TLS_INVALID_PROTOCOL_VERSION', '%j is not a valid %s TLS protocol version', TypeError); E('ERR_TLS_PROTOCOL_VERSION_CONFLICT', 'TLS protocol version %j conflicts with secureProtocol %j', TypeError); -E('ERR_TLS_RENEGOTIATE', 'Attempt to renegotiate TLS session failed', Error); E('ERR_TLS_RENEGOTIATION_DISABLED', 'TLS session renegotiation disabled for this socket', Error); -- cgit v1.2.3