summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/packet.c
diff options
context:
space:
mode:
authorsf <sf@openbsd.org>2018-07-06 09:03:02 +0000
committersf <sf@openbsd.org>2018-07-06 09:03:02 +0000
commite260cbad5bc4d466763eee88277bdedb720a327c (patch)
tree648bad83d8454a2025f65f2d46ee6f03601f919f /usr.bin/ssh/packet.c
parentFix efiboot not to panic when a serial which does not exist actually (diff)
downloadwireguard-openbsd-e260cbad5bc4d466763eee88277bdedb720a327c.tar.xz
wireguard-openbsd-e260cbad5bc4d466763eee88277bdedb720a327c.zip
Remove unused ssh_packet_start_compression()
ok markus@
Diffstat (limited to 'usr.bin/ssh/packet.c')
-rw-r--r--usr.bin/ssh/packet.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/usr.bin/ssh/packet.c b/usr.bin/ssh/packet.c
index 4dbb6dbdef6..3bff73ca6c5 100644
--- a/usr.bin/ssh/packet.c
+++ b/usr.bin/ssh/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
@@ -141,12 +141,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;
@@ -706,21 +700,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)