aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-03-19 09:44:47 +0000
committerMartin Willi <martin@strongswan.org>2008-03-19 09:44:47 +0000
commit081ae2eb61b1c7949d71ed4ddf0ce1efe416e218 (patch)
treecb445560eb0d20ec9a9694691506dafa614edb83 /src/libstrongswan/utils.c
parenta40708e5119818cfaf6e2156f64828b7f04bad37 (diff)
downloadstrongswan-081ae2eb61b1c7949d71ed4ddf0ce1efe416e218.tar.bz2
strongswan-081ae2eb61b1c7949d71ed4ddf0ce1efe416e218.tar.xz
fixed CRL check return value on revoked certificates
fixed possible refcounting bugs generic return_null() implementation
Diffstat (limited to 'src/libstrongswan/utils.c')
-rw-r--r--src/libstrongswan/utils.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstrongswan/utils.c b/src/libstrongswan/utils.c
index d6920cf28..953ef505e 100644
--- a/src/libstrongswan/utils.c
+++ b/src/libstrongswan/utils.c
@@ -64,6 +64,14 @@ void memxor(u_int8_t dest[], u_int8_t src[], size_t n)
}
/**
+ * return null
+ */
+void *return_null()
+{
+ return NULL;
+}
+
+/**
* We use a single mutex for all refcount variables. This
* is not optimal for performance, but the critical section
* is not that long...