diff options
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: misc.h,v 1.79 2019/01/23 21:50:56 dtucker Exp $ */ | 1 | /* $OpenBSD: misc.h,v 1.81 2019/09/03 08:32:11 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -44,6 +44,7 @@ struct ForwardOptions { | |||
44 | /* misc.c */ | 44 | /* misc.c */ |
45 | 45 | ||
46 | char *chop(char *); | 46 | char *chop(char *); |
47 | void skip_space(char **); | ||
47 | char *strdelim(char **); | 48 | char *strdelim(char **); |
48 | char *strdelimw(char **); | 49 | char *strdelimw(char **); |
49 | int set_nonblock(int); | 50 | int set_nonblock(int); |
@@ -165,6 +166,11 @@ int safe_path(const char *, struct stat *, const char *, uid_t, | |||
165 | int safe_path_fd(int, const char *, struct passwd *, | 166 | int safe_path_fd(int, const char *, struct passwd *, |
166 | char *err, size_t errlen); | 167 | char *err, size_t errlen); |
167 | 168 | ||
169 | /* authorized_key-style options parsing helpers */ | ||
170 | int opt_flag(const char *opt, int allow_negate, const char **optsp); | ||
171 | char *opt_dequote(const char **sp, const char **errstrp); | ||
172 | int opt_match(const char **opts, const char *term); | ||
173 | |||
168 | /* readpass.c */ | 174 | /* readpass.c */ |
169 | 175 | ||
170 | #define RP_ECHO 0x0001 | 176 | #define RP_ECHO 0x0001 |