summaryrefslogtreecommitdiff
path: root/package/dillo/patches
diff options
context:
space:
mode:
Diffstat (limited to 'package/dillo/patches')
-rw-r--r--package/dillo/patches/patch-dpi_https_c14
-rw-r--r--package/dillo/patches/patch-src_decode_c11
2 files changed, 25 insertions, 0 deletions
diff --git a/package/dillo/patches/patch-dpi_https_c b/package/dillo/patches/patch-dpi_https_c
new file mode 100644
index 000000000..90c91198d
--- /dev/null
+++ b/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;
diff --git a/package/dillo/patches/patch-src_decode_c b/package/dillo/patches/patch-src_decode_c
new file mode 100644
index 000000000..012903a25
--- /dev/null
+++ b/package/dillo/patches/patch-src_decode_c
@@ -0,0 +1,11 @@
+--- dillo-3.2.0.orig/src/decode.c 2024-10-23 22:26:03.000000000 +0200
++++ dillo-3.2.0/src/decode.c 2025-08-17 08:44:05.687194623 +0200
+@@ -373,7 +373,7 @@ Decode *a_Decode_charset_init(const char
+ iconv_t ic = iconv_open("UTF-8", format);
+ if (ic != (iconv_t) -1) {
+ dc = dNew(Decode, 1);
+- dc->state = ic;
++ dc->state = (void *)ic;
+ dc->buffer = dNew(char, bufsize);
+ dc->leftover = dStr_new("");
+