Lines Matching defs:user
85 "usage: srp [args] [user] \n",
91 " -add add an user and srp verifier\n",
92 " -modify modify the srp verifier of an existing user\n",
93 " -delete delete user from verifier file\n",
94 " -list list user\n",
96 " -userinfo arg additional info to be set for user\n",
170 print_entry(db, bio, userindex, verbose, "User entry");
211 static char *srp_verify_user(const char *user, const char *srp_verifier,
220 cb_tmp.prompt_info = user;
225 VERBOSE BIO_printf(bio,"Validating\n user=\"%s\"\n srp_verifier=\"%s\"\n srp_usersalt=\"%s\"\n g=\"%s\"\n N=\"%s\"\n",user,srp_verifier,srp_usersalt, g, N);
228 if (!(gNid=SRP_create_verifier(user, password, &srp_usersalt, &verifier, N, g)))
242 static char *srp_create_user(char *user, char **srp_verifier,
250 cb_tmp.prompt_info = user;
255 VERBOSE BIO_printf(bio,"Creating\n user=\"%s\"\n g=\"%s\"\n N=\"%s\"\n",user,g,N);
256 if (!(gNid =SRP_create_verifier(user, password, &salt, srp_verifier, N, g)))
274 char * user = NULL;
401 BIO_printf(bio_err,"Need at least one user for options -add, -delete, -modify. \n");
406 BIO_printf(bio_err,"-passin, -passout arguments only valid with one user.\n");
551 VVERBOSE BIO_printf(bio_err,"Starting user processing\n");
554 user = *(argv++) ;
556 while (list_user || user)
559 if (user)
560 VVERBOSE BIO_printf(bio_err, "Processing user \"%s\"\n", user);
561 if ((userindex = get_index(db, user, 'U')) >= 0)
568 if (user == NULL)
580 BIO_printf(bio_err, "user \"%s\" does not exist, ignored. t\n",
581 user);
589 /* reactivation of a new user */
591 BIO_printf(bio_err, "user \"%s\" reactivated.\n", user);
602 if (!(gNid = srp_create_user(user,&(row[DB_srpverifier]), &(row[DB_srpsalt]),gNrow?gNrow[DB_srpsalt]:gN,gNrow?gNrow[DB_srpverifier]:NULL, passout, bio_err,verbose)))
604 BIO_printf(bio_err, "Cannot create srp verifier for user \"%s\", operation abandoned .\n", user);
608 row[DB_srpid] = BUF_strdup(user);
631 BIO_printf(bio_err,"user \"%s\" does not exist, operation ignored.\n",user);
641 BIO_printf(bio_err,"user \"%s\" already updated, operation ignored.\n",user);
652 VERBOSE BIO_printf(bio_err,"Verifying password for user \"%s\"\n",user);
656 if (!srp_verify_user(user, row[DB_srpverifier], row[DB_srpsalt], irow ? irow[DB_srpsalt] : row[DB_srpgN], irow ? irow[DB_srpverifier] : NULL, passin, bio_err, verbose))
658 BIO_printf(bio_err, "Invalid password for user \"%s\", operation abandoned.\n", user);
663 VERBOSE BIO_printf(bio_err,"Password for user \"%s\" ok.\n",user);
665 if (!(gNid=srp_create_user(user,&(row[DB_srpverifier]), &(row[DB_srpsalt]),gNrow?gNrow[DB_srpsalt]:NULL, gNrow?gNrow[DB_srpverifier]:NULL, passout, bio_err,verbose)))
667 BIO_printf(bio_err, "Cannot create srp verifier for user \"%s\", operation abandoned.\n", user);
687 BIO_printf(bio_err, "user \"%s\" does not exist, operation ignored. t\n", user);
693 BIO_printf(bio_err, "user \"%s\" revoked. t\n", user);
701 user = *(argv++) ;
704 user = NULL;
709 VERBOSE BIO_printf(bio_err,"User procession done.\n");
738 VERBOSE BIO_printf(bio_err,"User errors %d.\n",errors);