summaryrefslogtreecommitdiff
path: root/tests/slow/crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/slow/crypto.c')
-rw-r--r--tests/slow/crypto.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/slow/crypto.c b/tests/slow/crypto.c
new file mode 100644
index 0000000000..eedaf3fb0c
--- /dev/null
+++ b/tests/slow/crypto.c
@@ -0,0 +1,17 @@
+#include <config.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <assert.h>
+#include <gnutls/crypto.h>
+
+/* this tests whether including crypto.h is sufficient to use
+ * its functionality */
+
+int main(int argc, char **argv)
+{
+ char output[64];
+ assert(gnutls_hash_fast(GNUTLS_DIG_SHA256, "abc", 3, output) >= 0);
+ return 0;
+}