зеркало из https://github.com/mozilla/gecko-dev.git
bug 168393 PK11SDR_Decrypt() does not call PK11_Authenticate() before search
for the key.
This commit is contained in:
Родитель
4492ee1630
Коммит
6f6bad23cb
|
@ -282,6 +282,9 @@ PK11SDR_Decrypt(SECItem *data, SECItem *result, void *cx)
|
||||||
slot = PK11_GetInternalKeySlot();
|
slot = PK11_GetInternalKeySlot();
|
||||||
if (!slot) { rv = SECFailure; goto loser; }
|
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) */
|
/* Use triple-DES (Should look up the algorithm) */
|
||||||
type = CKM_DES3_CBC;
|
type = CKM_DES3_CBC;
|
||||||
key = PK11_FindFixedKey(slot, type, &sdrResult.keyid, cx);
|
key = PK11_FindFixedKey(slot, type, &sdrResult.keyid, cx);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче