File: openssl-check.cpp

package info (click to toggle)
actor-framework 0.17.6-3.2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 9,008 kB
  • sloc: cpp: 77,684; sh: 674; python: 309; makefile: 13
file content (14 lines) | stat: -rw-r--r-- 296 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <openssl/crypto.h>
#include <openssl/opensslv.h>

#include <cstdio>
#include <cstdlib>

int main() {
  long have = SSLeay();
  long want = OPENSSL_VERSION_NUMBER;
  printf("have OpenSSL %lx, want %lx\n", have, want);
  if (have == want)
    return EXIT_SUCCESS;
  return EXIT_FAILURE;
}