Fix for bug 385946 . Can't import certificate into cert database in FIPS mode (certutil) . r=rrelyea

This commit is contained in:
julien.pierre.boogz%sun.com 2008-02-07 05:01:43 +00:00
Родитель 8dc45ecaa8
Коммит eaf7a31bd1
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -177,7 +177,7 @@ AddCert(PK11SlotInfo *slot, CERTCertDBHandle *handle, char *name, char *trusts,
GEN_BREAK(SECFailure);
}
if (!PK11_IsFriendly(slot)) {
if (PK11_IsFIPS() || !PK11_IsInternal(slot)) {
rv = PK11_Authenticate(slot, PR_TRUE, pwdata);
if (rv != SECSuccess) {
SECU_PrintError(progName, "could not authenticate to token or database");