Lines Matching refs:user
122 static char *srp_verify_user(const char *user, const char *srp_verifier,
132 cb_tmp.prompt_info = user;
140 "Validating\n user=\"%s\"\n srp_verifier=\"%s\"\n srp_usersalt=\"%s\"\n g=\"%s\"\n N=\"%s\"\n",
141 user, srp_verifier, srp_usersalt, g, N);
146 if ((gNid = SRP_create_verifier(user, password, &srp_usersalt,
159 static char *srp_create_user(char *user, char **srp_verifier,
168 cb_tmp.prompt_info = user;
175 BIO_printf(bio_err, "Creating\n user=\"%s\"\n g=\"%s\"\n N=\"%s\"\n",
176 user, g, N);
177 if ((gNid = SRP_create_verifier(user, password, &salt,
200 {OPT_HELP_STR, 1, '-', "Usage: %s [options] [user...]\n"},
212 {"add", OPT_ADD, '-', "Add a user and SRP verifier"},
213 {"modify", OPT_MODIFY, '-', "Modify the SRP verifier of an existing user"},
214 {"delete", OPT_DELETE, '-', "Delete user from verifier file"},
220 {"userinfo", OPT_USERINFO, 's', "Additional info to be set for user"},
228 {"user", 0, 0, "Username(s) to process (optional)"},
239 char *user = NULL, *passinarg = NULL, *passoutarg = NULL;
327 BIO_printf(bio_err, "Need at least one user.\n");
330 user = *argv++;
334 "-passin, -passout arguments only valid with one user.\n");
416 BIO_printf(bio_err, "Starting user processing\n");
418 while (mode == OPT_LIST || user != NULL) {
421 if (user != NULL && verbose > 1)
422 BIO_printf(bio_err, "Processing user \"%s\"\n", user);
423 if ((userindex = get_index(db, user, 'U')) >= 0)
427 if (user == NULL) {
434 "user \"%s\" does not exist, ignored. t\n", user);
439 /* reactivation of a new user */
442 BIO_printf(bio_err, "user \"%s\" reactivated.\n", user);
454 srp_create_user(user, &(row[DB_srpverifier]),
460 "Cannot create srp verifier for user \"%s\", operation abandoned .\n",
461 user);
465 row[DB_srpid] = OPENSSL_strdup(user);
490 "user \"%s\" does not exist, operation ignored.\n",
491 user);
500 "user \"%s\" already updated, operation ignored.\n",
501 user);
511 "Verifying password for user \"%s\"\n",
512 user);
520 (user, row[DB_srpverifier], row[DB_srpsalt],
525 "Invalid password for user \"%s\", operation abandoned.\n",
526 user);
532 BIO_printf(bio_err, "Password for user \"%s\" ok.\n",
533 user);
537 srp_create_user(user, &(row[DB_srpverifier]),
543 "Cannot create srp verifier for user \"%s\", operation abandoned.\n",
544 user);
568 "user \"%s\" does not exist, operation ignored. t\n",
569 user);
574 BIO_printf(bio_err, "user \"%s\" revoked. t\n", user);
579 user = *argv++;
580 if (user == NULL) {