summaryrefslogtreecommitdiffstats
path: root/security/nss/lib/softoken/pkcs11.c
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-06-27 00:45:42 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-06-27 00:45:42 +0200
commit3c568a5681bac0a84f7a49697951780170ad182c (patch)
treebe4fc0e3b5849d3b5282bdabe981698ecce31385 /security/nss/lib/softoken/pkcs11.c
parent4b188510af097627f117482dfc7c3d308c845385 (diff)
downloadUXP-3c568a5681bac0a84f7a49697951780170ad182c.tar
UXP-3c568a5681bac0a84f7a49697951780170ad182c.tar.gz
UXP-3c568a5681bac0a84f7a49697951780170ad182c.tar.lz
UXP-3c568a5681bac0a84f7a49697951780170ad182c.tar.xz
UXP-3c568a5681bac0a84f7a49697951780170ad182c.zip
Update NSS to 3.41.1 (custom)
This resolves #82
Diffstat (limited to 'security/nss/lib/softoken/pkcs11.c')
-rw-r--r--security/nss/lib/softoken/pkcs11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/nss/lib/softoken/pkcs11.c b/security/nss/lib/softoken/pkcs11.c
index 34f25a9d0..7dd4f7ee9 100644
--- a/security/nss/lib/softoken/pkcs11.c
+++ b/security/nss/lib/softoken/pkcs11.c
@@ -617,7 +617,7 @@ sftk_hasNullPassword(SFTKSlot *slot, SFTKDBHandle *keydb)
pwenabled = PR_FALSE;
if (sftkdb_HasPasswordSet(keydb) == SECSuccess) {
PRBool tokenRemoved = PR_FALSE;
- SECStatus rv = sftkdb_CheckPassword(keydb, "", &tokenRemoved);
+ SECStatus rv = sftkdb_CheckPasswordNull(keydb, &tokenRemoved);
if (tokenRemoved) {
sftk_CloseAllSessions(slot, PR_FALSE);
}
@@ -3812,7 +3812,7 @@ NSC_SetPIN(CK_SESSION_HANDLE hSession, CK_CHAR_PTR pOldPin,
PZ_Unlock(slot->slotLock);
tokenRemoved = PR_FALSE;
- rv = sftkdb_CheckPassword(handle, "", &tokenRemoved);
+ rv = sftkdb_CheckPasswordNull(handle, &tokenRemoved);
if (tokenRemoved) {
sftk_CloseAllSessions(slot, PR_FALSE);
}