From 2530562407533bd74c2820fbf91f9a3a6662fe0b Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 6 Dec 2006 04:54:02 +0000 Subject: * Add ssh -K option, the converse of -k, to enable GSSAPI credential delegation (closes: #401483). --- ssh.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ssh.c') diff --git a/ssh.c b/ssh.c index a64f1e2dc..a86d0e17b 100644 --- a/ssh.c +++ b/ssh.c @@ -157,7 +157,7 @@ static void usage(void) { fprintf(stderr, -"usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]\n" +"usage: ssh [-1246AaCfgKkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]\n" " [-D [bind_address:]port] [-e escape_char] [-F configfile]\n" " [-i identity_file] [-L [bind_address:]port:host:hostport]\n" " [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]\n" @@ -244,7 +244,7 @@ main(int ac, char **av) again: while ((opt = getopt(ac, av, - "1246ab:c:e:fgi:kl:m:no:p:qstvxACD:F:I:L:MNO:PR:S:TVw:XY")) != -1) { + "1246ab:c:e:fgi:kl:m:no:p:qstvxACD:F:I:KL:MNO:PR:S:TVw:XY")) != -1) { switch (opt) { case '1': options.protocol = SSH_PROTO_1; @@ -298,6 +298,9 @@ again: case 'k': options.gss_deleg_creds = 0; break; + case 'K': + options.gss_deleg_creds = 1; + break; case 'i': if (stat(optarg, &st) < 0) { fprintf(stderr, "Warning: Identity file %s " -- cgit v1.2.3