Commit 8509b298 authored by Niels Möller's avatar Niels Möller
Browse files

*** empty log message ***

Rev: ChangeLog:1.204
Rev: src/unix_user.c:1.19
parent d23bbaef
2000-05-31 Niels Mller <nisse@cuckoo.localdomain>
* src/lsh.c (main_argp_parser): Use make_srp1().
Changed behaviour of srp-keyexchange and dh-exchange. If only
--srp-keyexchange is given, dh keyexchange is disabled.
* src/lshd.c (main_argp_parser): Use make_srp1().
* src/srp_exchange.c (make_srp1): New function.
(srp_make_reply_msg): Use GROUP_ADD.
(srp_make_client_proof): Use GROUP_SUBTRACT.
* src/srp.h (make_srp1): Added prototype.
* src/server_keyexchange.c: Adapted to changes in keyexchange.c.
Don't use make_install_new_keys().
* src/client_keyexchange.c: Likewise.
* src/publickey_crypto.h (abstract_group): Added methods GROUP_ADD
and GROUP_SUBTRACT, that are defined only for groups that happens
to have some extra structure.
* src/publickey_crypto.c (make_group_zn): Renamed from make_zn.
(make_ring_zn): New function.
(make_ssh_ring_srp_1): New function.
* src/connection_commands.c: Adapted to the changes to
ssh_connection and keyexchange.c.
* src/connection_commands.h (handshake_info): Replaced mode
attribute with flags.
* src/keyexchange.c (kexinit_handler): Deleted type attribute.
(initiate_keyexchange): Deleted mode argument, use
connection->flags instead.
(do_handle_kexinit): Use connection->flags.
(make_kexinit_handler): Deleted type argument.
(install_keys, install_new_keys): Deleted classes.
(install_keys): Made the INSTALL_KEYS method an ordinary function.
(keyexchange_finish): Use install_keys().
* src/connection.c (make_ssh_connection): Added flags argument.
Initialize flags and user.
* src/connection.h (ssh_connection): Added flags attribute, and
switched the values of CONNECTION_CLIENT and CONNECTION_SERVER.
Added user attribute.
* configure.in: Bumped version to 0.9.11.
2000-05-30 Niels Mller <nisse@lysator.liu.se>
* src/invert-defs: Improved awk-code to deal with repeated message
......
......@@ -334,8 +334,7 @@ do_read_file(struct lsh_user *u,
EXCEPTION_RAISE(e, x);
}
/* Change to user's home directory. FIXME: If the server is running
* as the same user, perhaps it's better to use $HOME? */
/* Change to user's home directory. */
static int
do_chdir_home(struct lsh_user *u)
......@@ -608,6 +607,7 @@ do_lookup_user(struct user_db *s,
CAST(unix_user_db, self, s);
struct passwd *passwd;
const char *home;
name = make_cstring(name, free);
......@@ -677,12 +677,23 @@ do_lookup_user(struct user_db *s,
else
#endif /* HAVE_GETSPNAM */
crypted = passwd->pw_passwd;
/* FIXME: If we are running as the uid of the user, it seems
* like a good idea to let the HOME environment variable
* override the passwd-database. */
#if 0
if (! (passwd->pw_uid
&& (passwd->pw_uid == getuid())
&& (home = getenv("HOME"))))
#endif
home = passwd->pw_dir;
return make_unix_user(name,
passwd->pw_uid, passwd->pw_gid,
self->backend,
crypted,
passwd->pw_dir, passwd->pw_shell);
home, passwd->pw_shell);
}
else
{
......
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