From 5485f8d50a5bc46aeed829075ebf5d9c617027ea Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Tue, 3 Sep 2019 08:32:11 +0000 Subject: upstream: move authorized_keys option parsing helpsers to misc.c and make them public; ok markus@ OpenBSD-Commit-ID: c18bcb2a687227b3478377c981c2d56af2638ea2 --- misc.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'misc.h') 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 @@ -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 -- cgit v1.2.1