tlsSocket.getCipher()


返回包含协商密码套件信息的对象。

【Returns an object containing information on the negotiated cipher suite.】

例如,带有 AES256-SHA 密码的 TLSv1.2 协议:

【For example, a TLSv1.2 protocol with AES256-SHA cipher:】

{
    "name": "AES256-SHA",
    "standardName": "TLS_RSA_WITH_AES_256_CBC_SHA",
    "version": "SSLv3"
} 

参见 [SSL_CIPHER_get_name](https://www.openssl.org/docs/man1.1.1/man3/SSL_CIPHER_get_name.html) 更多信息请见。

【See SSL_CIPHER_get_name for more information.】