__CERT_AddTempCertToPerm will now set error SEC_ERROR_ADDING_CERT
when attempting to make a cert perm that is already permanent. Bugzilla bug 227559. r=wtc git-svn-id: svn://10.0.0.236/trunk@150100 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -154,6 +154,7 @@ __CERT_AddTempCertToPerm(CERTCertificate *cert, char *nickname,
|
||||
NSSCertificate *c = STAN_GetNSSCertificate(cert);
|
||||
context = c->object.cryptoContext;
|
||||
if (!context) {
|
||||
PORT_SetError(SEC_ERROR_ADDING_CERT);
|
||||
return SECFailure; /* wasn't a temp cert */
|
||||
}
|
||||
stanNick = nssCertificate_GetNickname(c, NULL);
|
||||
|
||||
Reference in New Issue
Block a user