aboutsummaryrefslogtreecommitdiffstats
path: root/librecrypt_free_context.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--librecrypt_free_context.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/librecrypt_free_context.c b/librecrypt_free_context.c
new file mode 100644
index 0000000..481282f
--- /dev/null
+++ b/librecrypt_free_context.c
@@ -0,0 +1,30 @@
+/* See LICENSE file for copyright and license details. */
+#include "common.h"
+#ifndef TEST
+
+
+void
+librecrypt_free_context(LIBRECRYPT_CONTEXT *ctx)
+{
+ librecrypt_wipe(ctx, sizeof(*ctx));
+ free(ctx);
+}
+
+
+#else
+
+
+int
+main(void)
+{
+ SET_UP_ALARM();
+ INIT_RESOURCE_TEST();
+
+ /* TODO test */
+
+ STOP_RESOURCE_TEST();
+ return 0;
+}
+
+
+#endif