Ticket #31948: test.cpp

File test.cpp, 326 bytes (added by royliu@…, 13 years ago)

A small test case which should fail without the patch.

Line 
1#include <cstdio>
2#include <openssl/opensslv.h>
3#include <openssl/ssl.h>
4extern "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}