summaryrefslogtreecommitdiffstats
path: root/packet.c
diff options
context:
space:
mode:
authorsf@openbsd.org <sf@openbsd.org>2018-07-06 11:03:02 +0200
committerDamien Miller <djm@mindrot.org>2018-07-10 07:13:40 +0200
commitf28a4d5cd24c4aa177e96b4f96957991e552cb70 (patch)
tree0be2bff2aa2648f80e0f259b9d45794c25d2ccd7 /packet.c
parentDefer setting bufsiz in getdelim. (diff)
downloadopenssh-f28a4d5cd24c4aa177e96b4f96957991e552cb70.tar.xz
openssh-f28a4d5cd24c4aa177e96b4f96957991e552cb70.zip
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 @@
-/* $OpenBSD: packet.c,v 1.271 2018/06/01 04:05:29 djm Exp $ */
+/* $OpenBSD: packet.c,v 1.272 2018/07/06 09:03:02 sf Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -147,12 +147,6 @@ struct session_state {
int compression_in_failures;
int compression_out_failures;
- /*
- * Flag indicating whether packet compression/decompression is
- * enabled.
- */
- int packet_compression;
-
/* default maximum packet size */
u_int max_packet_size;
@@ -717,21 +711,6 @@ start_compression_in(struct ssh *ssh)
return 0;
}
-int
-ssh_packet_start_compression(struct ssh *ssh, int level)
-{
- int r;
-
- if (ssh->state->packet_compression)
- return SSH_ERR_INTERNAL_ERROR;
- ssh->state->packet_compression = 1;
- if ((r = ssh_packet_init_compression(ssh)) != 0 ||
- (r = start_compression_in(ssh)) != 0 ||
- (r = start_compression_out(ssh, level)) != 0)
- return r;
- return 0;
-}
-
/* XXX remove need for separate compression buffer */
static int
compress_buffer(struct ssh *ssh, struct sshbuf *in, struct sshbuf *out)