-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtestit.cc
More file actions
27 lines (24 loc) · 852 Bytes
/
testit.cc
File metadata and controls
27 lines (24 loc) · 852 Bytes
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
26
27
#include <openssl/opensslv.h>
#include <openssl/crypto.h>
#include <curl/curl.h>
#include <apr_version.h>
#include <jansson.h>
#include <apu_version.h>
int main(int argc, char* argv[])
{
static char s[4096];
snprintf(s, sizeof(s),
"cURL compiled: \"%s\" loaded: \"%s\"; \n\n"
"OpenSSL compiled: \"%s\" loaded: \"%s\" (\"%s\");\n\n"
"APR compiled: \"%s\" loaded: \"%s\"; \n\n"
"APR-UTIL compiled: \"%s\" loaded: \"%s\"; \n\n"
"jansson compiled: \"%s\"",
LIBCURL_VERSION, curl_version(),
OPENSSL_VERSION_TEXT, OpenSSL_version(OPENSSL_VERSION), OpenSSL_version(OPENSSL_CFLAGS),
APR_VERSION_STRING, apr_version_string(),
APU_VERSION_STRING, apu_version_string(),
JANSSON_VERSION
);
printf("%s\n", s);
return 0;
}