File: openssl-version.c

package info (click to toggle)
perl-openssl-defaults 5
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 64 kB
  • sloc: makefile: 21; sh: 18; perl: 15; ansic: 11
file content (14 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <openssl/crypto.h>
#include <stdio.h>

/* trivial program for linking against OpenSSL */

int main (void) {
    const char *version;
  #if OPENSSL_API_COMPAT < 0x10100000L
    version = SSLeay_version(SSLEAY_VERSION);
  #else
    version = OpenSSL_version(OPENSSL_VERSION);
  #endif
    printf("%s\n", version);
}