That is, sufficient to use its functionality, and including additional
headers isn't necessary.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
dist_check_SCRIPTS = test-ciphers.sh override-ciphers test-hash-large test-ciphers-common.sh
-check_PROGRAMS = $(ctests) cipher-test cipher-override mac-override cipher-override2 hash-large
-TESTS = $(ctests) test-ciphers.sh override-ciphers test-hash-large
+check_PROGRAMS = $(ctests) cipher-test cipher-override mac-override cipher-override2 hash-large crypto
+TESTS = $(ctests) test-ciphers.sh override-ciphers test-hash-large crypto
if HAVE_LIBCRYPTO
cipher_openssl_compat_LDFLAGS = $(LDADD) $(LIBCRYPTO)
--- /dev/null
+#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;
+}