From 6fa1656099d3cfcfa63a98bd09e9f3e466462760 Mon Sep 17 00:00:00 2001 From: kivinen Date: Wed, 24 Aug 2005 09:13:24 +0000 Subject: Fixed ssh_encode_* calls to have casts to SshUInt32 or size_t to get it working properly on the 64-bit platform (amd64). --- security/ssh2/patches/patch-ap | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 security/ssh2/patches/patch-ap (limited to 'security/ssh2/patches/patch-ap') diff --git a/security/ssh2/patches/patch-ap b/security/ssh2/patches/patch-ap new file mode 100644 index 00000000000..7d8de244a5d --- /dev/null +++ b/security/ssh2/patches/patch-ap @@ -0,0 +1,14 @@ +$NetBSD: patch-ap,v 1.1 2005/08/24 09:13:24 kivinen Exp $ + +--- apps/ssh/sshpamserver.c.orig 2003-12-03 15:17:26.000000000 +0200 ++++ apps/ssh/sshpamserver.c +@@ -306,7 +306,8 @@ int send_packet(int fd, SshPacketType pa + + buffer = ssh_xbuffer_allocate(); + ssh_encode_buffer(buffer, +- SSH_FORMAT_UINT32, ssh_buffer_len(packet) + 1, ++ SSH_FORMAT_UINT32, ++ (SshUInt32) (ssh_buffer_len(packet) + 1), + SSH_FORMAT_CHAR, (unsigned int)packet_type, + SSH_FORMAT_DATA, ssh_buffer_ptr(packet), + ssh_buffer_len(packet), -- cgit v1.2.3