aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan')
-rw-r--r--src/libstrongswan/utils.c7
-rw-r--r--src/libstrongswan/utils.h5
2 files changed, 12 insertions, 0 deletions
diff --git a/src/libstrongswan/utils.c b/src/libstrongswan/utils.c
index 953ef505e..416c8ef44 100644
--- a/src/libstrongswan/utils.c
+++ b/src/libstrongswan/utils.c
@@ -72,6 +72,13 @@ void *return_null()
}
/**
+ * nop operation
+ */
+void nop()
+{
+}
+
+/**
* We use a single mutex for all refcount variables. This
* is not optimal for performance, but the critical section
* is not that long...
diff --git a/src/libstrongswan/utils.h b/src/libstrongswan/utils.h
index aae368af1..8b1a8aaba 100644
--- a/src/libstrongswan/utils.h
+++ b/src/libstrongswan/utils.h
@@ -215,6 +215,11 @@ void memxor(u_int8_t dest[], u_int8_t src[], size_t n);
void *return_null();
/**
+ * No-Operation function
+ */
+void nop();
+
+/**
* Special type to count references
*/
typedef volatile u_int refcount_t;