diff options
author | djm <djm> | 2008-05-19 04:59:37 +0000 |
---|---|---|
committer | djm <djm> | 2008-05-19 04:59:37 +0000 |
commit | bfb489464d3344dec6dd4bc48c6ea30e0b296a38 (patch) | |
tree | c09eaca9e273766f8fbf98f42b9cd1466c236811 /packet.h | |
parent | 2ab623d09c625b1f753dc7a77ba53e9887ea1039 (diff) | |
download | openssh-bfb489464d3344dec6dd4bc48c6ea30e0b296a38.tar.gz |
- markus@cvs.openbsd.org 2008/05/08 06:59:01
[bufaux.c buffer.h channels.c packet.c packet.h]
avoid extra malloc/copy/free when receiving data over the net;
~10% speedup for localhost-scp; ok djm@
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: packet.h,v 1.46 2008/02/22 20:44:02 dtucker Exp $ */ +/* $OpenBSD: packet.h,v 1.47 2008/05/08 06:59:01 markus Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -58,6 +58,7 @@ void packet_get_bignum(BIGNUM * value); void packet_get_bignum2(BIGNUM * value); void *packet_get_raw(u_int *length_ptr); void *packet_get_string(u_int *length_ptr); +void *packet_get_string_ptr(u_int *length_ptr); void packet_disconnect(const char *fmt,...) __attribute__((format(printf, 1, 2))); void packet_send_debug(const char *fmt,...) __attribute__((format(printf, 1, 2))); |