Ticket #35808: vbox-ssl-configure.cc
File vbox-ssl-configure.cc, 380 bytes (added by anddam (Andrea D'Amore), 12 years ago) |
---|
Line | |
---|---|
1 | #include <cstdio> |
2 | #include <openssl/opensslv.h> |
3 | #include <openssl/ssl.h> |
4 | extern "C" int main(void) |
5 | { |
6 | printf("found version %s", OPENSSL_VERSION_TEXT); |
7 | SSL_library_init(); |
8 | #if OPENSSL_VERSION_NUMBER >= 0x00908000 |
9 | printf(", OK.\n"); |
10 | return 0; |
11 | #else |
12 | printf(", expected version 0.9.8 or higher\n"); |
13 | return 1; |
14 | #endif |
15 | } |