21 #include <sys/types.h>
24 #include "openbsd-compat/sys-queue.h"
34 char *proposal[PROPOSAL_MAX];
43 int ssh_init(
struct ssh **,
int is_server,
struct kex_params *kex_params);
48 void ssh_free(
struct ssh *);
53 void ssh_set_app_data(
struct ssh *,
void *);
54 void *ssh_get_app_data(
struct ssh *);
64 int ssh_add_hostkey(
struct ssh *ssh,
struct sshkey *key);
72 int ssh_set_verify_host_key_callback(
struct ssh *ssh,
73 int (*cb)(
struct sshkey *,
struct ssh *));
89 int ssh_packet_next(
struct ssh *ssh, u_char *typep);
96 const u_char *ssh_packet_payload(
struct ssh *ssh,
size_t *lenp);
103 int ssh_packet_put(
struct ssh *ssh,
int type,
const u_char *data,
110 int ssh_input_space(
struct ssh *ssh,
size_t len);
115 int ssh_input_append(
struct ssh *ssh,
const u_char *data,
size_t len);
121 int ssh_output_space(
struct ssh *ssh,
size_t len);
129 const u_char *ssh_output_ptr(
struct ssh *ssh,
size_t *len);
135 int ssh_output_consume(
struct ssh *ssh,
size_t len);