From f28a4d5cd24c4aa177e96b4f96957991e552cb70 Mon Sep 17 00:00:00 2001 From: "sf@openbsd.org" Date: Fri, 6 Jul 2018 09:03:02 +0000 Subject: upstream: Remove unused ssh_packet_start_compression() ok markus@ OpenBSD-Commit-ID: 9d34cf2f59aca5422021ae2857190578187dc2b4 --- packet.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'packet.c') 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 * Copyright (c) 1995 Tatu Ylonen , 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) -- cgit v1.2.3