Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
doc: add cleartextStream.getCipher() in tls
  • Loading branch information
Shigeki Ohtsu authored and bnoordhuis committed Mar 23, 2012
1 parent 249c3c1 commit 2cf5f04
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/api/tls.markdown
Expand Up @@ -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
Expand Down

0 comments on commit 2cf5f04

Please sign in to comment.