=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/packet.c,v retrieving revision 1.161 retrieving revision 1.162 diff -u -r1.161 -r1.162 --- src/usr.bin/ssh/packet.c 2009/05/25 06:48:01 1.161 +++ src/usr.bin/ssh/packet.c 2009/05/27 06:36:07 1.162 @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.161 2009/05/25 06:48:01 andreas Exp $ */ +/* $OpenBSD: packet.c,v 1.162 2009/05/27 06:36:07 andreas Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -587,6 +587,12 @@ } void +packet_put_int64(u_int64_t value) +{ + buffer_put_int64(&active_state->outgoing_packet, value); +} + +void packet_put_string(const void *buf, u_int len) { buffer_put_string(&active_state->outgoing_packet, buf, len); @@ -1455,6 +1461,14 @@ packet_get_int(void) { return buffer_get_int(&active_state->incoming_packet); +} + +/* Returns an 64 bit integer from the packet data. */ + +u_int64_t +packet_get_int64(void) +{ + return buffer_get_int64(&active_state->incoming_packet); } /*