From 48852cc51f1a7bd72979e70cc0ed9b104c757d3c Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Tue, 20 Nov 2018 13:42:15 -0800 Subject: [PATCH] doc: minor cleanup of tls.getProtocol() Improve markup and return value description. PR-URL: https://github.com/nodejs/node/pull/24533 Reviewed-By: Colin Ihrig Reviewed-By: Vse Mozhet Byt --- doc/api/tls.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/api/tls.md b/doc/api/tls.md index 1ea6c3799e8940..eeda97b74ee412 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -756,19 +756,19 @@ to implement the `tls-unique` channel binding from [RFC 5929][]. added: v5.7.0 --> -* Returns: {string} +* Returns: {string|null} Returns a string containing the negotiated SSL/TLS protocol version of the current connection. The value `'unknown'` will be returned for connected sockets that have not completed the handshaking process. The value `null` will be returned for server sockets or disconnected client sockets. -Example responses include: +Protocol versions are: -* `TLSv1` -* `TLSv1.1` -* `TLSv1.2` -* `unknown` +* `'TLSv1'` +* `'TLSv1.1'` +* `'TLSv1.2'` +* `'SSLv3'` See for more information.