version 1.120, 2023/12/18 14:45:17 |
version 1.121, 2023/12/18 14:45:49 |
|
|
#define KEX_RSA_SHA2_256_SUPPORTED 0x0008 /* only set in server for now */ |
#define KEX_RSA_SHA2_256_SUPPORTED 0x0008 /* only set in server for now */ |
#define KEX_RSA_SHA2_512_SUPPORTED 0x0010 /* only set in server for now */ |
#define KEX_RSA_SHA2_512_SUPPORTED 0x0010 /* only set in server for now */ |
#define KEX_HAS_PING 0x0020 |
#define KEX_HAS_PING 0x0020 |
|
#define KEX_HAS_EXT_INFO_IN_AUTH 0x0040 |
|
|
struct sshenc { |
struct sshenc { |
char *name; |
char *name; |
|
|
u_int kex_type; |
u_int kex_type; |
char *server_sig_algs; |
char *server_sig_algs; |
int ext_info_c; |
int ext_info_c; |
|
int ext_info_s; |
int kex_strict; |
int kex_strict; |
|
int ext_info_received; |
struct sshbuf *my; |
struct sshbuf *my; |
struct sshbuf *peer; |
struct sshbuf *peer; |
struct sshbuf *client_version; |
struct sshbuf *client_version; |
|
|
int kex_derive_keys(struct ssh *, u_char *, u_int, const struct sshbuf *); |
int kex_derive_keys(struct ssh *, u_char *, u_int, const struct sshbuf *); |
int kex_send_newkeys(struct ssh *); |
int kex_send_newkeys(struct ssh *); |
int kex_start_rekex(struct ssh *); |
int kex_start_rekex(struct ssh *); |
|
int kex_server_update_ext_info(struct ssh *); |
|
void kex_set_server_sig_algs(struct ssh *, const char *); |
|
|
int kexgex_client(struct ssh *); |
int kexgex_client(struct ssh *); |
int kexgex_server(struct ssh *); |
int kexgex_server(struct ssh *); |