dillo: fix compile error
[openadk.git] / package / dillo / patches / patch-dpi_https_c
blob90c91198d3096e4adc96e65dcc2d456adc7e9d75
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;