Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 52 lines (43 sloc) 1.556 kb
b795e45 ensure that stdio fds are attached; ok deraadt@
djm authored
1 /* $OpenBSD: misc.h,v 1.26 2005/09/13 23:40:07 djm Exp $ */
12888f7 $OpenBSD$
niklas authored
2
99249ec @mfriedl split ssh.h and try to cleanup the #include mess. remove unnecessary #in...
authored
3 /*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
7 *
8 * As far as I am concerned, the code I have written for this software
9 * can be used freely for any purpose. Any derived versions of this
10 * software must be clearly marked as such, and if the derived work is
11 * incompatible with the protocol description in the RFC file, it must be
12 * called by a name other than "ssh" or "Secure Shell".
13 */
14
37e2f1d kill a tiny header; ok deraadt@
djm authored
15 /* misc.c */
16
0ba7494 @mfriedl remove comments from .h, since they are cut&paste from the .c files
authored
17 char *chop(char *);
09e5720 prototype pedant. not very creative...
itojun authored
18 char *strdelim(char **);
3cb576b set_nonblock() instead of fnctl(...,O_NONBLOCK); "looks sane" deraadt@
djm authored
19 int set_nonblock(int);
20 int unset_nonblock(int);
384b6d0 add set_nodelay() to set TCP_NODELAY on a socket (prep for nagle tuning)...
stevesk authored
21 void set_nodelay(int);
0ba7494 @mfriedl remove comments from .h, since they are cut&paste from the .c files
authored
22 int a2port(const char *);
3f097e1 bz#413: allow optional specification of bind address for port forwarding...
djm authored
23 char *hpdelim(char **);
0ba7494 @mfriedl remove comments from .h, since they are cut&paste from the .c files
authored
24 char *cleanhostname(char *);
25 char *colon(char *);
26 long convtime(const char *);
4e498ad replace tilde_expand_filename with a simpler implementation, ahead of mo...
djm authored
27 char *tilde_expand_filename(const char *, uid_t);
f996754 use __sentinel__ attribute; ok deraadt@ djm@ markus@
dtucker authored
28 char *percent_expand(const char *, ...) __attribute__((__sentinel__));
c408d1f implement support for X11 and agent forwarding over multiplex slave
djm authored
29 char *tohex(const u_char *, u_int);
b795e45 ensure that stdio fds are attached; ok deraadt@
djm authored
30 void sanitise_stdfd(void);
99249ec @mfriedl split ssh.h and try to cleanup the #include mess. remove unnecessary #in...
authored
31
0ba7494 @mfriedl remove comments from .h, since they are cut&paste from the .c files
authored
32 struct passwd *pwcopy(struct passwd *);
75e2291 Move colon() and cleanhost() to misc.c where I should I have put it in
mouring authored
33
bbbce0a Use addargs() in sftp plus some clean up of addargs(). OK Markus
mouring authored
34 typedef struct arglist arglist;
35 struct arglist {
fbd57b2 @mfriedl KNF whitespace
authored
36 char **list;
24c0e0f some signed/unsigned int comparison cleanups; markus@ ok
avsm authored
37 u_int num;
38 u_int nalloc;
bbbce0a Use addargs() in sftp plus some clean up of addargs(). OK Markus
mouring authored
39 };
0ba7494 @mfriedl remove comments from .h, since they are cut&paste from the .c files
authored
40 void addargs(arglist *, char *, ...) __attribute__((format(printf, 2, 3)));
6f75405 make two tiny header files go away; djm ok
deraadt authored
41
37e2f1d kill a tiny header; ok deraadt@
djm authored
42 /* readpass.c */
43
44 #define RP_ECHO 0x0001
45 #define RP_ALLOW_STDIN 0x0002
46 #define RP_ALLOW_EOF 0x0004
4cecb00 Add option for confirmation (ControlMaster=ask) via ssh-askpass before o...
djm authored
47 #define RP_USE_ASKPASS 0x0008
37e2f1d kill a tiny header; ok deraadt@
djm authored
48
49 char *read_passphrase(const char *, int);
0d79bca factor out common permission-asking code to separate function; ok markus...
djm authored
50 int ask_permission(const char *, ...) __attribute__((format(printf, 1, 2)));
dc288dc Fix debug call in error path of authorized_keys processing and fix relat...
dtucker authored
51 int read_keyfile_line(FILE *, const char *, char *, size_t, u_long *);
Something went wrong with that request. Please try again.