GeezerVison is showing github.com — doc: minor cleanup of tls.getProtocol() · nodejs/node@48852cc
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/tls.md +6-6Lines changed: 6 additions & 6 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -756,19 +756,19 @@ to implement the `tls-unique` channel binding from [RFC 5929][]. |
756 | 756 | added: v5.7.0 |
757 | 757 | --> |
758 | 758 |
|
759 | | -* Returns: {string} |
| 759 | +* Returns: {string|null} |
760 | 760 |
|
761 | 761 | Returns a string containing the negotiated SSL/TLS protocol version of the |
762 | 762 | current connection. The value `'unknown'` will be returned for connected |
763 | 763 | sockets that have not completed the handshaking process. The value `null` will |
764 | 764 | be returned for server sockets or disconnected client sockets. |
765 | 765 |
|
766 | | -Example responses include: |
| 766 | +Protocol versions are: |
767 | 767 |
|
768 | | -* `TLSv1` |
769 | | -* `TLSv1.1` |
770 | | -* `TLSv1.2` |
771 | | -* `unknown` |
| 768 | +* `'TLSv1'` |
| 769 | +* `'TLSv1.1'` |
| 770 | +* `'TLSv1.2'` |
| 771 | +* `'SSLv3'` |
772 | 772 |
|
773 | 773 | See <https://www.openssl.org/docs/man1.1.0/ssl/SSL_get_version.html> for more |
774 | 774 | information. |
|