summaryrefslogtreecommitdiffstats
path: root/tests/slow/crypto.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 07:33:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 07:33:12 +0000
commit36082a2fe36ecd800d784ae44c14f1f18c66a7e9 (patch)
tree6c68e0c0097987aff85a01dabddd34b862309a7c /tests/slow/crypto.c
parentInitial commit. (diff)
downloadgnutls28-36082a2fe36ecd800d784ae44c14f1f18c66a7e9.tar.xz
gnutls28-36082a2fe36ecd800d784ae44c14f1f18c66a7e9.zip
Adding upstream version 3.7.9.upstream/3.7.9upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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 0000000..eedaf3f
--- /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;
+}