tlsSocket.getCipher()
版本历史
| 版本 | 变更 |
|---|---|
| v13.4.0, v12.16.0 | 返回 IETF 密码名称为 |
| v12.0.0 | 返回最小密码版本,而不是固定字符串 ( |
| v0.11.4 | 新增于: v0.11.4 |
-
返回:<Object>
\Returns: <Object>
-
name<string> 密码套件的 OpenSSL 名称。\
name<string> OpenSSL name for the cipher suite. -
standardName<string> 密码套件的 IETF 名称。\
standardName<string> IETF name for the cipher suite. -
version<string> 此密码套件支持的最低 TLS 协议版本。实际协商的协议见tls.TLSSocket.getProtocol()。\
version<string> The minimum TLS protocol version supported by this cipher suite. For the actual negotiated protocol, seetls.TLSSocket.getProtocol().
-
返回包含协商密码套件信息的对象。
\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。
\See SSL_CIPHER_get_name for more information.