tls: convertProtocols() error handling
requested to merge github/fork/pugbyte/tls-convertProtocols-restrict-protocol-bytelength into master
The convertProtocols() function now throws a range error when the byte length of a protocol is too long to fit in a Buffer.
Also added a test case in test/parallel/test-tls-basic-validations.js to cover this.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines