From dfc35699ea4d5537b6e5d92673a97e59f8cf7bb1 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 20 Apr 2010 13:28:54 +0200 Subject: [PATCH] packet: Fixed linking if we build without server support. Thanks to Xi Wang for the patch. --- libssh/packet.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libssh/packet.c b/libssh/packet.c index 4003ed1e..ad10b496 100644 --- a/libssh/packet.c +++ b/libssh/packet.c @@ -59,8 +59,12 @@ ssh_packet_callback default_packet_handlers[]= { ssh_packet_newkeys, // SSH2_MSG_NEWKEYS 21 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, // 22-29 +#if WITH_SERVER ssh_packet_kexdh_init, // SSH2_MSG_KEXDH_INIT 30 // SSH2_MSG_KEX_DH_GEX_REQUEST_OLD 30 +#else + NULL, +#endif ssh_packet_dh_reply, // SSH2_MSG_KEXDH_REPLY 31 // SSH2_MSG_KEX_DH_GEX_GROUP 31 NULL, // SSH2_MSG_KEX_DH_GEX_INIT 32