Line
Link Here
|
0 |
-- a/configure |
0 |
++ b/configure |
Lines 6018-6028
cat confdefs.h - <<_ACEOF >conftest.$ac_
Link Here
|
6018 |
#ifdef __cplusplus |
6018 |
#ifdef __cplusplus |
6019 |
extern "C" |
6019 |
extern "C" |
6020 |
#endif |
6020 |
#endif |
6021 |
char SSL_library_init (); |
6021 |
void OPENSSL_config (); |
6022 |
int |
6022 |
int |
6023 |
main () |
6023 |
main () |
6024 |
{ |
6024 |
{ |
6025 |
return SSL_library_init (); |
6025 |
OPENSSL_config (); |
6026 |
; |
6026 |
; |
6027 |
return 0; |
6027 |
return 0; |
6028 |
} |
6028 |
} |
6029 |
-- a/dpi/https.c.orig |
6029 |
++ b/dpi/https.c |
Lines 476-482
static int handle_certificate_problem(SS
Link Here
|
476 |
case X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT: |
476 |
case X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT: |
477 |
/*Either self signed and untrusted*/ |
477 |
/*Either self signed and untrusted*/ |
478 |
/*Extract CN from certificate name information*/ |
478 |
/*Extract CN from certificate name information*/ |
|
|
479 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L |
479 |
if ((cn = strstr(remote_cert->name, "/CN=")) == NULL) { |
480 |
if ((cn = strstr(remote_cert->name, "/CN=")) == NULL) { |
|
|
481 |
#else |
482 |
if ((cn = strstr(X509_get_subject_name(remote_cert), "/CN=")) == NULL) { |
483 |
#endif |
480 |
strcpy(buf, "(no CN given)"); |
484 |
strcpy(buf, "(no CN given)"); |
481 |
} else { |
485 |
} else { |
482 |
char *cn_end; |
486 |
char *cn_end; |