Commit 1b855e21 authored by Niels Möller's avatar Niels Möller
Browse files

*** empty log message ***

Rev: ChangeLog:1.35
Rev: src/abstract_crypto.c:1.6
Rev: src/client_userauth.c:1.12
Rev: src/debug.c:1.23
Rev: src/disconnect.c:1.12
Rev: src/dsa_keygen.c:1.6
Rev: src/io.c:1.46
Rev: src/keyexchange.c:1.42
Rev: src/publickey_crypto.c:1.24
Rev: src/server_pty.h:1.2
Rev: src/server_userauth.c:1.8
Rev: src/service.c:1.12
Rev: src/tty.h:1.2
Rev: src/werror.c:1.21
parent 89e1c442
Thu Jan 28 08:51:18 1999 <nisse@puck>
* src/tty.c (tty_encode_term_mode): New function (dummy).
(tty_decode_term_mode): New function (moved from server_pty.c).
* src/server.c (do_spawn_shell): pty support. Support for the
argv0 = "-*sh" convention.
(make_pty_handler): New function.
* src/parse.c (parse_uint8): Use unsigned for the result.
* src/lshd.c (main): Integrated sshd1 and pty support.
* src/lsh.h (LSH_CHANNEL_CLOSE): New status value.
* src/lsh.c (main): pty support.
* src/hmac.c (make_hmac_instance): Bug fix (Joseph Galbraith
<galb@rt66.com>)
* src/encrypt.c (do_encrypt): Update sequence number even if no
mac is in use. (Reported by Joseph Galbraith <galb@rt66.com>).
* src/client.c (make_shell_request): New function.
(make_pty_request): New function.
(do_open_confirm): Handle the new linked list of channel requests.
(request_info): New class.
* src/channel.c (channel_process_status): Handle
LSH_CHANNEL_CLOSE.
(do_channel_success, do_channel_failure): Ignore messages that
there is no handler for
(most likely, becase we have decided to give up and close the
channel).
* src/Makefile.am.in: Removed most program_SOURCES definitions.
* configure.in: Commented out the sshd1 related tests.
* configure.in: Check for openpty(). Test for BSD style pty names.
1999-01-19 Gordon Matzigkeit <gord@trick.fig.org>
* server.c (do_spawn_shell): Make sure session->user->shell is not
null before we dereference it.
Set argv[0] to be the shell name wth a prepended hyphen.
1999-01-19 Gordon Matzigkeit <gord@trick.fig.org>
* src/Makefile.am: Don't clobber files unless the new one was
correctly regenerated.
Tue Jan 26 06:11:47 1999 <nisse@puck>
* client_pty.c client_pty.h server_pty.c server_pty.h tty.c tty.h:
Added new files.
1999-01-21 Gordon Matzigkeit <gord@trick.fig.org>
* src/server.h: Always include ssh1_fallback.h, and fix typo.
* src/server.c (server_initiate): If we need to delay the key
exchange, initialize a kexinit here and save it in
CONNECTION->KEXINITS[CONNECTION_SERVER] until DO_LINE has a chance
to use it.
* src/connection.c (make_ssh_connection): Use macros rather than
magic numbers to index KEXINITS and LITERAL_KEXINITS.
* src/server.c (do_line): Fix transposed arguments and missing
comma in SSH1_FALLBACK call.
* acconfig.h: Remove references to SSHD1.
* configure.in: Get rid of all the checks for SSHD1. The user
should supply it at runtime.
* src/lshd.c (main): Implement the `--ssh1-fallback' flag to allow
people to specify an sshd1 at runtime.
* src/version.h (SSH1_SERVER_PROTOCOL_VERSION): Only use version
1.99 if we were told to fallback to ssh1.
* src/ssh1_fallback.h: SSHD1 does not need the port number because
we invoke it as if we were inetd.
src/ssh1_fallback.c: Likewise.
Tue Jan 19 16:12:16 1999 <nisse@puck>
* src/read_line.h: Changed prototype for line handlers.
......
......@@ -108,7 +108,7 @@ UINT32 gcd(UINT32 x, UINT32 y)
y = tmp;
}
while (1)
for (;;)
{
/* During this loop, x is always odd */
assert(x % 2);
......
......@@ -124,7 +124,7 @@ static int do_userauth_success(struct packet_handler *c,
CAST(success_handler, closure, c);
struct simple_buffer buffer;
int msg_number;
unsigned msg_number;
simple_buffer_init(&buffer, packet->length, packet->data);
......@@ -157,7 +157,7 @@ static int do_userauth_failure(struct packet_handler *c,
CAST(failure_handler, closure, c);
struct simple_buffer buffer;
int msg_number;
unsigned msg_number;
struct int_list *methods = NULL;
int partial_success;
......@@ -206,7 +206,7 @@ static int do_userauth_banner(struct packet_handler *closure,
{
struct simple_buffer buffer;
int msg_number;
unsigned msg_number;
UINT32 length;
UINT8 *msg;
......
......@@ -97,8 +97,8 @@ static int do_rec_debug(struct packet_handler *self UNUSED,
struct lsh_string *packet)
{
struct simple_buffer buffer;
int msg_number;
int always_display;
unsigned msg_number;
unsigned always_display;
UINT32 length;
UINT8 *msg;
int language;
......
......@@ -44,7 +44,7 @@ static int do_disconnect(struct packet_handler *closure UNUSED,
struct lsh_string *packet)
{
struct simple_buffer buffer;
int msg_number;
unsigned msg_number;
UINT32 length;
UINT32 reason;
UINT8 *msg;
......
......@@ -71,7 +71,7 @@ void dsa_nist_gen(mpz_t p, mpz_t q, struct randomness *r, unsigned l)
mpz_init(t);
mpz_init(c);
while (1)
for (;;)
{
{ /* Generate q */
UINT8 h1[SHA_DIGESTSIZE];
......@@ -159,7 +159,7 @@ void dsa_find_generator(mpz_t g, struct randomness *r, mpz_t p, mpz_t q)
mpz_init_set(n, p);
mpz_sub_ui(n, n, 2);
while(1)
for (;;)
{
bignum_random(g, r, n);
mpz_add_ui(g, g, 2);
......
......@@ -221,7 +221,7 @@ static int do_read(struct abstract_read **r, UINT32 length, UINT8 *buffer)
{
CAST(fd_read, closure, *r);
while(1)
for (;;)
{
int res = read(closure->fd, buffer, length);
if (!res)
......@@ -465,7 +465,7 @@ int blocking_read(int fd, struct read_handler *handler)
struct fd_read r =
{ { STACK_HEADER, do_read }, fd };
while (1)
for (;;)
{
int res = READ_HANDLER(handler,
&r.super);
......
......@@ -71,7 +71,7 @@ static struct kexinit *parse_kexinit(struct lsh_string *packet)
NEW(kexinit, res);
struct simple_buffer buffer;
struct simple_buffer sub_buffer;
int msg_number;
unsigned msg_number;
UINT32 reserved;
struct int_list *lists[NLISTS];
......@@ -354,7 +354,7 @@ static struct lsh_string *kex_make_key(struct hash_instance *secret,
KILL(hash);
hash = HASH_COPY(secret);
while (1)
for (;;)
{
/* The n:th time we enter this loop, digest holds K_n (using
* the notation of section 5.2 of the ssh "transport"
......@@ -515,7 +515,7 @@ static int do_handle_newkeys(struct packet_handler *c,
{
CAST(newkeys_handler, closure, c);
struct simple_buffer buffer;
int msg_number;
unsigned msg_number;
simple_buffer_init(&buffer, packet->length, packet->data);
......
......@@ -545,7 +545,7 @@ int dh_process_client_msg(struct diffie_hellman_instance *self,
struct lsh_string *packet)
{
struct simple_buffer buffer;
int msg_number;
unsigned msg_number;
simple_buffer_init(&buffer, packet->length, packet->data);
......@@ -615,7 +615,7 @@ int dh_process_server_msg(struct diffie_hellman_instance *self,
struct lsh_string *packet)
{
struct simple_buffer buffer;
int msg_number;
unsigned msg_number;
simple_buffer_init(&buffer, packet->length, packet->data);
......
......@@ -37,16 +37,16 @@
/* CLASS:
(class
(name pty_info)
(super resource)
(vars
(master simple int)
(slave simple int)
; FIXME: Is this used for anything?
;; (tty_name array (simple char) MAX_TTY_NAME)
;; (saved_ios simple "struct termios")
));
(class
(name pty_info)
(super resource)
(vars
(master simple int)
(slave simple int)
; FIXME: Is this used for anything?
;; (tty_name array (simple char) MAX_TTY_NAME)
;; (saved_ios simple "struct termios")
));
*/
struct pty_info *make_pty_info(void);
......
......@@ -70,7 +70,7 @@ static int do_handle_userauth(struct packet_handler *c,
CAST(userauth_handler, closure, c);
struct simple_buffer buffer;
int msg_number;
unsigned msg_number;
struct lsh_string *user;
int requested_service;
int method;
......
......@@ -61,7 +61,7 @@ static int do_service(struct packet_handler *c,
CAST(service_handler, closure, c);
struct simple_buffer buffer;
int msg_number;
unsigned msg_number;
int name;
simple_buffer_init(&buffer, packet->length, packet->data);
......
......@@ -24,6 +24,8 @@
#ifndef LSH_TTY_H_INCLUDED
#define LSH_TTY_H_INCLUDED
#include "lsh_types.h"
#include <termios.h>
int tty_getattr(int fd, struct termios *ios);
......@@ -37,4 +39,7 @@ int tty_makeraw(int fd);
int tty_getwinsize(int fd, int *w, int *h, int *wp, int *hp);
int tty_setwinsize(int fd, int w, int h, int wp, int hp);
struct lsh_string *tty_encode_term_mode(struct termios *ios);
int tty_decode_term_mode(struct termios *ios, UINT32 t_len, UINT8 *t_modes);
#endif
......@@ -246,7 +246,7 @@ static void write_utf8(UINT32 length, UINT8 *msg)
simple_buffer_init(&buffer, length, msg);
while(1)
for (;;)
{
UINT32 ucs4;
......
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