diff options
author | Damien Miller <djm@mindrot.org> | 2013-11-08 12:16:49 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-11-08 12:16:49 +1100 |
commit | 690d989008e18af3603a5e03f1276c9bad090370 (patch) | |
tree | 60dc95d5ad849ee6600da56ac4635b42740aad60 /kex.c | |
parent | 08998c5fb9c7c1d248caa73b76e02ca0482e6d85 (diff) |
- dtucker@cvs.openbsd.org 2013/11/07 11:58:27
[cipher.c cipher.h kex.c kex.h mac.c mac.h servconf.c ssh.c]
Output the effective values of Ciphers, MACs and KexAlgorithms when
the default has not been overridden. ok markus@
Diffstat (limited to 'kex.c')
-rw-r--r-- | kex.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kex.c,v 1.92 2013/11/02 21:59:15 markus Exp $ */ | 1 | /* $OpenBSD: kex.c,v 1.93 2013/11/07 11:58:27 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -85,7 +85,7 @@ static const struct kexalg kexalgs[] = { | |||
85 | }; | 85 | }; |
86 | 86 | ||
87 | char * | 87 | char * |
88 | kex_alg_list(void) | 88 | kex_alg_list(char sep) |
89 | { | 89 | { |
90 | char *ret = NULL; | 90 | char *ret = NULL; |
91 | size_t nlen, rlen = 0; | 91 | size_t nlen, rlen = 0; |
@@ -93,7 +93,7 @@ kex_alg_list(void) | |||
93 | 93 | ||
94 | for (k = kexalgs; k->name != NULL; k++) { | 94 | for (k = kexalgs; k->name != NULL; k++) { |
95 | if (ret != NULL) | 95 | if (ret != NULL) |
96 | ret[rlen++] = '\n'; | 96 | ret[rlen++] = sep; |
97 | nlen = strlen(k->name); | 97 | nlen = strlen(k->name); |
98 | ret = xrealloc(ret, 1, rlen + nlen + 2); | 98 | ret = xrealloc(ret, 1, rlen + nlen + 2); |
99 | memcpy(ret + rlen, k->name, nlen + 1); | 99 | memcpy(ret + rlen, k->name, nlen + 1); |