mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +03:00
kex: Fix some build warnings.
This commit is contained in:
@@ -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);
|
||||||
|
@@ -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,
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user