summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2009-06-21 18:16:26 +1000
committerDarren Tucker <dtucker@zip.com.au>2009-06-21 18:16:26 +1000
commit761c38918aecbbe2df97d13aea29c6bbf9212617 (patch)
tree8c2936f107ddc4954e2e39be824681960d28503f /packet.c
parent5b48cdd882579f60217b9aa9a0c09e61e739a917 (diff)
- andreas@cvs.openbsd.org 2009/05/27 06:38:16
[sshconnect.h sshconnect.c] Un-static ssh_exchange_identification(), part of a larger change from Martin Forssen and needed for upcoming changes. ok markus@
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/packet.c b/packet.c
index fdc648888..cecab82e9 100644
--- a/packet.c
+++ b/packet.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: packet.c,v 1.161 2009/05/25 06:48:01 andreas Exp $ */ 1/* $OpenBSD: packet.c,v 1.162 2009/05/27 06:36:07 andreas Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -596,6 +596,12 @@ packet_put_int(u_int value)
596} 596}
597 597
598void 598void
599packet_put_int64(u_int64_t value)
600{
601 buffer_put_int64(&active_state->outgoing_packet, value);
602}
603
604void
599packet_put_string(const void *buf, u_int len) 605packet_put_string(const void *buf, u_int len)
600{ 606{
601 buffer_put_string(&active_state->outgoing_packet, buf, len); 607 buffer_put_string(&active_state->outgoing_packet, buf, len);
@@ -1467,6 +1473,14 @@ packet_get_int(void)
1467 return buffer_get_int(&active_state->incoming_packet); 1473 return buffer_get_int(&active_state->incoming_packet);
1468} 1474}
1469 1475
1476/* Returns an 64 bit integer from the packet data. */
1477
1478u_int64_t
1479packet_get_int64(void)
1480{
1481 return buffer_get_int64(&active_state->incoming_packet);
1482}
1483
1470/* 1484/*
1471 * Returns an arbitrary precision integer from the packet data. The integer 1485 * Returns an arbitrary precision integer from the packet data. The integer
1472 * must have been initialized before this call. 1486 * must have been initialized before this call.