zeek/auxil/broker/caf/cmake/openssl-check.cpp
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

15 lines
296 B
C++

#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;
}