-/* $OpenBSD: roaming_client.c,v 1.1 2009/10/24 11:22:37 andreas Exp $ */
+/* $OpenBSD: roaming_client.c,v 1.3 2010/01/18 01:50:27 dtucker Exp $ */
/*
* Copyright (c) 2004-2009 AppGate Network Security AB
*
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/queue.h>
+#include "includes.h"
+
+#include "openbsd-compat/sys-queue.h"
#include <sys/types.h>
#include <sys/socket.h>
+#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
+#endif
#include <signal.h>
#include <string.h>
#include <unistd.h>
calculate_new_key(&key1, cookie, chall);
calculate_new_key(&key2, cookie, chall);
- debug("Received %" PRIu64 " bytes", get_recv_bytes());
+ debug("Received %llu bytes", (unsigned long long)get_recv_bytes());
debug("Sent roaming_auth packet");
}
goto fail;
}
recv_bytes = packet_get_int64() ^ oldkey2;
- debug("Peer received %" PRIu64 " bytes", recv_bytes);
+ debug("Peer received %llu bytes", (unsigned long long)recv_bytes);
resend_bytes(packet_get_connection_out(), &recv_bytes);
resume_in_progress = 0;