aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libtls-standalone/test_program.c
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-10-13 11:34:45 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2018-10-13 11:38:52 -0500
commitb8e9780813989d6e55cd48ca0b96a2e521a75660 (patch)
tree7fd76adc6162842ff5ed35eeb0cb55359302d6fb /testing/libtls-standalone/test_program.c
parentaf1db7f2648388315f975cf3b637cb27e423148c (diff)
downloadaports-b8e9780813989d6e55cd48ca0b96a2e521a75660.tar.gz
aports-b8e9780813989d6e55cd48ca0b96a2e521a75660.tar.bz2
aports-b8e9780813989d6e55cd48ca0b96a2e521a75660.tar.xz
testing/libtls-standalone: new aport
libtls extricated from libressl, built against openssl. also, probably one of the ugliest hacks i have ever done.
Diffstat (limited to 'testing/libtls-standalone/test_program.c')
-rw-r--r--testing/libtls-standalone/test_program.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/libtls-standalone/test_program.c b/testing/libtls-standalone/test_program.c
new file mode 100644
index 0000000000..f8d7332d72
--- /dev/null
+++ b/testing/libtls-standalone/test_program.c
@@ -0,0 +1,11 @@
+#include <stdlib.h>
+#include <assert.h>
+#include <tls.h>
+
+int
+main(int argc, const char *argv[])
+{
+ assert(tls_init() == 0);
+
+ return EXIT_SUCCESS;
+}