b=188363 Bad error messages when server uses an invalid cert (-8054)

r=nelsonb sr=blizzard
This commit is contained in:
kaie%netscape.com 2003-01-22 03:41:35 +00:00
Родитель 41e9b8a3f2
Коммит 153d01add8
2 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -185,6 +185,7 @@ BadPassword=An incorrect password was provided.
BadDatabase=There is a problem with your certificate database [Error Code: %S].
BadServer=%S has sent an incorrect or unexpected message. Error Code: %S
BadClient=%S has received an incorrect or unexpected message. Error Code: %S
HostReusedIssuerSerial=You have received an invalid certificate. It contains the same issuer name and serial number as another certificate that you are already using. Please contact the server administrator or email correspondent from which this invalid certificate came, and urge them to get a valid certificate.
SSLGenericError=Error establishing an encrypted connection to %S. Error Code: %S.
TimeOut=Connection request timed out.
PeersCertUntrusted=Could not establish an encrypted connection because certificate presented by %S is not trusted.

Просмотреть файл

@ -823,6 +823,11 @@ nsHandleSSLError(nsNSSSocketInfo *socketInfo, PRInt32 err)
getter_Copies(formattedString));
break;
case SEC_ERROR_REUSED_ISSUER_AND_SERIAL:
nssComponent->GetPIPNSSBundleString(NS_LITERAL_STRING("HostReusedIssuerSerial").get(),
getter_Copies(formattedString));
break;
default:
params[0] = hostNameU.get();
params[1] = errorCode.get();