1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-07 08:02:55 +03:00

kex: Fix some build warnings.

This commit is contained in:
Andreas Schneider
2011-11-10 14:46:22 +01:00
parent bc2ab9b414
commit ce0324770d
3 changed files with 4 additions and 3 deletions

View File

@@ -37,7 +37,9 @@ SSH_PACKET_CALLBACK(ssh_packet_kexinit);
SSH_PACKET_CALLBACK(ssh_packet_publickey1); SSH_PACKET_CALLBACK(ssh_packet_publickey1);
#endif #endif
extern const char *supported_methods[];
extern const char *ssh_kex_nums[]; extern const char *ssh_kex_nums[];
int ssh_send_kex(ssh_session session, int server_kex); int ssh_send_kex(ssh_session session, int server_kex);
void ssh_list_kex(ssh_session session, struct ssh_kex_struct *kex); void ssh_list_kex(ssh_session session, struct ssh_kex_struct *kex);
int set_client_kex(ssh_session session); int set_client_kex(ssh_session session);

View File

@@ -70,7 +70,7 @@
#define KEY_EXCHANGE "diffie-hellman-group1-sha1" #define KEY_EXCHANGE "diffie-hellman-group1-sha1"
#endif #endif
const char *default_methods[] = { static const char *default_methods[] = {
KEY_EXCHANGE, KEY_EXCHANGE,
"ssh-rsa,ssh-dss", "ssh-rsa,ssh-dss",
AES BLOWFISH DES, AES BLOWFISH DES,

View File

@@ -52,6 +52,7 @@
#include "libssh/packet.h" #include "libssh/packet.h"
#include "libssh/socket.h" #include "libssh/socket.h"
#include "libssh/session.h" #include "libssh/session.h"
#include "libssh/kex.h"
#include "libssh/misc.h" #include "libssh/misc.h"
#include "libssh/pki.h" #include "libssh/pki.h"
#include "libssh/dh.h" #include "libssh/dh.h"
@@ -72,8 +73,6 @@ static int dh_handshake_server(ssh_session session);
* @{ * @{
*/ */
extern const char *supported_methods[];
/** @internal /** @internal
* This functions sets the Key Exchange protocols to be accepted * This functions sets the Key Exchange protocols to be accepted
* by the server. They depend on * by the server. They depend on