summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/misc.h b/misc.h
index 6d2869b36..ec47a611d 100644
--- a/misc.h
+++ b/misc.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: misc.h,v 1.12 2002/03/19 10:49:35 markus Exp $ */ 1/* $OpenBSD: misc.h,v 1.17 2004/08/11 21:43:05 avsm Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -12,10 +12,12 @@
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/* misc.c */
16
15char *chop(char *); 17char *chop(char *);
16char *strdelim(char **); 18char *strdelim(char **);
17void set_nonblock(int); 19int set_nonblock(int);
18void unset_nonblock(int); 20int unset_nonblock(int);
19void set_nodelay(int); 21void set_nodelay(int);
20int a2port(const char *); 22int a2port(const char *);
21char *cleanhostname(char *); 23char *cleanhostname(char *);
@@ -27,7 +29,20 @@ struct passwd *pwcopy(struct passwd *);
27typedef struct arglist arglist; 29typedef struct arglist arglist;
28struct arglist { 30struct arglist {
29 char **list; 31 char **list;
30 int num; 32 u_int num;
31 int nalloc; 33 u_int nalloc;
32}; 34};
33void addargs(arglist *, char *, ...) __attribute__((format(printf, 2, 3))); 35void addargs(arglist *, char *, ...) __attribute__((format(printf, 2, 3)));
36
37/* tildexpand.c */
38
39char *tilde_expand_filename(const char *, uid_t);
40
41/* readpass.c */
42
43#define RP_ECHO 0x0001
44#define RP_ALLOW_STDIN 0x0002
45#define RP_ALLOW_EOF 0x0004
46#define RP_USE_ASKPASS 0x0008
47
48char *read_passphrase(const char *, int);