diff --git a/security/nss/cmd/symkeyutil/symkeyutil.c b/security/nss/cmd/symkeyutil/symkeyutil.c index 5c355e33bd63..f1f3d1c415a4 100644 --- a/security/nss/cmd/symkeyutil/symkeyutil.c +++ b/security/nss/cmd/symkeyutil/symkeyutil.c @@ -1093,7 +1093,7 @@ main(int argc, char **argv) goto shutdown; } rv = SECFailure; - newKey = PK11_MoveKey(target, CKA_ENCRYPT, 0, PR_TRUE, symKey); + newKey = PK11_MoveSymKey(target, CKA_ENCRYPT, 0, PR_TRUE, symKey); if (!newKey) { PR_fprintf(PR_STDERR, "%s: Couldn't move the key \n",progName); goto shutdown; diff --git a/security/nss/lib/nss/nss.def b/security/nss/lib/nss/nss.def index b88fd3cdb757..f86daa99c11a 100644 --- a/security/nss/lib/nss/nss.def +++ b/security/nss/lib/nss/nss.def @@ -770,7 +770,7 @@ PK11_DeriveWithFlagsPerm; PK11_ExportEncryptedPrivKeyInfo; PK11_FindSlotsByAliases; PK11_GetSymKeyType; -PK11_MoveKey; +PK11_MoveSymKey; PK11_PubDeriveExtended; PK11_PubUnwrapSymKeyWithFlagsPerm; PK11_UnwrapSymKeyWithFlagsPerm; diff --git a/security/nss/lib/pk11wrap/pk11func.h b/security/nss/lib/pk11wrap/pk11func.h index 179f11960b71..eea098a99bb8 100644 --- a/security/nss/lib/pk11wrap/pk11func.h +++ b/security/nss/lib/pk11wrap/pk11func.h @@ -304,7 +304,7 @@ SECStatus PK11_WrapSymKey(CK_MECHANISM_TYPE type, SECItem *params, * operation or the flags and making the key permanent at the same time. * If the key is moved to the same slot, operation and flags values are * currently ignored */ -PK11SymKey *PK11_MoveKey(PK11SlotInfo *slot, CK_ATTRIBUTE_TYPE operation, +PK11SymKey *PK11_MoveSymKey(PK11SlotInfo *slot, CK_ATTRIBUTE_TYPE operation, CK_FLAGS flags, PRBool perm, PK11SymKey *symKey); /* * derive a new key from the base key. diff --git a/security/nss/lib/pk11wrap/pk11skey.c b/security/nss/lib/pk11wrap/pk11skey.c index 062a22f4a2a3..2cb2c8d29027 100644 --- a/security/nss/lib/pk11wrap/pk11skey.c +++ b/security/nss/lib/pk11wrap/pk11skey.c @@ -1428,7 +1428,7 @@ pk11_ForceSlot(PK11SymKey *symKey,CK_MECHANISM_TYPE type, } PK11SymKey * -PK11_MoveKey(PK11SlotInfo *slot, CK_ATTRIBUTE_TYPE operation, +PK11_MoveSymKey(PK11SlotInfo *slot, CK_ATTRIBUTE_TYPE operation, CK_FLAGS flags, PRBool perm, PK11SymKey *symKey) { if (symKey->slot == slot) {