#include <unistd.h>
#endif
+#include <openssl/opensslv.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/dh.h>
#define ssl_debugdump(x)
#endif
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+#define SSL_METHOD_CONST const
+#else
+#define SSL_METHOD_CONST
+#endif
+
static void ssl_errordump(const char *msg);
static int client_verify_callback(int preverify_ok, X509_STORE_CTX * x509_ctx);
static DH *get_dh1024(void);
SSL_CTX *
ssl_init(void)
{
- SSL_METHOD *meth;
+ SSL_METHOD_CONST SSL_METHOD *meth;
unsigned char context[128];
DH *dh;
unsigned int reps = 1;