diff options
author | naddy@openbsd.org <naddy@openbsd.org> | 2019-09-06 14:45:34 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-09-08 14:49:04 +1000 |
commit | 91a2135f32acdd6378476c5bae475a6e7811a6a2 (patch) | |
tree | da8ddb5e4236cb12f3c70ab939e3abe674aa8ba4 /ssh.c | |
parent | c8bdd2db77ac2369d5cdee237656f266c8f41552 (diff) |
upstream: Allow prepending a list of algorithms to the default set
by starting the list with the '^' character, e.g.
HostKeyAlgorithms ^ssh-ed25519
Ciphers ^aes128-gcm@openssh.com,aes256-gcm@openssh.com
ok djm@ dtucker@
OpenBSD-Commit-ID: 1e1996fac0dc8a4b0d0ff58395135848287f6f97
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh.c,v 1.505 2019/06/28 13:35:04 deraadt Exp $ */ | 1 | /* $OpenBSD: ssh.c,v 1.506 2019/09/06 14:45:34 naddy Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -877,7 +877,7 @@ main(int ac, char **av) | |||
877 | } | 877 | } |
878 | break; | 878 | break; |
879 | case 'c': | 879 | case 'c': |
880 | if (!ciphers_valid(*optarg == '+' ? | 880 | if (!ciphers_valid(*optarg == '+' || *optarg == '^' ? |
881 | optarg + 1 : optarg)) { | 881 | optarg + 1 : optarg)) { |
882 | fprintf(stderr, "Unknown cipher type '%s'\n", | 882 | fprintf(stderr, "Unknown cipher type '%s'\n", |
883 | optarg); | 883 | optarg); |