Bug 1646079 - Port |Bug 1450967 - mitm detection v0.0.1| to SeaMonkey. r=frg
This commit is contained in:
Родитель
c010914362
Коммит
67a6f853f6
|
@ -89,6 +89,7 @@ const SEC_ERROR_CERT_SIGNATURE_ALGORITHM_DISABLED = SEC_ERROR_BASE + 176;
|
|||
const MOZILLA_PKIX_ERROR_NOT_YET_VALID_CERTIFICATE = MOZILLA_PKIX_ERROR_BASE + 5;
|
||||
const MOZILLA_PKIX_ERROR_NOT_YET_VALID_ISSUER_CERTIFICATE = MOZILLA_PKIX_ERROR_BASE + 6;
|
||||
const MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT = MOZILLA_PKIX_ERROR_BASE + 14;
|
||||
const MOZILLA_PKIX_ERROR_MITM_DETECTED = MOZILLA_PKIX_ERROR_BASE + 15;
|
||||
|
||||
|
||||
const SSL_ERROR_BASE = Ci.nsINSSErrorsService.NSS_SSL_ERROR_BASE;
|
||||
|
@ -177,6 +178,9 @@ var AboutNetAndCertErrorListener = {
|
|||
|
||||
if (sslStatus.isUntrusted) {
|
||||
switch (securityInfo.errorCode) {
|
||||
case MOZILLA_PKIX_ERROR_MITM_DETECTED:
|
||||
msg += gPipNSSBundle.GetStringFromName("certErrorTrust_MitM") + "\n";
|
||||
break;
|
||||
case SEC_ERROR_UNKNOWN_ISSUER:
|
||||
msg += gPipNSSBundle.GetStringFromName("certErrorTrust_UnknownIssuer") + "\n";
|
||||
msg += gPipNSSBundle.GetStringFromName("certErrorTrust_UnknownIssuer2") + "\n";
|
||||
|
|
Загрузка…
Ссылка в новой задаче