diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2000-12-22 01:43:59 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2000-12-22 01:43:59 +0000 |
commit | 46c162204b5a6f7471525c2f75cb2c607c88b83f (patch) | |
tree | 9041b006ab612c18bdb16b606601839a00ca5b2c /session.c | |
parent | a074feb65d6f1fcad02e80b751e2287fd6230b09 (diff) |
One way to massive patch. <sigh> It compiles and works under Linux..
And I think I have all the bits right from the OpenBSD tree.
20001222
- Updated RCSID for pty.c
- (bal) OpenBSD CVS Updates:
- markus@cvs.openbsd.org 2000/12/21 15:10:16
[auth-rh-rsa.c hostfile.c hostfile.h sshconnect.c]
print keyfile:line for changed hostkeys, for deraadt@, ok deraadt@
- markus@cvs.openbsd.org 2000/12/20 19:26:56
[authfile.c]
allow ssh -i userkey for root
- markus@cvs.openbsd.org 2000/12/20 19:37:21
[authfd.c authfd.h kex.c sshconnect2.c sshd.c uidswap.c uidswap.h]
fix prototypes; from stevesk@pobox.com
- markus@cvs.openbsd.org 2000/12/20 19:32:08
[sshd.c]
init pointer to NULL; report from Jan.Ivan@cern.ch
- markus@cvs.openbsd.org 2000/12/19 23:17:54
[auth-krb4.c auth-options.c auth-options.h auth-rhosts.c auth-rsa.c
auth1.c auth2-skey.c auth2.c authfd.c authfd.h authfile.c bufaux.c
bufaux.h buffer.c canohost.c channels.c clientloop.c compress.c
crc32.c deattack.c getput.h hmac.c hmac.h hostfile.c kex.c kex.h
key.c key.h log.c login.c match.c match.h mpaux.c mpaux.h packet.c
packet.h radix.c readconf.c rsa.c scp.c servconf.c servconf.h
serverloop.c session.c sftp-server.c ssh-agent.c ssh-dss.c ssh-dss.h
ssh-keygen.c ssh-keyscan.c ssh-rsa.c ssh-rsa.h ssh.c ssh.h uuencode.c
uuencode.h sshconnect1.c sshconnect2.c sshd.c tildexpand.c]
replace 'unsigned bla' with 'u_bla' everywhere. also replace 'char
unsigned' with u_char.
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -33,7 +33,7 @@ | |||
33 | */ | 33 | */ |
34 | 34 | ||
35 | #include "includes.h" | 35 | #include "includes.h" |
36 | RCSID("$OpenBSD: session.c,v 1.44 2000/11/14 23:44:19 markus Exp $"); | 36 | RCSID("$OpenBSD: session.c,v 1.45 2000/12/19 23:17:58 markus Exp $"); |
37 | 37 | ||
38 | #include "xmalloc.h" | 38 | #include "xmalloc.h" |
39 | #include "ssh.h" | 39 | #include "ssh.h" |
@@ -137,7 +137,7 @@ extern ServerOptions options; | |||
137 | extern char *__progname; | 137 | extern char *__progname; |
138 | extern int log_stderr; | 138 | extern int log_stderr; |
139 | extern int debug_flag; | 139 | extern int debug_flag; |
140 | extern unsigned int utmp_len; | 140 | extern u_int utmp_len; |
141 | 141 | ||
142 | extern int startup_pipe; | 142 | extern int startup_pipe; |
143 | 143 | ||
@@ -218,7 +218,7 @@ do_authenticated(struct passwd * pw) | |||
218 | char *command; | 218 | char *command; |
219 | int n_bytes; | 219 | int n_bytes; |
220 | int plen; | 220 | int plen; |
221 | unsigned int proto_len, data_len, dlen; | 221 | u_int proto_len, data_len, dlen; |
222 | 222 | ||
223 | /* | 223 | /* |
224 | * Cancel the alarm we set to limit the time taken for | 224 | * Cancel the alarm we set to limit the time taken for |
@@ -783,10 +783,10 @@ do_login(Session *s, const char *command) | |||
783 | * already exists, its value is overriden. | 783 | * already exists, its value is overriden. |
784 | */ | 784 | */ |
785 | void | 785 | void |
786 | child_set_env(char ***envp, unsigned int *envsizep, const char *name, | 786 | child_set_env(char ***envp, u_int *envsizep, const char *name, |
787 | const char *value) | 787 | const char *value) |
788 | { | 788 | { |
789 | unsigned int i, namelen; | 789 | u_int i, namelen; |
790 | char **env; | 790 | char **env; |
791 | 791 | ||
792 | /* | 792 | /* |
@@ -824,7 +824,7 @@ child_set_env(char ***envp, unsigned int *envsizep, const char *name, | |||
824 | * and assignments of the form name=value. No other forms are allowed. | 824 | * and assignments of the form name=value. No other forms are allowed. |
825 | */ | 825 | */ |
826 | void | 826 | void |
827 | read_environment_file(char ***env, unsigned int *envsize, | 827 | read_environment_file(char ***env, u_int *envsize, |
828 | const char *filename) | 828 | const char *filename) |
829 | { | 829 | { |
830 | FILE *f; | 830 | FILE *f; |
@@ -1009,7 +1009,7 @@ do_child(const char *command, struct passwd * pw, const char *term, | |||
1009 | char buf[256]; | 1009 | char buf[256]; |
1010 | char cmd[1024]; | 1010 | char cmd[1024]; |
1011 | FILE *f = NULL; | 1011 | FILE *f = NULL; |
1012 | unsigned int envsize, i; | 1012 | u_int envsize, i; |
1013 | char **env; | 1013 | char **env; |
1014 | extern char **environ; | 1014 | extern char **environ; |
1015 | struct stat st; | 1015 | struct stat st; |
@@ -1579,7 +1579,7 @@ session_window_change_req(Session *s) | |||
1579 | int | 1579 | int |
1580 | session_pty_req(Session *s) | 1580 | session_pty_req(Session *s) |
1581 | { | 1581 | { |
1582 | unsigned int len; | 1582 | u_int len; |
1583 | char *term_modes; /* encoded terminal modes */ | 1583 | char *term_modes; /* encoded terminal modes */ |
1584 | 1584 | ||
1585 | if (no_pty_flag) | 1585 | if (no_pty_flag) |
@@ -1628,7 +1628,7 @@ session_pty_req(Session *s) | |||
1628 | int | 1628 | int |
1629 | session_subsystem_req(Session *s) | 1629 | session_subsystem_req(Session *s) |
1630 | { | 1630 | { |
1631 | unsigned int len; | 1631 | u_int len; |
1632 | int success = 0; | 1632 | int success = 0; |
1633 | char *subsys = packet_get_string(&len); | 1633 | char *subsys = packet_get_string(&len); |
1634 | int i; | 1634 | int i; |
@@ -1724,7 +1724,7 @@ session_shell_req(Session *s) | |||
1724 | int | 1724 | int |
1725 | session_exec_req(Session *s) | 1725 | session_exec_req(Session *s) |
1726 | { | 1726 | { |
1727 | unsigned int len; | 1727 | u_int len; |
1728 | char *command = packet_get_string(&len); | 1728 | char *command = packet_get_string(&len); |
1729 | packet_done(); | 1729 | packet_done(); |
1730 | if (forced_command) { | 1730 | if (forced_command) { |
@@ -1762,7 +1762,7 @@ session_auth_agent_req(Session *s) | |||
1762 | void | 1762 | void |
1763 | session_input_channel_req(int id, void *arg) | 1763 | session_input_channel_req(int id, void *arg) |
1764 | { | 1764 | { |
1765 | unsigned int len; | 1765 | u_int len; |
1766 | int reply; | 1766 | int reply; |
1767 | int success = 0; | 1767 | int success = 0; |
1768 | char *rtype; | 1768 | char *rtype; |