summaryrefslogtreecommitdiffstats
path: root/auth2-pubkey.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-09-03 08:29:58 +0000
committerDamien Miller <djm@mindrot.org>2019-09-03 18:39:31 +1000
commitc72d78ccbe642e08591a626e5de18381489716e0 (patch)
tree3c79965dde29c4b04cf0d871d068b54b2c2a084d /auth2-pubkey.c
parent06af3583f46e2c327fdd44d8a95b8b4e8dfd8db5 (diff)
upstream: move skip_space() to misc.c and make it public; ok
markus@ OpenBSD-Commit-ID: caa77e8a3b210948e29ad3e28c5db00852961eae
Diffstat (limited to 'auth2-pubkey.c')
-rw-r--r--auth2-pubkey.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/auth2-pubkey.c b/auth2-pubkey.c
index 32ce1925..65db116e 100644
--- a/auth2-pubkey.c
+++ b/auth2-pubkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-pubkey.c,v 1.91 2019/07/16 13:18:39 djm Exp $ */
+/* $OpenBSD: auth2-pubkey.c,v 1.92 2019/09/03 08:29:58 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -538,16 +538,6 @@ match_principals_command(struct ssh *ssh, struct passwd *user_pw,
return found_principal;
}
-static void
-skip_space(char **cpp)
-{
- char *cp;
-
- for (cp = *cpp; *cp == ' ' || *cp == '\t'; cp++)
- ;
- *cpp = cp;
-}
-
/*
* Advanced *cpp past the end of key options, defined as the first unquoted
* whitespace character. Returns 0 on success or -1 on failure (e.g.