#590: TLS 1.3 support (consolidated) with locale workaround

This commit is contained in:
Cameron Kaiser
2020-02-17 20:51:23 -08:00
parent 91d1dfb59b
commit fae264c819
24 changed files with 453 additions and 112 deletions
+4 -2
View File
@@ -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.");