Bug 332381 pk12util fails to import key/cert onto LunaSA HSM

r=nelson
This commit is contained in:
rrelyea%redhat.com 2006-03-31 21:35:37 +00:00
Родитель 419b6c1394
Коммит 878b55fa39
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -775,7 +775,8 @@ PK11_RawPBEKeyGen(PK11SlotInfo *slot, CK_MECHANISM_TYPE type, SECItem *mech,
return NULL;
}
symKey = PK11_KeyGen(slot, type, mech, 0, wincx);
symKey = PK11_TokenKeyGenWithFlags(slot, type, mech, 0, NULL,
CKF_SIGN|CKF_ENCRYPT|CKF_DECRYPT|CKF_UNWRAP|CKF_WRAP, 0, wincx);
PORT_ZFree(pbe_params->pPassword, pwitem->len);
pbe_params->pPassword = NULL;