mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 18:37:31 +09:00
Update NSS to 3.48 while keeping vc2013 hackfix and no-sslkeylogfile intact.
This commit is contained in:
parent
0b9855b841
commit
171849c8e5
351 changed files with 115185 additions and 57946 deletions
|
|
@ -171,6 +171,8 @@ sftkdb_encrypt_stub(PLArenaPool *arena, SDB *sdb, SECItem *plainText,
|
|||
{
|
||||
SFTKDBHandle *handle = sdb->app_private;
|
||||
SECStatus rv;
|
||||
SECItem *key;
|
||||
int iterationCount;
|
||||
|
||||
if (handle == NULL) {
|
||||
return SECFailure;
|
||||
|
|
@ -192,9 +194,18 @@ sftkdb_encrypt_stub(PLArenaPool *arena, SDB *sdb, SECItem *plainText,
|
|||
/* PORT_SetError */
|
||||
return SECFailure;
|
||||
}
|
||||
key = handle->newKey ? handle->newKey : &handle->passwordKey;
|
||||
if (sftk_isLegacyIterationCountAllowed()) {
|
||||
if (handle->newKey) {
|
||||
iterationCount = handle->newDefaultIterationCount;
|
||||
} else {
|
||||
iterationCount = handle->defaultIterationCount;
|
||||
}
|
||||
} else {
|
||||
iterationCount = 1;
|
||||
}
|
||||
|
||||
rv = sftkdb_EncryptAttribute(arena,
|
||||
handle->newKey ? handle->newKey : &handle->passwordKey,
|
||||
rv = sftkdb_EncryptAttribute(arena, key, iterationCount,
|
||||
plainText, cipherText);
|
||||
PZ_Unlock(handle->passwordLock);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue