Commit 50e19f08 authored by Niels Möller's avatar Niels Möller
Browse files

*** empty log message ***

Rev: ChangeLog:1.60
Rev: src/.cvsignore:1.14
Rev: src/invert-defs:1.1
Rev: src/io_commands.c:1.5
Rev: src/lshd.c:1.45
Rev: src/service.h:1.14
parent 2f4ab261
Mon Apr 5 11:43:12 1999 Niels Möller <nisse@lysator.liu.se>
* src/werror.c (werror_hex): Bugfix.
* src/service.c: Moved server-specific functionality to server.c.
* src/server.c (make_service_request_handler): New function
(replaces make_service_handler in service.c).
(make_offer_service): New function (replaces the meta_service in
service.c).
* src/lsh.c (make_client_connect): Invoke commands to perform user
authentication.
* src/connection.c (handle_connection): Display packet type in
debug messages. Uses packet_types.h.
* src/command.h (COMMAND_RETURN, COMMAND_CALL, COMMAND_SIMPLE):
Cast arguments to struct lsh_object *.
* src/Makefile.am.in: Added packet_types.h and channel_commands.c.
* src/client_userauth.c: Bent the user authentication mechanism
into a command.
......
......@@ -22,6 +22,7 @@ lsh
lsh_keygen
lsh_writekey
lshd
packet_types.h
prime_table
prime_table.h
sexp_table.h
......
......@@ -22,6 +22,7 @@
/lsh_keygen
/lsh_writekey
/lshd
/packet_types.h
/prime_table
/prime_table.h
/sexp_table.h
......
#! /bin/sh
# Reads ssh.h on stdin, and outputs an array which maps packet numbers
# to names.
echo "/* Automatically generated by invert-defs `date`."
echo " * Do not edit. */"
echo
echo "{"
sed -e 's/^#define \(SSH_MSG_[A-Z_0-9][A-Z_0-9]*\)[ \t][ \t]*\([1-9][0-9]*\)[ \t]*$/\2 \1/' -e t -e d \
| sort -n \
| awk 'BEGIN{i=0;}
{ for(j=$1;i<j;i++) print "\"Unknown\"," ;
print "\"" $2 "\""; i++;}
END{for(;i<256;i++) print "\"Unknown\",";}'
echo "}\n"
......@@ -56,7 +56,7 @@ static int do_listen_continue(struct fd_listen_callback *s, int fd,
res->fd = make_io_fd(self->backend, fd);
res->peer = peer;
return COMMAND_RETURN(self->c, &res->super);
return COMMAND_RETURN(self->c, res);
}
static struct fd_listen_callback *
......
......@@ -476,7 +476,7 @@ int main(int argc, char **argv)
CAST_SUBTYPE(command, server_listen, o);
int res = COMMAND_CALL(server_listen, &local->super, NULL);
int res = COMMAND_CALL(server_listen, local, NULL);
if (res)
{
if (res & LSH_COMMAND_FAILED)
......
......@@ -44,8 +44,12 @@
#define SERVICE_INIT(s, c) ((s)->init((s), (c)))
#if 0
/* services is an alist mapping names to service objects */
struct packet_handler *make_service_handler(struct alist *services);
struct packet_handler *
make_service_request_handler(struct alist *services,
struct command_continuation *c);
#endif
#if 0
int request_service(int name, struct ssh_service * service);
......
Markdown is supported
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