From 2cf5f040a5818f7c1b37904f1cf4e73f1f3aa9f4 Mon Sep 17 00:00:00 2001 From: Shigeki Ohtsu Date: Fri, 23 Mar 2012 13:04:10 +0900 Subject: [PATCH] doc: add cleartextStream.getCipher() in tls --- doc/api/tls.markdown | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/api/tls.markdown b/doc/api/tls.markdown index c0fcd754dd..4dc8d215ec 100644 --- a/doc/api/tls.markdown +++ b/doc/api/tls.markdown @@ -401,6 +401,17 @@ Example: If the peer does not provide a certificate, it returns `null` or an empty object. +### cleartextStream.getCipher() +Returns an object representing the cipher name and the SSL/TLS +protocol version of the current connection. + +Example: +{ name: 'AES256-SHA', version: 'TLSv1/SSLv3' } + +See SSL_CIPHER_get_name() and SSL_CIPHER_get_version() in +http://www.openssl.org/docs/ssl/ssl.html#DEALING_WITH_CIPHERS for more +information. + ### cleartextStream.address() Returns the bound address and port of the underlying socket as reported by the