=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/packet.c,v retrieving revision 1.271 retrieving revision 1.272 diff -u -r1.271 -r1.272 --- src/usr.bin/ssh/packet.c 2018/06/01 04:05:29 1.271 +++ src/usr.bin/ssh/packet.c 2018/07/06 09:03:02 1.272 @@ -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 @@ -141,12 +141,6 @@ 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; @@ -703,21 +697,6 @@ default: return SSH_ERR_INTERNAL_ERROR; } - 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; }