kex: Fix some build warnings.
Этот коммит содержится в:
родитель
bc2ab9b414
Коммит
ce0324770d
@ -37,7 +37,9 @@ SSH_PACKET_CALLBACK(ssh_packet_kexinit);
|
||||
SSH_PACKET_CALLBACK(ssh_packet_publickey1);
|
||||
#endif
|
||||
|
||||
extern const char *supported_methods[];
|
||||
extern const char *ssh_kex_nums[];
|
||||
|
||||
int ssh_send_kex(ssh_session session, int server_kex);
|
||||
void ssh_list_kex(ssh_session session, struct ssh_kex_struct *kex);
|
||||
int set_client_kex(ssh_session session);
|
||||
|
@ -70,7 +70,7 @@
|
||||
#define KEY_EXCHANGE "diffie-hellman-group1-sha1"
|
||||
#endif
|
||||
|
||||
const char *default_methods[] = {
|
||||
static const char *default_methods[] = {
|
||||
KEY_EXCHANGE,
|
||||
"ssh-rsa,ssh-dss",
|
||||
AES BLOWFISH DES,
|
||||
|
@ -52,6 +52,7 @@
|
||||
#include "libssh/packet.h"
|
||||
#include "libssh/socket.h"
|
||||
#include "libssh/session.h"
|
||||
#include "libssh/kex.h"
|
||||
#include "libssh/misc.h"
|
||||
#include "libssh/pki.h"
|
||||
#include "libssh/dh.h"
|
||||
@ -72,8 +73,6 @@ static int dh_handshake_server(ssh_session session);
|
||||
* @{
|
||||
*/
|
||||
|
||||
extern const char *supported_methods[];
|
||||
|
||||
/** @internal
|
||||
* This functions sets the Key Exchange protocols to be accepted
|
||||
* by the server. They depend on
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user