mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 09:57:32 +09:00
Replace NSS with Pale Moon's
This commit is contained in:
parent
ff1e5e48bf
commit
8c2e376f94
2870 changed files with 1762232 additions and 1374220 deletions
|
|
@ -205,7 +205,8 @@ sftkdb_encrypt_stub(PLArenaPool *arena, SDB *sdb, SECItem *plainText,
|
|||
iterationCount = 1;
|
||||
}
|
||||
|
||||
rv = sftkdb_EncryptAttribute(arena, key, iterationCount,
|
||||
rv = sftkdb_EncryptAttribute(arena, handle, sdb, key, iterationCount,
|
||||
CK_INVALID_HANDLE, CKT_INVALID_TYPE,
|
||||
plainText, cipherText);
|
||||
PZ_Unlock(handle->passwordLock);
|
||||
|
||||
|
|
@ -227,7 +228,7 @@ sftkdb_decrypt_stub(SDB *sdb, SECItem *cipherText, SECItem **plainText)
|
|||
return SECFailure;
|
||||
}
|
||||
|
||||
/* if we aren't th handle, try the other handle */
|
||||
/* if we aren't the key handle, try the other handle */
|
||||
oldKey = handle->oldKey;
|
||||
if (handle->type != SFTK_KEYDB_TYPE) {
|
||||
handle = handle->peerDB;
|
||||
|
|
@ -244,7 +245,9 @@ sftkdb_decrypt_stub(SDB *sdb, SECItem *cipherText, SECItem **plainText)
|
|||
/* PORT_SetError */
|
||||
return SECFailure;
|
||||
}
|
||||
rv = sftkdb_DecryptAttribute(oldKey ? oldKey : &handle->passwordKey,
|
||||
rv = sftkdb_DecryptAttribute(NULL, oldKey ? oldKey : &handle->passwordKey,
|
||||
CK_INVALID_HANDLE,
|
||||
CKT_INVALID_TYPE,
|
||||
cipherText, plainText);
|
||||
PZ_Unlock(handle->passwordLock);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue