aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-01-29 12:20:10 +0100
committerMartin Willi <martin@revosec.ch>2013-02-14 17:17:45 +0100
commit4755ab505dcd9fd25eb7ac2e93d7da5031be3ebf (patch)
treeabeb05a16896ca8e4c02cb3c766ed869fbc853f7 /src/libstrongswan
parentde32b8aed6675edce1736387149d80e958193280 (diff)
downloadstrongswan-4755ab505dcd9fd25eb7ac2e93d7da5031be3ebf.tar.bz2
strongswan-4755ab505dcd9fd25eb7ac2e93d7da5031be3ebf.tar.xz
Add a global return_success() method implementation
Diffstat (limited to 'src/libstrongswan')
-rw-r--r--src/libstrongswan/utils/utils.c8
-rw-r--r--src/libstrongswan/utils/utils.h5
2 files changed, 13 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/utils.c b/src/libstrongswan/utils/utils.c
index fc2fe4a3e..0850df9bc 100644
--- a/src/libstrongswan/utils/utils.c
+++ b/src/libstrongswan/utils/utils.c
@@ -387,6 +387,14 @@ status_t return_failed()
}
/**
+ * returns SUCCESS
+ */
+status_t return_success()
+{
+ return SUCCESS;
+}
+
+/**
* nop operation
*/
void nop()
diff --git a/src/libstrongswan/utils/utils.h b/src/libstrongswan/utils/utils.h
index 7b1beb93a..6c24a261f 100644
--- a/src/libstrongswan/utils/utils.h
+++ b/src/libstrongswan/utils/utils.h
@@ -496,6 +496,11 @@ bool return_false();
status_t return_failed();
/**
+ * returns SUCCESS
+ */
+status_t return_success();
+
+/**
* Write a 16-bit host order value in network order to an unaligned address.
*
* @param host host order 16-bit value