diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-28 07:38:20 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-28 07:38:20 +0200 |
commit | 6b2bba06b433fb75979ab6daf7bbe8bc76c53875 (patch) | |
tree | 75803b4683889e6e0d2a3faef30415db3ff7b3ba /security/nss/cmd/modutil/pk11.c | |
parent | 72def35cd0cf3649b6d7ab72b66117df3e1c33fc (diff) | |
parent | c75dae3ed21bfa5a8ae46cd83d18329af5bea05a (diff) | |
download | UXP-6b2bba06b433fb75979ab6daf7bbe8bc76c53875.tar UXP-6b2bba06b433fb75979ab6daf7bbe8bc76c53875.tar.gz UXP-6b2bba06b433fb75979ab6daf7bbe8bc76c53875.tar.lz UXP-6b2bba06b433fb75979ab6daf7bbe8bc76c53875.tar.xz UXP-6b2bba06b433fb75979ab6daf7bbe8bc76c53875.zip |
Merge branch 'master' of https://github.com/MoonchildProductions/UXP into pm_url_1
Diffstat (limited to 'security/nss/cmd/modutil/pk11.c')
-rw-r--r-- | security/nss/cmd/modutil/pk11.c | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/security/nss/cmd/modutil/pk11.c b/security/nss/cmd/modutil/pk11.c index 1efc1895c..834469af1 100644 --- a/security/nss/cmd/modutil/pk11.c +++ b/security/nss/cmd/modutil/pk11.c @@ -670,39 +670,6 @@ loser: /************************************************************************ * - * I n i t P W - */ -Error -InitPW(void) -{ - PK11SlotInfo *slot; - Error ret = UNSPECIFIED_ERR; - - slot = PK11_GetInternalKeySlot(); - if (!slot) { - PR_fprintf(PR_STDERR, errStrings[NO_SUCH_TOKEN_ERR], "internal"); - return NO_SUCH_TOKEN_ERR; - } - - /* Set the initial password to empty */ - if (PK11_NeedUserInit(slot)) { - if (PK11_InitPin(slot, NULL, "") != SECSuccess) { - PR_fprintf(PR_STDERR, errStrings[INITPW_FAILED_ERR]); - ret = INITPW_FAILED_ERR; - goto loser; - } - } - - ret = SUCCESS; - -loser: - PK11_FreeSlot(slot); - - return ret; -} - -/************************************************************************ - * * C h a n g e P W */ Error @@ -728,7 +695,7 @@ ChangePW(char *tokenName, char *pwFile, char *newpwFile) ret = BAD_PW_ERR; goto loser; } - } else if (PK11_NeedLogin(slot)) { + } else { for (matching = PR_FALSE; !matching;) { oldpw = SECU_GetPasswordString(NULL, "Enter old password: "); if (PK11_CheckUserPassword(slot, oldpw) == SECSuccess) { |