summaryrefslogtreecommitdiff
path: root/libcrypto/tests/basic/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrypto/tests/basic/driver.c')
-rw-r--r--libcrypto/tests/basic/driver.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/libcrypto/tests/basic/driver.c b/libcrypto/tests/basic/driver.c
new file mode 100644
index 0000000..d398269
--- /dev/null
+++ b/libcrypto/tests/basic/driver.c
@@ -0,0 +1,25 @@
+/*
+ * file : tests/basic/driver.c
+ * copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC
+ * license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file
+ */
+
+#include <stdio.h>
+#include <assert.h>
+
+#include <openssl/crypto.h>
+
+int
+main ()
+{
+ assert (OPENSSL_init_crypto (0 /* opts */, NULL /* settings */) == 1);
+
+ printf ("version: %s\n", OpenSSL_version (OPENSSL_VERSION));
+ printf ("%s\n", OpenSSL_version (OPENSSL_BUILT_ON));
+ printf ("%s\n", OpenSSL_version (OPENSSL_PLATFORM));
+ printf ("%s\n", OpenSSL_version (OPENSSL_CFLAGS));
+ printf ("%s\n", OpenSSL_version (OPENSSL_DIR));
+ printf ("%s\n", OpenSSL_version (OPENSSL_ENGINES_DIR));
+
+ return 0;
+}