Re: patch for dillo and openssl 1.1
Jun Ebihara <jun-MI4+LjHA60zPDbFq/[email protected]>
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Message-ID | <[email protected]> |
NetBSD 8.99.14 contains OpenSSL 1.1.0g 2 Nov 2017.
to support dillo+enableSSL+OpenSSL 1.1.0g,
need this patch for pkgsrc packaging system workaround.
http://mail-index.netbsd.org/pkgsrc-changes/2018/03/24/msg173237.html
+--- dpi/https.c.orig 2015-06-30 14:06:08.000000000 +0000
++++ 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;
--
Jun Ebihara
_______________________________________________
Dillo-dev mailing list
[email protected]
http://lists.dillo.org/cgi-bin/mailman/listinfo/dillo-dev