1
0
Fork 0
mirror of https://github.com/kakwa/uts-server synced 2025-07-04 04:27:05 +02:00

adding a few #define to handle multiple openssl API version

This commit is contained in:
kakwa 2016-12-04 13:38:09 +01:00
parent 86ece83f51
commit 5384ccd45e
2 changed files with 31 additions and 0 deletions

View file

@ -11,6 +11,17 @@
#include <stdlib.h>
#include <string.h>
#include <sys/syslog.h>
#include <openssl/opensslv.h>
#if OPENSSL_VERSION_NUMBER < 0x10000000L
#error OpenSSL version too old
#endif
#if OPENSSL_VERSION_NUMBER < 0x10100000L && OPENSSL_VERSION_NUMBER >= 0x10000000L
#define OPENSSL_API_1_0
#endif
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
#define OPENSSL_API_1_1
#endif
/* Name of config entry that defines the OID file. */
#define OID_SECTION "oids"