summaryrefslogtreecommitdiff
path: root/kex.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-11-08 12:16:49 +1100
committerDamien Miller <djm@mindrot.org>2013-11-08 12:16:49 +1100
commit690d989008e18af3603a5e03f1276c9bad090370 (patch)
tree60dc95d5ad849ee6600da56ac4635b42740aad60 /kex.c
parent08998c5fb9c7c1d248caa73b76e02ca0482e6d85 (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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kex.c b/kex.c
index 07f25e2e2..0b139dc67 100644
--- a/kex.c
+++ b/kex.c
@@ -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
87char * 87char *
88kex_alg_list(void) 88kex_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);