Ver Fonte

dillo: fix compile error

Waldemar Brodkorb há 6 meses atrás
pai
commit
5e464a6da0
1 ficheiros alterados com 14 adições e 0 exclusões
  1. 14 0
      package/dillo/patches/patch-dpi_https_c

+ 14 - 0
package/dillo/patches/patch-dpi_https_c

@@ -0,0 +1,14 @@
+--- dillo-3.0.5.orig/dpi/https.c	2015-06-30 16:06:08.000000000 +0200
++++ dillo-3.0.5/dpi/https.c	2024-03-04 08:18:34.867259406 +0100
+@@ -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;