summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/auth2-pubkey.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2019-09-03 08:29:59 +0000
committerDamien Miller <djm@cvs.openbsd.org>2019-09-03 08:29:59 +0000
commit25a797a094d0c5bcbdf936621c566402ba196748 (patch)
treef3b6cfc7570bf973d12fe352bbe665c0c6ef6a49 /usr.bin/ssh/auth2-pubkey.c
parentf5d9e7f57bb0e0d3b5a6109f87343498575907cf (diff)
move skip_space() to misc.c and make it public; ok markus@
Diffstat (limited to 'usr.bin/ssh/auth2-pubkey.c')
-rw-r--r--usr.bin/ssh/auth2-pubkey.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/usr.bin/ssh/auth2-pubkey.c b/usr.bin/ssh/auth2-pubkey.c
index daf4600e57b..88733d1664d 100644
--- a/usr.bin/ssh/auth2-pubkey.c
+++ b/usr.bin/ssh/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.
*
@@ -535,16 +535,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.