Commit 59867e64 authored by Niels Möller's avatar Niels Möller
Browse files

*** empty log message ***

Rev: src/client_userauth.c:1.27
Rev: src/connection.c:1.48
Rev: src/io.h:1.56
parent 558a6d45
......@@ -316,7 +316,7 @@ make_failure_handler(struct client_userauth_state *state)
}
static void
do_userauth_banner(struct packet_handler *self,
do_userauth_banner(struct packet_handler *self UNUSED,
struct ssh_connection *connection UNUSED,
struct lsh_string *packet)
{
......@@ -348,7 +348,9 @@ do_userauth_banner(struct packet_handler *self,
lsh_string_free(packet);
}
static struct packet_handler *make_banner_handler(void)
/* FIXME: Could use a static object instead. */
static struct packet_handler *
make_banner_handler(void)
{
NEW(packet_handler, self);
......
......@@ -132,7 +132,7 @@ handle_connection(struct abstract_write *w,
}
static void
do_fail(struct packet_handler *closure,
do_fail(struct packet_handler *closure UNUSED,
struct ssh_connection *connection,
struct lsh_string *packet)
{
......@@ -143,6 +143,7 @@ do_fail(struct packet_handler *closure,
PROTOCOL_ERROR(connection->e, NULL);
}
/* FIXME: Could use a static object instead. */
struct packet_handler *make_fail_handler(void)
{
NEW(packet_handler, res);
......@@ -152,7 +153,7 @@ struct packet_handler *make_fail_handler(void)
}
static void
do_unimplemented(struct packet_handler *closure,
do_unimplemented(struct packet_handler *closure UNUSED,
struct ssh_connection *connection,
struct lsh_string *packet)
{
......@@ -169,6 +170,7 @@ do_unimplemented(struct packet_handler *closure,
lsh_string_free(packet);
}
/* FIXME: Could use a static object instead. */
struct packet_handler *make_unimplemented_handler(void)
{
NEW(packet_handler, res);
......@@ -242,6 +244,10 @@ make_ssh_connection(const char *debug_comment,
int i;
NEW(ssh_connection, connection);
/* FIXME: Should install an address_info here */
connection->peer = NULL;
connection->debug_comment = debug_comment;
connection->super.write = handle_connection;
......
......@@ -242,29 +242,36 @@ void io_run(struct io_backend *b);
int blocking_read(int fd, struct read_handler *r);
#if 0
int get_inaddr(struct sockaddr_in * addr,
const char * host,
const char * service,
const char * protocol);
int get_portno(const char *s, const char *protocol);
int tcp_addr(struct sockaddr_in *sin,
UINT32 length,
UINT8 *addr,
UINT32 port);
#endif
int get_portno(const char *service, const char *protocol);
struct address_info *make_address_info_c(const char *host,
const char *port);
struct address_info *
make_address_info_c(const char *host,
const char *port,
int def);
struct address_info *make_address_info(struct lsh_string *host,
UINT32 port);
struct address_info *
make_address_info(struct lsh_string *host,
UINT32 port);
struct address_info *sockaddr2info(size_t addr_len UNUSED,
struct sockaddr *addr);
struct address_info *
sockaddr2info(size_t addr_len,
struct sockaddr *addr);
int address_info2sockaddr_in(struct sockaddr_in *sin,
struct address_info *a);
struct sockaddr *
address_info2sockaddr(socklen_t *length,
struct address_info *a,
int lookup);
/* Returns an exception, if anything went wrong */
const struct exception *
......@@ -287,8 +294,8 @@ make_exc_finish_read_handler(struct lsh_fd *fd,
struct lsh_fd *
io_connect(struct io_backend *b,
struct sockaddr_in *remote,
struct sockaddr_in *local,
struct sockaddr *remote,
socklen_t remote_length,
struct command_continuation *c,
struct exception_handler *e);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment