version 1.194, 2010/06/30 07:26:03 |
version 1.196, 2010/08/04 05:40:39 |
|
|
do_convert_from(struct passwd *pw) |
do_convert_from(struct passwd *pw) |
{ |
{ |
Key *k = NULL; |
Key *k = NULL; |
int private = 0, ok; |
int private = 0, ok = 0; |
struct stat st; |
struct stat st; |
|
|
if (!have_identity) |
if (!have_identity) |
|
|
prepare_options_buf(Buffer *c, int which) |
prepare_options_buf(Buffer *c, int which) |
{ |
{ |
buffer_clear(c); |
buffer_clear(c); |
|
if ((which & OPTIONS_CRITICAL) != 0 && |
|
certflags_command != NULL) |
|
add_string_option(c, "force-command", certflags_command); |
if ((which & OPTIONS_EXTENSIONS) != 0 && |
if ((which & OPTIONS_EXTENSIONS) != 0 && |
(certflags_flags & CERTOPT_X_FWD) != 0) |
|
add_flag_option(c, "permit-X11-forwarding"); |
|
if ((which & OPTIONS_EXTENSIONS) != 0 && |
|
(certflags_flags & CERTOPT_AGENT_FWD) != 0) |
(certflags_flags & CERTOPT_AGENT_FWD) != 0) |
add_flag_option(c, "permit-agent-forwarding"); |
add_flag_option(c, "permit-agent-forwarding"); |
if ((which & OPTIONS_EXTENSIONS) != 0 && |
if ((which & OPTIONS_EXTENSIONS) != 0 && |
|
|
if ((which & OPTIONS_EXTENSIONS) != 0 && |
if ((which & OPTIONS_EXTENSIONS) != 0 && |
(certflags_flags & CERTOPT_USER_RC) != 0) |
(certflags_flags & CERTOPT_USER_RC) != 0) |
add_flag_option(c, "permit-user-rc"); |
add_flag_option(c, "permit-user-rc"); |
if ((which & OPTIONS_CRITICAL) != 0 && |
if ((which & OPTIONS_EXTENSIONS) != 0 && |
certflags_command != NULL) |
(certflags_flags & CERTOPT_X_FWD) != 0) |
add_string_option(c, "force-command", certflags_command); |
add_flag_option(c, "permit-X11-forwarding"); |
if ((which & OPTIONS_CRITICAL) != 0 && |
if ((which & OPTIONS_CRITICAL) != 0 && |
certflags_src_addr != NULL) |
certflags_src_addr != NULL) |
add_string_option(c, "source-address", certflags_src_addr); |
add_string_option(c, "source-address", certflags_src_addr); |