mirror of
https://github.com/classilla/tenfourfox.git
synced 2026-04-24 08:18:31 +00:00
#590: TLS 1.3 support (consolidated) with locale workaround
This commit is contained in:
@@ -529,7 +529,7 @@ var NetworkHelper = {
|
||||
* If state == broken:
|
||||
* - errorMessage: full error message from nsITransportSecurityInfo.
|
||||
* If state == secure:
|
||||
* - protocolVersion: one of TLSv1, TLSv1.1, TLSv1.2.
|
||||
* - protocolVersion: one of TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
|
||||
* - cipherSuite: the cipher suite used in this connection.
|
||||
* - cert: information about certificate used in this connection.
|
||||
* See parseCertificateInfo for the contents.
|
||||
@@ -712,7 +712,7 @@ var NetworkHelper = {
|
||||
* @param Number version
|
||||
* One of nsISSLStatus version constants.
|
||||
* @return string
|
||||
* One of TLSv1, TLSv1.1, TLSv1.2 if @param version is valid,
|
||||
* One of TLSv1, TLSv1.1, TLSv1.2, TLSv1.3 if @param version is valid,
|
||||
* Unknown otherwise.
|
||||
*/
|
||||
formatSecurityProtocol: function NH_formatSecurityProtocol(version) {
|
||||
@@ -723,6 +723,8 @@ var NetworkHelper = {
|
||||
return "TLSv1.1";
|
||||
case Ci.nsISSLStatus.TLS_VERSION_1_2:
|
||||
return "TLSv1.2";
|
||||
case Ci.nsISSLStatus.TLS_VERSION_1_3:
|
||||
return "TLSv1.3";
|
||||
default:
|
||||
DevToolsUtils.reportException("NetworkHelper.formatSecurityProtocol",
|
||||
"protocolVersion " + version + " is unknown.");
|
||||
|
||||
Reference in New Issue
Block a user