diff options
Diffstat (limited to 'security/nss/lib/ckfw/session.c')
-rw-r--r-- | security/nss/lib/ckfw/session.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/security/nss/lib/ckfw/session.c b/security/nss/lib/ckfw/session.c index a3119345c..e2613089b 100644 --- a/security/nss/lib/ckfw/session.c +++ b/security/nss/lib/ckfw/session.c @@ -871,7 +871,7 @@ nssCKFWSession_InitPIN( NSS_IMPLEMENT CK_RV nssCKFWSession_SetPIN( NSSCKFWSession *fwSession, - NSSItem *oldPin, + const NSSItem *oldPin, NSSItem *newPin) { CK_RV error = CKR_OK; @@ -907,7 +907,7 @@ nssCKFWSession_SetPIN( error = fwSession->mdSession->SetPIN(fwSession->mdSession, fwSession, fwSession->mdToken, fwSession->fwToken, fwSession->mdInstance, - fwSession->fwInstance, oldPin, newPin); + fwSession->fwInstance, (NSSItem *)oldPin, newPin); return error; } @@ -1419,9 +1419,8 @@ nssCKFWSession_CopyObject( /* use create object */ NSSArena *tmpArena; CK_ATTRIBUTE_PTR newTemplate; - CK_ULONG i, j, n, newLength, k; + CK_ULONG j, n, newLength, k; CK_ATTRIBUTE_TYPE_PTR oldTypes; - NSSCKFWObject *rv; n = nssCKFWObject_GetAttributeCount(fwObject, pError); if ((0 == n) && (CKR_OK != *pError)) { |