aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/systime_fix/systime_fix_plugin.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-03-01 11:33:47 +0100
committerMartin Willi <martin@revosec.ch>2013-03-01 11:33:47 +0100
commitadf239abca62808cecf9530120091fa69f4f183f (patch)
tree995c04c534c9db1264cc7fd7511b20b80fea3b28 /src/libcharon/plugins/systime_fix/systime_fix_plugin.h
parentb611d8ba48424747ad1330e6ffbba3de8f5f0555 (diff)
parent295e42a47f9a46366209c076f6542459d65a4a38 (diff)
downloadstrongswan-adf239abca62808cecf9530120091fa69f4f183f.tar.bz2
strongswan-adf239abca62808cecf9530120091fa69f4f183f.tar.xz
Merge branch 'systime'
Add a systime-fix plugin allowing an embedded system to validate certificates if the system time has not been synchronized after boot. Certificates of established tunnels can be re-validated after the system time gets valid.
Diffstat (limited to 'src/libcharon/plugins/systime_fix/systime_fix_plugin.h')
-rw-r--r--src/libcharon/plugins/systime_fix/systime_fix_plugin.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/libcharon/plugins/systime_fix/systime_fix_plugin.h b/src/libcharon/plugins/systime_fix/systime_fix_plugin.h
new file mode 100644
index 000000000..402659539
--- /dev/null
+++ b/src/libcharon/plugins/systime_fix/systime_fix_plugin.h
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2013 Martin Willi
+ * Copyright (C) 2013 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.
+ */
+
+/**
+ * @defgroup systime_fix systime_fix
+ * @ingroup cplugins
+ *
+ * @defgroup systime_fix_plugin systime_fix_plugin
+ * @{ @ingroup systime_fix
+ */
+
+#ifndef SYSTIME_FIX_PLUGIN_H_
+#define SYSTIME_FIX_PLUGIN_H_
+
+#include <plugins/plugin.h>
+
+typedef struct systime_fix_plugin_t systime_fix_plugin_t;
+
+/**
+ * Plugin handling cert lifetimes gracefully if system time is out of sync.
+ */
+struct systime_fix_plugin_t {
+
+ /**
+ * Implements plugin interface.
+ */
+ plugin_t plugin;
+};
+
+#endif /** SYSTIME_FIX_PLUGIN_H_ @}*/