diff options
author | James M Snell <jasnell@gmail.com> | 2018-05-14 18:15:30 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2018-05-17 09:53:44 -0700 |
commit | 4d00cd4ce7388893405a833531b56542f206c9e4 (patch) | |
tree | 1e84cc1d01ba1bf7a45206d8917f82f86fd2e3ef /lib/tls.js | |
parent | 8d38288a8099fa282f4e86657f4f7d696039cf96 (diff) | |
download | android-node-v8-4d00cd4ce7388893405a833531b56542f206c9e4.tar.gz android-node-v8-4d00cd4ce7388893405a833531b56542f206c9e4.tar.bz2 android-node-v8-4d00cd4ce7388893405a833531b56542f206c9e4.zip |
tls: move convertNPNProtocols to End-of-Life
This was deprecated in 10.0.0 because NPN support was removed.
It does not make sense to keep this around longer than 10.x
PR-URL: https://github.com/nodejs/node/pull/20736
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Diffstat (limited to 'lib/tls.js')
-rw-r--r-- | lib/tls.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/tls.js b/lib/tls.js index 28cd302674..dc8a6a29c7 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -76,16 +76,6 @@ function convertProtocols(protocols) { return buff; } -exports.convertNPNProtocols = internalUtil.deprecate(function(protocols, out) { - // If protocols is Array - translate it into buffer - if (Array.isArray(protocols)) { - out.NPNProtocols = convertProtocols(protocols); - } else if (isUint8Array(protocols)) { - // Copy new buffer not to be modified by user. - out.NPNProtocols = Buffer.from(protocols); - } -}, 'tls.convertNPNProtocols() is deprecated.', 'DEP0107'); - exports.convertALPNProtocols = function(protocols, out) { // If protocols is Array - translate it into buffer if (Array.isArray(protocols)) { |