patch-dpi_https_c 648 B

1234567891011121314
  1. --- dillo-3.0.5.orig/dpi/https.c 2015-06-30 16:06:08.000000000 +0200
  2. +++ dillo-3.0.5/dpi/https.c 2024-03-04 08:18:34.867259406 +0100
  3. @@ -476,7 +476,11 @@ static int handle_certificate_problem(SS
  4. case X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT:
  5. /*Either self signed and untrusted*/
  6. /*Extract CN from certificate name information*/
  7. +#if OPENSSL_VERSION_NUMBER < 0x10100000L
  8. if ((cn = strstr(remote_cert->name, "/CN=")) == NULL) {
  9. +#else
  10. + if ((cn = strstr(X509_get_subject_name(remote_cert), "/CN=")) == NULL) {
  11. +#endif
  12. strcpy(buf, "(no CN given)");
  13. } else {
  14. char *cn_end;