Home
last modified time | relevance | path

Searched refs:force_command (Results 1 – 6 of 6) sorted by relevance

/freebsd-12.1/crypto/openssh/
H A Dauth-options.c194 if (opts->force_command != NULL) { in cert_option_list()
200 opts->force_command = command; in cert_option_list()
274 free(opts->force_command); in sshauthopt_free()
422 if (ret->force_command != NULL) { in sshauthopt_parse()
427 if (ret->force_command == NULL) in sshauthopt_parse()
656 if (strcmp(primary->force_command, in sshauthopt_merge()
659 ret->force_command = strdup(primary->force_command); in sshauthopt_merge()
660 if (ret->force_command == NULL) in sshauthopt_merge()
667 if ((ret->force_command = strdup( in sshauthopt_merge()
671 if ((ret->force_command = strdup( in sshauthopt_merge()
[all …]
H A Dauth-options.h48 char *force_command; member
H A Dauth.c407 if (auth_opts->force_command != NULL) { in auth_root_allowed()
1026 opts->force_command == NULL ? "" : " command", in auth_log_authopts()
1062 if (opts->force_command != NULL) in auth_log_authopts()
1063 debug("%s: forced command: \"%s\"", loc, opts->force_command); in auth_log_authopts()
H A Dsession.c704 } else if (auth_opts->force_command != NULL) { in do_exec()
706 command = auth_opts->force_command; in do_exec()
/freebsd-12.1/crypto/openssh/regress/unittests/authopt/
H A Dtests.c113 STR_EQ(force_command); in compare_opts()
244 STRING_TEST("command", force_command, "/bin/true"); in test_authkeys_parse()
340 expected->force_command = strdup("foo"); in test_cert_parse()
341 ASSERT_PTR_NE(expected->force_command, NULL); in test_cert_parse()
509 expected->force_command = strdup("foo"); in test_merge()
510 ASSERT_PTR_NE(expected->force_command, NULL); in test_merge()
521 expected->force_command = strdup("bar"); in test_merge()
522 ASSERT_PTR_NE(expected->force_command, NULL); in test_merge()
528 expected->force_command = strdup("foo"); in test_merge()
529 ASSERT_PTR_NE(expected->force_command, NULL); in test_merge()
/freebsd-12.1/crypto/openssh/regress/unittests/authopt/testdata/
H A Dmktestdata.sh37 sign force_command.cert -Oforce-command="foo"