Lines Matching defs:mode
104 enum op_mode mode, const char *pin,
230 if (mode == OP_PREAUTH) {
241 if (mode == OP_AUTH || PK11_NeedLogin(slot)) {
365 if ((mode == OP_AUTH
373 || (mode == OP_PREAUTH
414 if (mode == OP_AUTH) {
633 enum op_mode mode = OP_NONE;
658 {"auth", 0, POPT_ARG_NONE, NULL, 'a', _("Run in auth mode"), NULL},
659 {"pre", 0, POPT_ARG_NONE, NULL, 'p', _("Run in pre-auth mode"), NULL},
693 if (mode != OP_NONE) {
700 mode = OP_AUTH;
703 if (mode != OP_NONE) {
710 mode = OP_PREAUTH;
744 if (mode == OP_NONE) {
745 fprintf(stderr, "\nMissing operation mode, " \
749 } else if (mode == OP_AUTH && pin_mode == PIN_NONE) {
750 fprintf(stderr, "\nMissing PIN mode for authentication, " \
778 DEBUG(SSSDBG_TRACE_INTERNAL, "Running in [%s] mode.\n",
779 mode == OP_AUTH ? "auth"
780 : (mode == OP_PREAUTH ? "pre-auth" : "unknown"));
798 if (mode == OP_AUTH && (module_name == NULL || token_name == NULL
813 if (mode == OP_AUTH && pin_mode == PIN_STDIN) {
821 ret = do_work(main_ctx, nss_db, mode, pin, cert_verify_opts, module_name,