summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--servconf.h8
-rw-r--r--serverloop.h4
-rw-r--r--session.h12
-rw-r--r--sftp-client.h44
-rw-r--r--sftp-common.h12
-rw-r--r--sftp-glob.h5
-rw-r--r--sftp-int.h4
-rw-r--r--ssh-dss.h14
-rw-r--r--ssh-rsa.h14
-rw-r--r--sshconnect.h27
-rw-r--r--sshlogin.h15
-rw-r--r--sshpty.h14
-rw-r--r--tildexpand.h4
-rw-r--r--uidswap.h6
-rw-r--r--uuencode.h8
-rw-r--r--xmalloc.h10
17 files changed, 93 insertions, 117 deletions
diff --git a/ChangeLog b/ChangeLog
index 19552da12..def04ff41 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -47,6 +47,13 @@
47 prototype pedant. not very creative... 47 prototype pedant. not very creative...
48 - () -> (void) 48 - () -> (void)
49 - no variable names 49 - no variable names
50 - itojun@cvs.openbsd.org 2001/06/26 06:33:07
51 [servconf.h serverloop.h session.h sftp-client.h sftp-common.h
52 sftp-glob.h sftp-int.h sshconnect.h ssh-dss.h sshlogin.h sshpty.h
53 ssh-rsa.h tildexpand.h uidswap.h uuencode.h xmalloc.h]
54 prototype pedant. not very creative...
55 - () -> (void)
56 - no variable names
50 57
5120010629 5820010629
52 - (bal) Removed net_aton() since we don't use it any more 59 - (bal) Removed net_aton() since we don't use it any more
@@ -5874,4 +5881,4 @@
5874 - Wrote replacements for strlcpy and mkdtemp 5881 - Wrote replacements for strlcpy and mkdtemp
5875 - Released 1.0pre1 5882 - Released 1.0pre1
5876 5883
5877$Id: ChangeLog,v 1.1356 2001/07/04 04:02:36 mouring Exp $ 5884$Id: ChangeLog,v 1.1357 2001/07/04 04:07:12 mouring Exp $
diff --git a/servconf.h b/servconf.h
index 6256c3a37..a71b7c135 100644
--- a/servconf.h
+++ b/servconf.h
@@ -11,7 +11,7 @@
11 * called by a name other than "ssh" or "Secure Shell". 11 * called by a name other than "ssh" or "Secure Shell".
12 */ 12 */
13 13
14/* RCSID("$OpenBSD: servconf.h,v 1.44 2001/06/23 02:34:31 markus Exp $"); */ 14/* RCSID("$OpenBSD: servconf.h,v 1.45 2001/06/26 06:33:00 itojun Exp $"); */
15 15
16#ifndef SERVCONF_H 16#ifndef SERVCONF_H
17#define SERVCONF_H 17#define SERVCONF_H
@@ -132,15 +132,15 @@ typedef struct {
132 * Initializes the server options to special values that indicate that they 132 * Initializes the server options to special values that indicate that they
133 * have not yet been set. 133 * have not yet been set.
134 */ 134 */
135void initialize_server_options(ServerOptions * options); 135void initialize_server_options(ServerOptions *);
136 136
137/* 137/*
138 * Reads the server configuration file. This only sets the values for those 138 * Reads the server configuration file. This only sets the values for those
139 * options that have the special value indicating they have not been set. 139 * options that have the special value indicating they have not been set.
140 */ 140 */
141void read_server_config(ServerOptions * options, const char *filename); 141void read_server_config(ServerOptions *, const char *);
142 142
143/* Sets values for those values that have not yet been set. */ 143/* Sets values for those values that have not yet been set. */
144void fill_default_server_options(ServerOptions * options); 144void fill_default_server_options(ServerOptions *);
145 145
146#endif /* SERVCONF_H */ 146#endif /* SERVCONF_H */
diff --git a/serverloop.h b/serverloop.h
index 652c1d9f8..9c2c2ccb9 100644
--- a/serverloop.h
+++ b/serverloop.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: serverloop.h,v 1.2 2001/01/29 01:58:17 niklas Exp $ */ 1/* $OpenBSD: serverloop.h,v 1.3 2001/06/26 06:33:00 itojun Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -18,5 +18,5 @@
18 * (of the child program), and reads from stdout and stderr (of the child 18 * (of the child program), and reads from stdout and stderr (of the child
19 * program). 19 * program).
20 */ 20 */
21void server_loop(pid_t pid, int fdin, int fdout, int fderr); 21void server_loop(pid_t, int, int, int);
22void server_loop2(void); 22void server_loop2(void);
diff --git a/session.h b/session.h
index bda1e50b5..9ed83585c 100644
--- a/session.h
+++ b/session.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: session.h,v 1.7 2001/06/25 08:25:39 markus Exp $ */ 1/* $OpenBSD: session.h,v 1.8 2001/06/26 06:33:01 itojun Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. 4 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
@@ -26,11 +26,11 @@
26#ifndef SESSION_H 26#ifndef SESSION_H
27#define SESSION_H 27#define SESSION_H
28 28
29void do_authenticated(Authctxt *ac); 29void do_authenticated(Authctxt *);
30 30
31int session_open(int id); 31int session_open(int);
32void session_input_channel_req(int id, void *arg); 32void session_input_channel_req(int, void *);
33void session_close_by_pid(pid_t pid, int status); 33void session_close_by_pid(pid_t, int);
34void session_close_by_channel(int id, void *arg); 34void session_close_by_channel(int, void *);
35 35
36#endif 36#endif
diff --git a/sftp-client.h b/sftp-client.h
index 09ffcc05c..a322b2571 100644
--- a/sftp-client.h
+++ b/sftp-client.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp-client.h,v 1.5 2001/04/05 10:42:52 markus Exp $ */ 1/* $OpenBSD: sftp-client.h,v 1.6 2001/06/26 06:33:01 itojun Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2001 Damien Miller. All rights reserved. 4 * Copyright (c) 2001 Damien Miller. All rights reserved.
@@ -38,57 +38,55 @@ struct SFTP_DIRENT {
38 * Initialiase a SSH filexfer connection. Returns -1 on error or 38 * Initialiase a SSH filexfer connection. Returns -1 on error or
39 * protocol version on success. 39 * protocol version on success.
40 */ 40 */
41int do_init(int fd_in, int fd_out); 41int do_init(int, int);
42 42
43/* Close file referred to by 'handle' */ 43/* Close file referred to by 'handle' */
44int do_close(int fd_in, int fd_out, char *handle, u_int handle_len); 44int do_close(int, int, char *, u_int);
45 45
46/* List contents of directory 'path' to stdout */ 46/* List contents of directory 'path' to stdout */
47int do_ls(int fd_in, int fd_out, char *path); 47int do_ls(int, int, char *);
48 48
49/* Read contents of 'path' to NULL-terminated array 'dir' */ 49/* Read contents of 'path' to NULL-terminated array 'dir' */
50int do_readdir(int fd_in, int fd_out, char *path, SFTP_DIRENT ***dir); 50int do_readdir(int, int, char *, SFTP_DIRENT ***);
51 51
52/* Frees a NULL-terminated array of SFTP_DIRENTs (eg. from do_readdir) */ 52/* Frees a NULL-terminated array of SFTP_DIRENTs (eg. from do_readdir) */
53void free_sftp_dirents(SFTP_DIRENT **s); 53void free_sftp_dirents(SFTP_DIRENT **);
54 54
55/* Delete file 'path' */ 55/* Delete file 'path' */
56int do_rm(int fd_in, int fd_out, char *path); 56int do_rm(int, int, char *);
57 57
58/* Create directory 'path' */ 58/* Create directory 'path' */
59int do_mkdir(int fd_in, int fd_out, char *path, Attrib *a); 59int do_mkdir(int, int, char *, Attrib *);
60 60
61/* Remove directory 'path' */ 61/* Remove directory 'path' */
62int do_rmdir(int fd_in, int fd_out, char *path); 62int do_rmdir(int, int, char *);
63 63
64/* Get file attributes of 'path' (follows symlinks) */ 64/* Get file attributes of 'path' (follows symlinks) */
65Attrib *do_stat(int fd_in, int fd_out, char *path, int quiet); 65Attrib *do_stat(int, int, char *, int);
66 66
67/* Get file attributes of 'path' (does not follow symlinks) */ 67/* Get file attributes of 'path' (does not follow symlinks) */
68Attrib *do_lstat(int fd_in, int fd_out, char *path, int quiet); 68Attrib *do_lstat(int, int, char *, int);
69 69
70/* Get file attributes of open file 'handle' */ 70/* Get file attributes of open file 'handle' */
71Attrib *do_fstat(int fd_in, int fd_out, char *handle, u_int handle_len, 71Attrib *do_fstat(int, int, char *, u_int, int);
72 int quiet);
73 72
74/* Set file attributes of 'path' */ 73/* Set file attributes of 'path' */
75int do_setstat(int fd_in, int fd_out, char *path, Attrib *a); 74int do_setstat(int, int, char *, Attrib *);
76 75
77/* Set file attributes of open file 'handle' */ 76/* Set file attributes of open file 'handle' */
78int do_fsetstat(int fd_in, int fd_out, char *handle, 77int do_fsetstat(int, int, char *, u_int, Attrib *);
79 u_int handle_len, Attrib *a);
80 78
81/* Canonicalise 'path' - caller must free result */ 79/* Canonicalise 'path' - caller must free result */
82char *do_realpath(int fd_in, int fd_out, char *path); 80char *do_realpath(int, int, char *);
83 81
84/* Rename 'oldpath' to 'newpath' */ 82/* Rename 'oldpath' to 'newpath' */
85int do_rename(int fd_in, int fd_out, char *oldpath, char *newpath); 83int do_rename(int, int, char *, char *);
86 84
87/* Rename 'oldpath' to 'newpath' */ 85/* Rename 'oldpath' to 'newpath' */
88int do_symlink(int fd_in, int fd_out, char *oldpath, char *newpath); 86int do_symlink(int, int, char *, char *);
89 87
90/* Return target of symlink 'path' - caller must free result */ 88/* Return target of symlink 'path' - caller must free result */
91char *do_readlink(int fd_in, int fd_out, char *path); 89char *do_readlink(int, int, char *);
92 90
93/* XXX: add callbacks to do_download/do_upload so we can do progress meter */ 91/* XXX: add callbacks to do_download/do_upload so we can do progress meter */
94 92
@@ -96,12 +94,10 @@ char *do_readlink(int fd_in, int fd_out, char *path);
96 * Download 'remote_path' to 'local_path'. Preserve permissions and times 94 * Download 'remote_path' to 'local_path'. Preserve permissions and times
97 * if 'pflag' is set 95 * if 'pflag' is set
98 */ 96 */
99int do_download(int fd_in, int fd_out, char *remote_path, char *local_path, 97int do_download(int, int, char *, char *, int);
100 int pflag);
101 98
102/* 99/*
103 * Upload 'local_path' to 'remote_path'. Preserve permissions and times 100 * Upload 'local_path' to 'remote_path'. Preserve permissions and times
104 * if 'pflag' is set 101 * if 'pflag' is set
105 */ 102 */
106int do_upload(int fd_in, int fd_out, char *local_path, char *remote_path, 103int do_upload(int, int, char *, char *, int);
107 int pflag);
diff --git a/sftp-common.h b/sftp-common.h
index 6dc1a32f8..3e4f502b0 100644
--- a/sftp-common.h
+++ b/sftp-common.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp-common.h,v 1.1 2001/02/04 11:11:54 djm Exp $ */ 1/* $OpenBSD: sftp-common.h,v 1.2 2001/06/26 06:33:01 itojun Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2001 Markus Friedl. All rights reserved. 4 * Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -39,17 +39,17 @@ struct Attrib {
39}; 39};
40 40
41/* Clear contents of attributes structure */ 41/* Clear contents of attributes structure */
42void attrib_clear(Attrib *a); 42void attrib_clear(Attrib *);
43 43
44/* Convert from struct stat to filexfer attribs */ 44/* Convert from struct stat to filexfer attribs */
45void stat_to_attrib(struct stat *st, Attrib *a); 45void stat_to_attrib(struct stat *, Attrib *);
46 46
47/* Decode attributes in buffer */ 47/* Decode attributes in buffer */
48Attrib *decode_attrib(Buffer *b); 48Attrib *decode_attrib(Buffer *);
49 49
50/* Encode attributes to buffer */ 50/* Encode attributes to buffer */
51void encode_attrib(Buffer *b, Attrib *a); 51void encode_attrib(Buffer *, Attrib *);
52 52
53/* Convert from SSH2_FX_ status to text error message */ 53/* Convert from SSH2_FX_ status to text error message */
54const char *fx2txt(int status); 54const char *fx2txt(int);
55 55
diff --git a/sftp-glob.h b/sftp-glob.h
index 4206af439..37bd5d2da 100644
--- a/sftp-glob.h
+++ b/sftp-glob.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp-glob.h,v 1.3 2001/04/15 08:43:46 markus Exp $ */ 1/* $OpenBSD: sftp-glob.h,v 1.4 2001/06/26 06:33:01 itojun Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2001 Damien Miller. All rights reserved. 4 * Copyright (c) 2001 Damien Miller. All rights reserved.
@@ -27,6 +27,5 @@
27/* Remote sftp filename globbing */ 27/* Remote sftp filename globbing */
28 28
29int 29int
30remote_glob(int fd_in, int fd_out, const char *pattern, int flags, 30remote_glob(int, int, const char *, int, int (*)(const char *, int), glob_t *);
31 int (*errfunc)(const char *, int), glob_t *pglob);
32 31
diff --git a/sftp-int.h b/sftp-int.h
index b47f862f8..bbb138a6b 100644
--- a/sftp-int.h
+++ b/sftp-int.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp-int.h,v 1.2 2001/04/12 23:17:54 mouring Exp $ */ 1/* $OpenBSD: sftp-int.h,v 1.3 2001/06/26 06:33:02 itojun Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2001 Damien Miller. All rights reserved. 4 * Copyright (c) 2001 Damien Miller. All rights reserved.
@@ -24,4 +24,4 @@
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27void interactive_loop(int fd_in, int fd_out, char *file1, char *file2); 27void interactive_loop(int, int, char *, char *);
diff --git a/ssh-dss.h b/ssh-dss.h
index 0e6a20a59..fe7e3207c 100644
--- a/ssh-dss.h
+++ b/ssh-dss.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-dss.h,v 1.3 2001/01/29 01:58:18 niklas Exp $ */ 1/* $OpenBSD: ssh-dss.h,v 1.4 2001/06/26 06:33:02 itojun Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000 Markus Friedl. All rights reserved. 4 * Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -26,16 +26,8 @@
26#ifndef DSA_H 26#ifndef DSA_H
27#define DSA_H 27#define DSA_H
28 28
29int 29int ssh_dss_sign(Key *, u_char **, int *, u_char *, int);
30ssh_dss_sign(
31 Key *key,
32 u_char **sigp, int *lenp,
33 u_char *data, int datalen);
34 30
35int 31int ssh_dss_verify(Key *, u_char *, int, u_char *, int);
36ssh_dss_verify(
37 Key *key,
38 u_char *signature, int signaturelen,
39 u_char *data, int datalen);
40 32
41#endif 33#endif
diff --git a/ssh-rsa.h b/ssh-rsa.h
index af2b2fe28..1e94c8b3c 100644
--- a/ssh-rsa.h
+++ b/ssh-rsa.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-rsa.h,v 1.3 2001/01/29 01:58:18 niklas Exp $ */ 1/* $OpenBSD: ssh-rsa.h,v 1.4 2001/06/26 06:33:03 itojun Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000 Markus Friedl. All rights reserved. 4 * Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -26,16 +26,8 @@
26#ifndef SSH_RSA_H 26#ifndef SSH_RSA_H
27#define SSH_RSA_H 27#define SSH_RSA_H
28 28
29int 29int ssh_rsa_sign(Key *, u_char **, int *, u_char *, int);
30ssh_rsa_sign(
31 Key *key,
32 u_char **sigp, int *lenp,
33 u_char *data, int datalen);
34 30
35int 31int ssh_rsa_verify(Key *, u_char *, int, u_char *, int);
36ssh_rsa_verify(
37 Key *key,
38 u_char *signature, int signaturelen,
39 u_char *data, int datalen);
40 32
41#endif 33#endif
diff --git a/sshconnect.h b/sshconnect.h
index 1aa892f7e..c15ed4bc4 100644
--- a/sshconnect.h
+++ b/sshconnect.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshconnect.h,v 1.10 2001/06/23 02:34:32 markus Exp $ */ 1/* $OpenBSD: sshconnect.h,v 1.11 2001/06/26 06:33:03 itojun Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000 Markus Friedl. All rights reserved. 4 * Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -27,27 +27,20 @@
27#define SSHCONNECT_H 27#define SSHCONNECT_H
28 28
29int 29int
30ssh_connect(const char *host, struct sockaddr_storage * hostaddr, 30ssh_connect(const char *, struct sockaddr_storage *, u_short, int,
31 u_short port, int connection_attempts, 31 int, struct passwd *, const char *);
32 int anonymous, struct passwd *pw,
33 const char *proxy_command);
34 32
35void 33void
36ssh_login(Key **keys, int nkeys, const char *orighost, 34ssh_login(Key **, int, const char *, struct sockaddr *, struct passwd *);
37 struct sockaddr *hostaddr, struct passwd *pw);
38 35
39int verify_host_key(char *host, struct sockaddr *hostaddr, Key *host_key); 36int verify_host_key(char *, struct sockaddr *, Key *);
40 37
41void ssh_kex(char *host, struct sockaddr *hostaddr); 38void ssh_kex(char *, struct sockaddr *);
42void ssh_kex2(char *host, struct sockaddr *hostaddr); 39void ssh_kex2(char *, struct sockaddr *);
43 40
44void 41void ssh_userauth1(const char *, const char *, char *, Key **, int);
45ssh_userauth1(const char *local_user, const char *server_user, char *host, 42void ssh_userauth2(const char *, const char *, char *, Key **, int);
46 Key **keys, int nkeys);
47void
48ssh_userauth2(const char *local_user, const char *server_user, char *host,
49 Key **keys, int nkeys);
50 43
51void ssh_put_password(char *password); 44void ssh_put_password(char *);
52 45
53#endif 46#endif
diff --git a/sshlogin.h b/sshlogin.h
index f0d500ee3..05840c291 100644
--- a/sshlogin.h
+++ b/sshlogin.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshlogin.h,v 1.1 2001/03/04 01:46:30 djm Exp $ */ 1/* $OpenBSD: sshlogin.h,v 1.2 2001/06/26 06:33:04 itojun Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -20,30 +20,29 @@
20 * The host from which the user logged in is stored in buf. 20 * The host from which the user logged in is stored in buf.
21 */ 21 */
22u_long 22u_long
23get_last_login_time(uid_t uid, const char *logname, 23get_last_login_time(uid_t, const char *, char *, u_int);
24 char *buf, u_int bufsize);
25 24
26/* 25/*
27 * Records that the user has logged in. This does many things normally done 26 * Records that the user has logged in. This does many things normally done
28 * by login(1). 27 * by login(1).
29 */ 28 */
30void 29void
31record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid, 30record_login(pid_t, const char *, const char *, uid_t, const char *,
32 const char *host, struct sockaddr *addr); 31 struct sockaddr *);
33 32
34#ifdef LOGIN_NEEDS_UTMPX 33#ifdef LOGIN_NEEDS_UTMPX
35/* 34/*
36 * Record just the utmp info for /bin/login. 35 * Record just the utmp info for /bin/login.
37 */ 36 */
38void 37void
39record_utmp_only(pid_t pid, const char *ttyname, const char *user, 38record_utmp_only(pid_t, const char *, const char *, const char *,
40 const char *host, struct sockaddr * addr); 39 struct sockaddr *);
41#endif 40#endif
42 41
43/* 42/*
44 * Records that the user has logged out. This does many thigs normally done 43 * Records that the user has logged out. This does many thigs normally done
45 * by login(1) or init. 44 * by login(1) or init.
46 */ 45 */
47void record_logout(pid_t pid, const char *ttyname); 46void record_logout(pid_t, const char *);
48 47
49#endif 48#endif
diff --git a/sshpty.h b/sshpty.h
index d7aac0f55..d962924f8 100644
--- a/sshpty.h
+++ b/sshpty.h
@@ -12,7 +12,7 @@
12 * called by a name other than "ssh" or "Secure Shell". 12 * called by a name other than "ssh" or "Secure Shell".
13 */ 13 */
14 14
15/* RCSID("$OpenBSD: sshpty.h,v 1.1 2001/03/04 01:46:30 djm Exp $"); */ 15/* RCSID("$OpenBSD: sshpty.h,v 1.2 2001/06/26 06:33:04 itojun Exp $"); */
16 16
17#ifndef SSHPTY_H 17#ifndef SSHPTY_H
18#define SSHPTY_H 18#define SSHPTY_H
@@ -23,25 +23,23 @@
23 * descriptors for the pty and tty sides and the name of the tty side are 23 * descriptors for the pty and tty sides and the name of the tty side are
24 * returned (the buffer must be able to hold at least 64 characters). 24 * returned (the buffer must be able to hold at least 64 characters).
25 */ 25 */
26int pty_allocate(int *ptyfd, int *ttyfd, char *ttyname, int ttynamelen); 26int pty_allocate(int *, int *, char *, int);
27 27
28/* 28/*
29 * Releases the tty. Its ownership is returned to root, and permissions to 29 * Releases the tty. Its ownership is returned to root, and permissions to
30 * 0666. 30 * 0666.
31 */ 31 */
32void pty_release(const char *ttyname); 32void pty_release(const char *);
33 33
34/* 34/*
35 * Makes the tty the processes controlling tty and sets it to sane modes. 35 * Makes the tty the processes controlling tty and sets it to sane modes.
36 * This may need to reopen the tty to get rid of possible eavesdroppers. 36 * This may need to reopen the tty to get rid of possible eavesdroppers.
37 */ 37 */
38void pty_make_controlling_tty(int *ttyfd, const char *ttyname); 38void pty_make_controlling_tty(int *, const char *);
39 39
40/* Changes the window size associated with the pty. */ 40/* Changes the window size associated with the pty. */
41void 41void pty_change_window_size(int, int, int, int, int);
42pty_change_window_size(int ptyfd, int row, int col,
43 int xpixel, int ypixel);
44 42
45void pty_setowner(struct passwd *pw, const char *ttyname); 43void pty_setowner(struct passwd *, const char *);
46 44
47#endif /* SSHPTY_H */ 45#endif /* SSHPTY_H */
diff --git a/tildexpand.h b/tildexpand.h
index 88734f4bf..a30f0db30 100644
--- a/tildexpand.h
+++ b/tildexpand.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: tildexpand.h,v 1.2 2001/01/29 01:58:19 niklas Exp $ */ 1/* $OpenBSD: tildexpand.h,v 1.3 2001/06/26 06:33:06 itojun Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -16,4 +16,4 @@
16 * Expands tildes in the file name. Returns data allocated by xmalloc. 16 * Expands tildes in the file name. Returns data allocated by xmalloc.
17 * Warning: this calls getpw*. 17 * Warning: this calls getpw*.
18 */ 18 */
19char *tilde_expand_filename(const char *filename, uid_t my_uid); 19char *tilde_expand_filename(const char *, uid_t);
diff --git a/uidswap.h b/uidswap.h
index 228e5a5e9..9aea88367 100644
--- a/uidswap.h
+++ b/uidswap.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: uidswap.h,v 1.7 2001/04/06 21:00:17 markus Exp $ */ 1/* $OpenBSD: uidswap.h,v 1.8 2001/06/26 06:33:06 itojun Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -19,7 +19,7 @@
19 * Temporarily changes to the given uid. If the effective user id is not 19 * Temporarily changes to the given uid. If the effective user id is not
20 * root, this does nothing. This call cannot be nested. 20 * root, this does nothing. This call cannot be nested.
21 */ 21 */
22void temporarily_use_uid(struct passwd *pw); 22void temporarily_use_uid(struct passwd *);
23 23
24/* 24/*
25 * Restores the original effective user id after temporarily_use_uid(). 25 * Restores the original effective user id after temporarily_use_uid().
@@ -31,6 +31,6 @@ void restore_uid(void);
31 * Permanently sets all uids to the given uid. This cannot be called while 31 * Permanently sets all uids to the given uid. This cannot be called while
32 * temporarily_use_uid is effective. This must also clear any saved uids. 32 * temporarily_use_uid is effective. This must also clear any saved uids.
33 */ 33 */
34void permanently_set_uid(struct passwd *pw); 34void permanently_set_uid(struct passwd *);
35 35
36#endif /* UIDSWAP_H */ 36#endif /* UIDSWAP_H */
diff --git a/uuencode.h b/uuencode.h
index 1a2d63f52..fd8f3dbda 100644
--- a/uuencode.h
+++ b/uuencode.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: uuencode.h,v 1.6 2001/06/25 08:25:41 markus Exp $ */ 1/* $OpenBSD: uuencode.h,v 1.7 2001/06/26 06:33:06 itojun Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000 Markus Friedl. All rights reserved. 4 * Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -26,7 +26,7 @@
26 26
27#ifndef UUENCODE_H 27#ifndef UUENCODE_H
28#define UUENCODE_H 28#define UUENCODE_H
29int uuencode(u_char *src, u_int srclength, char *target, size_t targsize); 29int uuencode(u_char *, u_int, char *, size_t);
30int uudecode(const char *src, u_char *target, size_t targsize); 30int uudecode(const char *, u_char *, size_t);
31void dump_base64(FILE *fp, u_char *data, int len); 31void dump_base64(FILE *, u_char *, int);
32#endif 32#endif
diff --git a/xmalloc.h b/xmalloc.h
index 59a598ed6..d04f10293 100644
--- a/xmalloc.h
+++ b/xmalloc.h
@@ -14,21 +14,21 @@
14 * called by a name other than "ssh" or "Secure Shell". 14 * called by a name other than "ssh" or "Secure Shell".
15 */ 15 */
16 16
17/* RCSID("$OpenBSD: xmalloc.h,v 1.5 2000/09/07 20:27:56 deraadt Exp $"); */ 17/* RCSID("$OpenBSD: xmalloc.h,v 1.6 2001/06/26 06:33:07 itojun Exp $"); */
18 18
19#ifndef XMALLOC_H 19#ifndef XMALLOC_H
20#define XMALLOC_H 20#define XMALLOC_H
21 21
22/* Like malloc, but calls fatal() if out of memory. */ 22/* Like malloc, but calls fatal() if out of memory. */
23void *xmalloc(size_t size); 23void *xmalloc(size_t);
24 24
25/* Like realloc, but calls fatal() if out of memory. */ 25/* Like realloc, but calls fatal() if out of memory. */
26void *xrealloc(void *ptr, size_t new_size); 26void *xrealloc(void *, size_t);
27 27
28/* Frees memory allocated using xmalloc or xrealloc. */ 28/* Frees memory allocated using xmalloc or xrealloc. */
29void xfree(void *ptr); 29void xfree(void *);
30 30
31/* Allocates memory using xmalloc, and copies the string into that memory. */ 31/* Allocates memory using xmalloc, and copies the string into that memory. */
32char *xstrdup(const char *str); 32char *xstrdup(const char *);
33 33
34#endif /* XMALLOC_H */ 34#endif /* XMALLOC_H */