summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorsf@openbsd.org <sf@openbsd.org>2018-07-06 09:03:02 +0000
committerDamien Miller <djm@mindrot.org>2018-07-10 15:13:40 +1000
commitf28a4d5cd24c4aa177e96b4f96957991e552cb70 (patch)
tree0be2bff2aa2648f80e0f259b9d45794c25d2ccd7 /packet.c
parent872517ddbb72deaff31d4760f28f2b0a1c16358f (diff)
upstream: Remove unused ssh_packet_start_compression()
ok markus@ OpenBSD-Commit-ID: 9d34cf2f59aca5422021ae2857190578187dc2b4
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/packet.c b/packet.c
index ab9a391b5..4da9f52b6 100644
--- a/packet.c
+++ b/packet.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: packet.c,v 1.271 2018/06/01 04:05:29 djm Exp $ */ 1/* $OpenBSD: packet.c,v 1.272 2018/07/06 09:03:02 sf 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
@@ -147,12 +147,6 @@ struct session_state {
147 int compression_in_failures; 147 int compression_in_failures;
148 int compression_out_failures; 148 int compression_out_failures;
149 149
150 /*
151 * Flag indicating whether packet compression/decompression is
152 * enabled.
153 */
154 int packet_compression;
155
156 /* default maximum packet size */ 150 /* default maximum packet size */
157 u_int max_packet_size; 151 u_int max_packet_size;
158 152
@@ -717,21 +711,6 @@ start_compression_in(struct ssh *ssh)
717 return 0; 711 return 0;
718} 712}
719 713
720int
721ssh_packet_start_compression(struct ssh *ssh, int level)
722{
723 int r;
724
725 if (ssh->state->packet_compression)
726 return SSH_ERR_INTERNAL_ERROR;
727 ssh->state->packet_compression = 1;
728 if ((r = ssh_packet_init_compression(ssh)) != 0 ||
729 (r = start_compression_in(ssh)) != 0 ||
730 (r = start_compression_out(ssh, level)) != 0)
731 return r;
732 return 0;
733}
734
735/* XXX remove need for separate compression buffer */ 714/* XXX remove need for separate compression buffer */
736static int 715static int
737compress_buffer(struct ssh *ssh, struct sshbuf *in, struct sshbuf *out) 716compress_buffer(struct ssh *ssh, struct sshbuf *in, struct sshbuf *out)