mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-28 03:17:31 +09:00
re-introduce old nss im too tired for this
This commit is contained in:
parent
3c46be320d
commit
3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions
|
|
@ -36,7 +36,7 @@ pk11_setAttributes(PK11SlotInfo *slot, CK_OBJECT_HANDLE id,
|
|||
CK_SESSION_HANDLE rwsession;
|
||||
|
||||
rwsession = PK11_GetRWSession(slot);
|
||||
if (rwsession == CK_INVALID_HANDLE) {
|
||||
if (rwsession == CK_INVALID_SESSION) {
|
||||
PORT_SetError(SEC_ERROR_BAD_DATA);
|
||||
return SECFailure;
|
||||
}
|
||||
|
|
@ -93,7 +93,7 @@ pk11_copyAttributes(PLArenaPool *arena,
|
|||
}
|
||||
if (targetID == CK_INVALID_HANDLE) {
|
||||
/* we need to create the object */
|
||||
rv = PK11_CreateNewObject(targetSlot, CK_INVALID_HANDLE,
|
||||
rv = PK11_CreateNewObject(targetSlot, CK_INVALID_SESSION,
|
||||
copyTemplate, copyTemplateCount, PR_TRUE, &targetID);
|
||||
} else {
|
||||
/* update the existing object with the new attributes */
|
||||
|
|
@ -464,7 +464,7 @@ pk11_mergeSecretKey(PK11SlotInfo *targetSlot, PK11SlotInfo *sourceSlot,
|
|||
{ CKA_ID, NULL, 0 },
|
||||
{ CKA_CLASS, NULL, 0 }
|
||||
};
|
||||
const CK_ULONG symTemplateCount = sizeof(symTemplate) / sizeof(symTemplate[0]);
|
||||
CK_ULONG symTemplateCount = sizeof(symTemplate) / sizeof(symTemplate[0]);
|
||||
CK_ATTRIBUTE symCopyTemplate[] = {
|
||||
{ CKA_LABEL, NULL, 0 }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue