bug 168393 PK11SDR_Decrypt() does not call PK11_Authenticate() before search

for the key.
This commit is contained in:
relyea%netscape.com 2003-03-22 00:22:26 +00:00
Родитель 4492ee1630
Коммит 6f6bad23cb
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -282,6 +282,9 @@ PK11SDR_Decrypt(SECItem *data, SECItem *result, void *cx)
slot = PK11_GetInternalKeySlot();
if (!slot) { rv = SECFailure; goto loser; }
rv = PK11_Authenticate(slot, PR_TRUE, cx);
if (rv != SECSuccess) goto loser;
/* Use triple-DES (Should look up the algorithm) */
type = CKM_DES3_CBC;
key = PK11_FindFixedKey(slot, type, &sdrResult.keyid, cx);