misc.h revision 137015
1137015Sdes/*	$OpenBSD: misc.h,v 1.17 2004/08/11 21:43:05 avsm Exp $	*/
276259Sgreen
376259Sgreen/*
476259Sgreen * Author: Tatu Ylonen <ylo@cs.hut.fi>
576259Sgreen * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
676259Sgreen *                    All rights reserved
776259Sgreen *
876259Sgreen * As far as I am concerned, the code I have written for this software
976259Sgreen * can be used freely for any purpose.  Any derived versions of this
1076259Sgreen * software must be clearly marked as such, and if the derived work is
1176259Sgreen * incompatible with the protocol description in the RFC file, it must be
1276259Sgreen * called by a name other than "ssh" or "Secure Shell".
1376259Sgreen */
1476259Sgreen
15137015Sdes/* misc.c */
16137015Sdes
1792555Sdeschar	*chop(char *);
1892555Sdeschar	*strdelim(char **);
19137015Sdesint	 set_nonblock(int);
20137015Sdesint	 unset_nonblock(int);
2192555Sdesvoid	 set_nodelay(int);
2292555Sdesint	 a2port(const char *);
2392555Sdeschar	*cleanhostname(char *);
2492555Sdeschar	*colon(char *);
2592555Sdeslong	 convtime(const char *);
2676259Sgreen
2792555Sdesstruct passwd *pwcopy(struct passwd *);
2876259Sgreen
2992555Sdestypedef struct arglist arglist;
3092555Sdesstruct arglist {
3198675Sdes	char    **list;
32137015Sdes	u_int   num;
33137015Sdes	u_int   nalloc;
3492555Sdes};
3592555Sdesvoid	 addargs(arglist *, char *, ...) __attribute__((format(printf, 2, 3)));
36137015Sdes
37137015Sdes/* tildexpand.c */
38137015Sdes
39137015Sdeschar	*tilde_expand_filename(const char *, uid_t);
40137015Sdes
41137015Sdes/* readpass.c */
42137015Sdes
43137015Sdes#define RP_ECHO			0x0001
44137015Sdes#define RP_ALLOW_STDIN		0x0002
45137015Sdes#define RP_ALLOW_EOF		0x0004
46137015Sdes#define RP_USE_ASKPASS		0x0008
47137015Sdes
48137015Sdeschar	*read_passphrase(const char *, int);
49