]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Fixed line endings in medsrv/filter/auth_filter.[ch].
authorTobias Brunner <tobias@strongswan.org>
Tue, 4 Oct 2011 08:26:10 +0000 (10:26 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 4 Oct 2011 08:40:21 +0000 (10:40 +0200)
src/medsrv/filter/auth_filter.c
src/medsrv/filter/auth_filter.h

index 9ed356042dd361aadac526331f7a4bcfea56c1a6..d06f96db146d89ca15ed35165a96c07e3499d890 100755 (executable)
@@ -1,50 +1,50 @@
 /*
- * Copyright (C) 2008 Martin Willi\r
- * Copyright (C) 2008 Philip Boetschi, Adrian Doerig\r
- * Hochschule fuer Technik Rapperswil\r
- *\r
- * This program is free software; you can redistribute it and/or modify it\r
- * under the terms of the GNU General Public License as published by the\r
- * Free Software Foundation; either version 2 of the License, or (at your\r
- * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.\r
- *\r
- * This program is distributed in the hope that it will be useful, but\r
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
- * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
- * for more details.\r
- */\r
-\r
-#include "auth_filter.h"\r
-\r
-#include <debug.h>\r
-\r
-typedef struct private_auth_filter_t private_auth_filter_t;\r
-\r
-/**\r
- * private data of auth_filter\r
- */\r
-struct private_auth_filter_t {\r
-       /**\r
-        * public functions\r
-        */\r
-       auth_filter_t public;\r
-\r
-       /**\r
-        * user session\r
-        */\r
+ * Copyright (C) 2008 Martin Willi
+ * Copyright (C) 2008 Philip Boetschi, Adrian Doerig
+ * Hochschule fuer Technik Rapperswil
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * for more details.
+ */
+
+#include "auth_filter.h"
+
+#include <debug.h>
+
+typedef struct private_auth_filter_t private_auth_filter_t;
+
+/**
+ * private data of auth_filter
+ */
+struct private_auth_filter_t {
+       /**
+        * public functions
+        */
+       auth_filter_t public;
+
+       /**
+        * user session
+        */
        user_t *user;
 
        /**
         * database connection
         */
-       database_t *db;\r
+       database_t *db;
 };
-\r
-/**\r
- * Implementation of filter_t.run\r
- */\r
+
+/**
+ * Implementation of filter_t.run
+ */
 static bool run(private_auth_filter_t *this, request_t *request,
-                               char *controller, char *action)\r
+                               char *controller, char *action)
 {
        if (this->user->get_user(this->user))
        {
@@ -67,32 +67,32 @@ static bool run(private_auth_filter_t *this, request_t *request,
                (streq(action, "add") || streq(action, "login") || streq(action, "help")))
        {       /* add/login allowed */
                return TRUE;
-       }\r
-       request->redirect(request, "user/login");\r
-       return FALSE;\r
-}\r
-\r
-/**\r
- * Implementation of filter_t.destroy\r
- */\r
-static void destroy(private_auth_filter_t *this)\r
-{\r
-       free(this);\r
-}\r
-\r
-/*\r
- * see header file\r
- */\r
-filter_t *auth_filter_create(user_t *user, database_t *db)\r
-{\r
-       private_auth_filter_t *this= malloc_thing(private_auth_filter_t);\r
-\r
-       this->public.filter.destroy = (void(*)(filter_t*))destroy;\r
-       this->public.filter.run = (bool(*)(filter_t*, request_t*,char*,char*,char*,char*,char*,char*))run;\r
-\r
+       }
+       request->redirect(request, "user/login");
+       return FALSE;
+}
+
+/**
+ * Implementation of filter_t.destroy
+ */
+static void destroy(private_auth_filter_t *this)
+{
+       free(this);
+}
+
+/*
+ * see header file
+ */
+filter_t *auth_filter_create(user_t *user, database_t *db)
+{
+       private_auth_filter_t *this= malloc_thing(private_auth_filter_t);
+
+       this->public.filter.destroy = (void(*)(filter_t*))destroy;
+       this->public.filter.run = (bool(*)(filter_t*, request_t*,char*,char*,char*,char*,char*,char*))run;
+
        this->user = user;
-       this->db = db;\r
-\r
-       return &this->public.filter;\r
-}\r
+       this->db = db;
+
+       return &this->public.filter;
+}
 
index f1fc565ebbc4cd893b7263b6d05ba2050bb08a6a..c46de40a5f513ce5516c4fda93d0278800aa8762 100755 (executable)
@@ -1,48 +1,48 @@
 /*
- * Copyright (C) 2008 Martin Willi\r
- * Copyright (C) 2008 Philip Boetschi, Adrian Doerig\r
- * Hochschule fuer Technik Rapperswil\r
- *\r
- * This program is free software; you can redistribute it and/or modify it\r
- * under the terms of the GNU General Public License as published by the\r
- * Free Software Foundation; either version 2 of the License, or (at your\r
- * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.\r
- *\r
- * This program is distributed in the hope that it will be useful, but\r
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
- * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
- * for more details.\r
- */\r
-\r
-/**\r
- * @defgroup auth_filter_server auth_filter\r
- * @{ @ingroup filter_server\r
- */\r
-\r
-#ifndef AUTH_FILTER_H_\r
-#define AUTH_FILTER_H_\r
-\r
-#include <library.h>\r
+ * Copyright (C) 2008 Martin Willi
+ * Copyright (C) 2008 Philip Boetschi, Adrian Doerig
+ * Hochschule fuer Technik Rapperswil
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * for more details.
+ */
+
+/**
+ * @defgroup auth_filter_server auth_filter
+ * @{ @ingroup filter_server
+ */
+
+#ifndef AUTH_FILTER_H_
+#define AUTH_FILTER_H_
+
+#include <library.h>
 #include <filter.h>
 
-#include "user.h"\r
-\r
-typedef struct auth_filter_t auth_filter_t;\r
-\r
-/**\r
- * Authentication/Authorization filter.\r
- */\r
-struct auth_filter_t {\r
-\r
-       /**\r
-        * Implements filter_t interface.\r
-        */\r
-       filter_t filter;\r
-};\r
-\r
-/**\r
- * Create a auth_filter instance.\r
- */\r
-filter_t *auth_filter_create(user_t *user, database_t *db);\r
-\r
-#endif /* AUTH_FILTER_H_  @}*/\r
+#include "user.h"
+
+typedef struct auth_filter_t auth_filter_t;
+
+/**
+ * Authentication/Authorization filter.
+ */
+struct auth_filter_t {
+
+       /**
+        * Implements filter_t interface.
+        */
+       filter_t filter;
+};
+
+/**
+ * Create a auth_filter instance.
+ */
+filter_t *auth_filter_create(user_t *user, database_t *db);
+
+#endif /* AUTH_FILTER_H_  @}*/