summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-09-03 08:32:11 +0000
committerDamien Miller <djm@mindrot.org>2019-09-03 18:39:31 +1000
commit5485f8d50a5bc46aeed829075ebf5d9c617027ea (patch)
treefaaa341e91f2e3006af62927fe484ab09fbc5b79 /misc.h
parentf8df0413f0a057b6a3d3dd7bd8bc7c5d80911d3a (diff)
downloadopenssh-git-5485f8d50a5bc46aeed829075ebf5d9c617027ea.tar.gz
upstream: move authorized_keys option parsing helpsers to misc.c
and make them public; ok markus@ OpenBSD-Commit-ID: c18bcb2a687227b3478377c981c2d56af2638ea2
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/misc.h b/misc.h
index 8deea5ea..bcc34f98 100644
--- a/misc.h
+++ b/misc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.h,v 1.80 2019/09/03 08:29:58 djm Exp $ */
+/* $OpenBSD: misc.h,v 1.81 2019/09/03 08:32:11 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -166,6 +166,11 @@ int safe_path(const char *, struct stat *, const char *, uid_t,
int safe_path_fd(int, const char *, struct passwd *,
char *err, size_t errlen);
+/* authorized_key-style options parsing helpers */
+int opt_flag(const char *opt, int allow_negate, const char **optsp);
+char *opt_dequote(const char **sp, const char **errstrp);
+int opt_match(const char **opts, const char *term);
+
/* readpass.c */
#define RP_ECHO 0x0001