--- a/configure +++ b/configure @@ -6018,11 +6018,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ #ifdef __cplusplus extern "C" #endif -char SSL_library_init (); +void OPENSSL_config (); int main () { -return SSL_library_init (); +OPENSSL_config (); ; return 0; } --- a/dpi/https.c.orig +++ b/dpi/https.c @@ -476,7 +476,11 @@ static int handle_certificate_problem(SS case X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT: /*Either self signed and untrusted*/ /*Extract CN from certificate name information*/ +#if OPENSSL_VERSION_NUMBER < 0x10100000L if ((cn = strstr(remote_cert->name, "/CN=")) == NULL) { +#else + if ((cn = strstr(X509_get_subject_name(remote_cert), "/CN=")) == NULL) { +#endif strcpy(buf, "(no CN given)"); } else { char *cn_end;