summaryrefslogtreecommitdiff
path: root/libcrypto/tests/basic/driver.c
blob: d398269f6629d853776e51b74ee2f850b1eeacd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
}