aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/af_alg/af_alg_plugin.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-11-05 16:15:13 +0100
committerMartin Willi <martin@revosec.ch>2010-12-20 09:52:02 +0100
commit71c87e3483ce31535be417227a7ceec655c4c60e (patch)
treeb493da498262db2250a8c77479a53d2be9e983bb /src/libstrongswan/plugins/af_alg/af_alg_plugin.c
parente44817df6f2e16f4ae0188690e5e426005c4972c (diff)
downloadstrongswan-71c87e3483ce31535be417227a7ceec655c4c60e.tar.bz2
strongswan-71c87e3483ce31535be417227a7ceec655c4c60e.tar.xz
Added plugin stub for AF_ALG
Diffstat (limited to 'src/libstrongswan/plugins/af_alg/af_alg_plugin.c')
-rw-r--r--src/libstrongswan/plugins/af_alg/af_alg_plugin.c55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/af_alg/af_alg_plugin.c b/src/libstrongswan/plugins/af_alg/af_alg_plugin.c
new file mode 100644
index 000000000..89807b9bf
--- /dev/null
+++ b/src/libstrongswan/plugins/af_alg/af_alg_plugin.c
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2010 Martin Willi
+ * Copyright (C) 2010 revosec AG
+ *
+ * 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 "af_alg_plugin.h"
+
+#include <library.h>
+
+typedef struct private_af_alg_plugin_t private_af_alg_plugin_t;
+
+/**
+ * private data of af_alg_plugin
+ */
+struct private_af_alg_plugin_t {
+
+ /**
+ * public functions
+ */
+ af_alg_plugin_t public;
+};
+
+METHOD(plugin_t, destroy, void,
+ private_af_alg_plugin_t *this)
+{
+ free(this);
+}
+
+/*
+ * see header file
+ */
+plugin_t *af_alg_plugin_create()
+{
+ private_af_alg_plugin_t *this;
+
+ INIT(this,
+ .public = {
+ .plugin = {
+ .destroy = _destroy,
+ },
+ },
+ );
+
+ return &this->public.plugin;
+}