diff options
Diffstat (limited to 'cipher.c')
-rw-r--r-- | cipher.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cipher.c,v 1.113 2019/09/06 05:23:55 djm Exp $ */ | 1 | /* $OpenBSD: cipher.c,v 1.114 2020/01/23 10:24:29 dtucker 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 |
@@ -143,6 +143,17 @@ cipher_alg_list(char sep, int auth_only) | |||
143 | return ret; | 143 | return ret; |
144 | } | 144 | } |
145 | 145 | ||
146 | const char * | ||
147 | compression_alg_list(int compression) | ||
148 | { | ||
149 | #ifdef WITH_ZLIB | ||
150 | return compression ? "zlib@openssh.com,zlib,none" : | ||
151 | "none,zlib@openssh.com,zlib"; | ||
152 | #else | ||
153 | return "none"; | ||
154 | #endif | ||
155 | } | ||
156 | |||
146 | u_int | 157 | u_int |
147 | cipher_blocksize(const struct sshcipher *c) | 158 | cipher_blocksize(const struct sshcipher *c) |
148 | { | 159 | { |