[hipl-dev] [Branch ~toxedvirus/hipl/hipfw-modules] Rev 5013: Add barebone midauth module.

  • From: noreply@xxxxxxxxxxxxx
  • To: HIPL core team <hipl-dev@xxxxxxxxxxxxx>
  • Date: Tue, 09 Nov 2010 15:31:29 -0000

------------------------------------------------------------
revno: 5013
committer: Andrius Bentkus <andrius.bentkus@xxxxxxxxxxxxxx>
branch nick: hipfw-modules
timestamp: Tue 2010-11-09 16:27:55 +0100
message:
  Add barebone midauth module.
added:
  modules/midauth/
  modules/midauth/Makefile.am
  modules/midauth/firewall/
  modules/midauth/firewall/midauth.c
  modules/midauth/firewall/midauth.h
  modules/midauth/module_info.xml
modified:
  Makefile.am


--
lp:~toxedvirus/hipl/hipfw-modules
https://code.launchpad.net/~toxedvirus/hipl/hipfw-modules

Your team HIPL core team is subscribed to branch 
lp:~toxedvirus/hipl/hipfw-modules.
To unsubscribe from this branch go to 
https://code.launchpad.net/~toxedvirus/hipl/hipfw-modules/+edit-subscription
=== modified file 'Makefile.am'
--- Makefile.am 2010-11-09 14:18:47 +0000
+++ Makefile.am 2010-11-09 15:27:55 +0000
@@ -171,6 +171,7 @@
 # TODO: Make this inclusion dynamic
 include modules/heartbeat/Makefile.am
 include modules/heartbeat_update/Makefile.am
+include modules/midauth/Makefile.am
 include modules/update/Makefile.am
 
 ### library dependencies ###

=== added directory 'modules/midauth'
=== added file 'modules/midauth/Makefile.am'
--- modules/midauth/Makefile.am 1970-01-01 00:00:00 +0000
+++ modules/midauth/Makefile.am 2010-11-09 15:27:55 +0000
@@ -0,0 +1,5 @@
+lib_LTLIBRARIES += modules/midauth/firewall/libhipmidauth.la
+
+modules_midauth_firewall_libhipmidauth_la_SOURCES = 
modules/midauth/firewall/midauth.c
+
+firewall_hipfw_LDADD += modules/midauth/firewall/libhipmidauth.la

=== added directory 'modules/midauth/firewall'
=== added file 'modules/midauth/firewall/midauth.c'
--- modules/midauth/firewall/midauth.c  1970-01-01 00:00:00 +0000
+++ modules/midauth/firewall/midauth.c  2010-11-09 15:27:55 +0000
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2010 Aalto University and RWTH Aachen University.
+ *
+ * Permission is hereby granted, free of charge, to any person
+ * obtaining a copy of this software and associated documentation
+ * files (the "Software"), to deal in the Software without
+ * restriction, including without limitation the rights to use,
+ * copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following
+ * conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+/**
+ * @file
+ * @author Andrius Bentkus <andrius.bentkus@xxxxxxxxxxxxxx>
+ */
+
+#include "midauth.h"
+
+int hip_midauth_init(void)
+{
+    return 0;
+}

=== added file 'modules/midauth/firewall/midauth.h'
--- modules/midauth/firewall/midauth.h  1970-01-01 00:00:00 +0000
+++ modules/midauth/firewall/midauth.h  2010-11-09 15:27:55 +0000
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2010 Aalto University and RWTH Aachen University.
+ *
+ * Permission is hereby granted, free of charge, to any person
+ * obtaining a copy of this software and associated documentation
+ * files (the "Software"), to deal in the Software without
+ * restriction, including without limitation the rights to use,
+ * copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following
+ * conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+/**
+ * @file
+ * @author Andrius Bentkus <andrius.bentkus@xxxxxxxxxxxxxx>
+ */
+
+#ifndef MODULES_FIREWALL_MIDAUTH_MIDAUTH_H
+#define MODULES_FIREWALL_MIDAUTH_MIDAUTH_H
+
+int hip_midauth_init(void);
+
+#endif /* MODULES_FIREWALL_MIDAUTH_MIDAUTH_H */

=== added file 'modules/midauth/module_info.xml'
--- modules/midauth/module_info.xml     1970-01-01 00:00:00 +0000
+++ modules/midauth/module_info.xml     2010-11-09 15:27:55 +0000
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- Mandatory: name, version -->
+<module
+    name="midauth"
+    version="0.0.1"
+    description="Midauth extension for the hip firewall daemon."
+    developer="Andrius Bentkus"
+    bugaddress="hipl-users@xxxxxxxxxxxxx"
+    webpage="http://infrahip.hiit.fi/";>
+
+    <!-- Mandatory: name, header_file, init_function -->
+    <application
+        name="firewall"
+        header_file="modules/midauth/firewall/midauth.h"
+        init_function="hip_midauth_init" />
+</module>

Other related posts: