diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-07-06 21:54:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-07-06 21:54:39 +0000 |
commit | f5d8fe7463b9acf36c91d3674cf770c40cd09452 (patch) | |
tree | 811c13103368a0fab85a4375f2f8ac729e00447d | |
parent | 88b24205fc217b17171b918c07001607de5af0d1 (diff) |
proto in scope
-rw-r--r-- | libexec/login_radius/login_radius.c | 4 | ||||
-rw-r--r-- | libexec/login_radius/login_radius.h | 21 | ||||
-rw-r--r-- | libexec/login_radius/raddauth.c | 3 |
3 files changed, 25 insertions, 3 deletions
diff --git a/libexec/login_radius/login_radius.c b/libexec/login_radius/login_radius.c index 470d507b4db..6c046ddb231 100644 --- a/libexec/login_radius/login_radius.c +++ b/libexec/login_radius/login_radius.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login_radius.c,v 1.3 2002/09/29 03:23:01 millert Exp $ */ +/* $OpenBSD: login_radius.c,v 1.4 2003/07/06 21:54:38 deraadt Exp $ */ /*- * Copyright (c) 1996, 1997 Berkeley Software Design, Inc. All rights reserved. @@ -78,9 +78,9 @@ #include <syslog.h> #include <unistd.h> #include <bsd_auth.h> +#include "login_radius.h" static int cleanstring(char *); -int raddauth(char *, char *, char *, char *, char *, char **); int main(int argc, char **argv) diff --git a/libexec/login_radius/login_radius.h b/libexec/login_radius/login_radius.h new file mode 100644 index 00000000000..8c117c3647a --- /dev/null +++ b/libexec/login_radius/login_radius.h @@ -0,0 +1,21 @@ +/* $OpenBSD: login_radius.h,v 1.1 2003/07/06 21:54:38 deraadt Exp $ */ + +/* + * Copyright (c) 2003 Theo de Raadt <deraadt@openbsd.org> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +int +raddauth(char *username, char *class, char *style, char *challenge, + char *password, char **emsg); diff --git a/libexec/login_radius/raddauth.c b/libexec/login_radius/raddauth.c index da06163cb7e..4c7d822ec69 100644 --- a/libexec/login_radius/raddauth.c +++ b/libexec/login_radius/raddauth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raddauth.c,v 1.13 2002/09/29 03:23:01 millert Exp $ */ +/* $OpenBSD: raddauth.c,v 1.14 2003/07/06 21:54:38 deraadt Exp $ */ /*- * Copyright (c) 1996, 1997 Berkeley Software Design, Inc. All rights reserved. @@ -85,6 +85,7 @@ #include <time.h> #include <unistd.h> #include <md5.h> +#include "login_radius.h" #define MAXPWNETNAM 64 /* longest username */ |