diff options
author | kivinen <kivinen@pkgsrc.org> | 2005-08-24 09:13:24 +0000 |
---|---|---|
committer | kivinen <kivinen@pkgsrc.org> | 2005-08-24 09:13:24 +0000 |
commit | be30f7a7f233a076fe61081c84a5314809cf45b7 (patch) | |
tree | 898273a710555cd3c21cf63f56178c10cbda750e /security/ssh2/patches | |
parent | e772a967651e71ae491abe733754f7edf620c026 (diff) | |
download | pkgsrc-be30f7a7f233a076fe61081c84a5314809cf45b7.tar.gz |
Fixed ssh_encode_* calls to have casts to SshUInt32 or size_t
to get it working properly on the 64-bit platform (amd64).
Diffstat (limited to 'security/ssh2/patches')
-rw-r--r-- | security/ssh2/patches/patch-ai | 13 | ||||
-rw-r--r-- | security/ssh2/patches/patch-aj | 24 | ||||
-rw-r--r-- | security/ssh2/patches/patch-ak | 22 | ||||
-rw-r--r-- | security/ssh2/patches/patch-al | 13 | ||||
-rw-r--r-- | security/ssh2/patches/patch-am | 13 | ||||
-rw-r--r-- | security/ssh2/patches/patch-an | 13 | ||||
-rw-r--r-- | security/ssh2/patches/patch-ao | 17 | ||||
-rw-r--r-- | security/ssh2/patches/patch-ap | 14 |
8 files changed, 129 insertions, 0 deletions
diff --git a/security/ssh2/patches/patch-ai b/security/ssh2/patches/patch-ai new file mode 100644 index 00000000000..9ef6b132316 --- /dev/null +++ b/security/ssh2/patches/patch-ai @@ -0,0 +1,13 @@ +$NetBSD: patch-ai,v 1.1 2005/08/24 09:13:24 kivinen Exp $ + +--- apps/ssh/authc-kbd-interactive.c.orig 2003-12-03 15:17:26.000000000 +0200 ++++ apps/ssh/authc-kbd-interactive.c +@@ -103,7 +103,7 @@ SSH_FSM_STEP(ssh_kbd_process_packet) + + ssh_encode_buffer(gdata->response_packet, + SSH_FORMAT_CHAR, SSH_MSG_USERAUTH_INFO_RESPONSE, +- SSH_FORMAT_UINT32, gdata->num_prompts, ++ SSH_FORMAT_UINT32, (SshUInt32) gdata->num_prompts, + SSH_FORMAT_END); + + diff --git a/security/ssh2/patches/patch-aj b/security/ssh2/patches/patch-aj new file mode 100644 index 00000000000..b4ae7f76dec --- /dev/null +++ b/security/ssh2/patches/patch-aj @@ -0,0 +1,24 @@ +$NetBSD: patch-aj,v 1.1 2005/08/24 09:13:24 kivinen Exp $ + +--- apps/ssh/lib/sshproto/sshconn.c.orig 2003-12-03 15:17:34.000000000 +0200 ++++ apps/ssh/lib/sshproto/sshconn.c +@@ -452,7 +452,8 @@ Boolean ssh_conn_send_channel_data_type( + (unsigned int) SSH_MSG_CHANNEL_DATA, + SSH_FORMAT_UINT32, (SshUInt32) + channel->remote_id, +- SSH_FORMAT_UINT32_STR, buf, len, ++ SSH_FORMAT_UINT32_STR, buf, ++ (size_t) len, + SSH_FORMAT_END); + } + else +@@ -465,7 +466,8 @@ Boolean ssh_conn_send_channel_data_type( + SSH_FORMAT_UINT32, (SshUInt32) + channel->remote_id, + SSH_FORMAT_UINT32, (SshUInt32) i, +- SSH_FORMAT_UINT32_STR, buf, len, ++ SSH_FORMAT_UINT32_STR, buf, ++ (size_t) len, + SSH_FORMAT_END); + } + diff --git a/security/ssh2/patches/patch-ak b/security/ssh2/patches/patch-ak new file mode 100644 index 00000000000..e5ee668bae2 --- /dev/null +++ b/security/ssh2/patches/patch-ak @@ -0,0 +1,22 @@ +$NetBSD: patch-ak,v 1.1 2005/08/24 09:13:24 kivinen Exp $ + +--- apps/ssh/lib/sshproto/trcommon.c.orig 2003-12-03 15:17:33.000000000 +0200 ++++ apps/ssh/lib/sshproto/trcommon.c +@@ -555,7 +555,7 @@ void ssh_tr_send_packet(SshTransportComm + SSH_DEBUG(5, ("Outgoing empty, sending empty ignore packet.")); + ret = ssh_encode_buffer(&new_packet, + SSH_FORMAT_CHAR, (unsigned int) SSH_MSG_IGNORE, +- SSH_FORMAT_UINT32, 0L, ++ SSH_FORMAT_UINT32, (SshUInt32) 0L, + SSH_FORMAT_END); + SSH_VERIFY(ret > 0); + ssh_tr_encode_packet(tr, ssh_buffer_ptr(&new_packet), +@@ -3171,7 +3171,7 @@ void ssh_tr_process_up_incoming_packet(S + + ssh_encode_buffer(new_packet, + SSH_FORMAT_CHAR, (unsigned int) SSH_MSG_IGNORE, +- SSH_FORMAT_UINT32, ignore_len, ++ SSH_FORMAT_UINT32, (SshUInt32) ignore_len, + SSH_FORMAT_END); + + ssh_xbuffer_append_space(new_packet, &datap, ignore_len); diff --git a/security/ssh2/patches/patch-al b/security/ssh2/patches/patch-al new file mode 100644 index 00000000000..002bf10a3d8 --- /dev/null +++ b/security/ssh2/patches/patch-al @@ -0,0 +1,13 @@ +$NetBSD: patch-al,v 1.1 2005/08/24 09:13:24 kivinen Exp $ + +--- apps/ssh/ssh-agent2.c.orig 2003-12-03 15:17:27.000000000 +0200 ++++ apps/ssh/ssh-agent2.c +@@ -1802,7 +1802,7 @@ void ssh_agenti_ssh1_encode_mp(SshBuffer + num_buf = ssh_xmalloc(num_buf_len); + ssh_mp_get_buf(num_buf, num_buf_len, n); + ssh_encode_buffer(buffer, +- SSH_FORMAT_DATA, len_buf, 2, ++ SSH_FORMAT_DATA, len_buf, (size_t) 2, + SSH_FORMAT_DATA, num_buf, num_buf_len, + SSH_FORMAT_END); + ssh_xfree(num_buf); diff --git a/security/ssh2/patches/patch-am b/security/ssh2/patches/patch-am new file mode 100644 index 00000000000..404076dfa52 --- /dev/null +++ b/security/ssh2/patches/patch-am @@ -0,0 +1,13 @@ +$NetBSD: patch-am,v 1.1 2005/08/24 09:13:24 kivinen Exp $ + +--- apps/ssh/ssh-signer2.c.orig 2003-12-03 15:17:26.000000000 +0200 ++++ apps/ssh/ssh-signer2.c +@@ -264,7 +264,7 @@ SSH_FSM_STEP(signer_send_error) + (unsigned int) gdata->error_code_to_ssh2, + SSH_FORMAT_UINT32_STR, gdata->error_message_to_ssh2, + strlen(gdata->error_message_to_ssh2), +- SSH_FORMAT_UINT32_STR, "en", 2, ++ SSH_FORMAT_UINT32_STR, "en", (size_t) 2, + SSH_FORMAT_END); + + ssh_packet_wrapper_can_receive(gdata->wrapper, FALSE); diff --git a/security/ssh2/patches/patch-an b/security/ssh2/patches/patch-an new file mode 100644 index 00000000000..35e9ef845c2 --- /dev/null +++ b/security/ssh2/patches/patch-an @@ -0,0 +1,13 @@ +$NetBSD: patch-an,v 1.1 2005/08/24 09:13:24 kivinen Exp $ + +--- apps/ssh/ssh1proto.c.orig 2003-12-03 15:17:26.000000000 +0200 ++++ apps/ssh/ssh1proto.c +@@ -3918,7 +3918,7 @@ void ssh1_handle_packet_smsg_auth_rsa_ch + SSH_FORMAT_UINT32_STR, + challenge_buf, challenge_len, + SSH_FORMAT_UINT32_STR, +- ssh1->session_id, 16, ++ ssh1->session_id, (size_t) 16, + SSH_FORMAT_END); + ssh_xfree(challenge_buf); + ssh1->mode = SSH1_AGENT_OPERATION_IN_PROGRESS; diff --git a/security/ssh2/patches/patch-ao b/security/ssh2/patches/patch-ao new file mode 100644 index 00000000000..cf5c2729401 --- /dev/null +++ b/security/ssh2/patches/patch-ao @@ -0,0 +1,17 @@ +$NetBSD: patch-ao,v 1.1 2005/08/24 09:13:24 kivinen Exp $ + +--- apps/ssh/sshchsession.c.orig 2003-12-03 15:17:23.000000000 +0200 ++++ apps/ssh/sshchsession.c +@@ -2315,9 +2315,9 @@ void ssh_channel_session_eof_callback(vo + { + ssh_encode_buffer(&buffer, + SSH_FORMAT_UINT32, (SshUInt32) -exit_status, +- SSH_FORMAT_BOOLEAN, FALSE, +- SSH_FORMAT_UINT32_STR, NULL, 0, +- SSH_FORMAT_UINT32_STR, NULL, 0, ++ SSH_FORMAT_BOOLEAN, (Boolean) FALSE, ++ SSH_FORMAT_UINT32_STR, NULL, (size_t) 0, ++ SSH_FORMAT_UINT32_STR, NULL, (size_t) 0, + SSH_FORMAT_END); + + 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), |