diff options
author | Andreas Schneider <mail@cynapses.org> | 2010-04-20 13:28:54 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2010-04-20 13:28:54 +0200 |
commit | dfc35699ea4d5537b6e5d92673a97e59f8cf7bb1 (patch) | |
tree | 16acb704efba8bdde28a8ff0b00ce759e9183194 /libssh | |
parent | b7a7c816df48e7a66b452f5285f5cde3b3894a22 (diff) | |
download | libssh-dfc35699ea4d5537b6e5d92673a97e59f8cf7bb1.tar.gz libssh-dfc35699ea4d5537b6e5d92673a97e59f8cf7bb1.tar.xz libssh-dfc35699ea4d5537b6e5d92673a97e59f8cf7bb1.zip |
packet: Fixed linking if we build without server support.
Thanks to Xi Wang for the patch.
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/packet.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |