[Privoxy-devel] Can not compile with openssl 1.0.2

Hớ Hờ Hợ kjllmeplz at gmail.com
Mon Sep 21 17:37:05 UTC 2020


Thank you for looking into this problem for me. I managed to compile when
applying your patch and modify it like below.
#ifdef _WIN32
#  include <wincrypt.h>
#  undef X509_NAME
#  undef X509_EXTENSIONS
#endif

The reason i want to use openssl 1.0.2 because that's latest version on
cygwin.
And when using openssl 1.1.1 (compile on msys2) to enable https inspection
on privoxy, some websites: imgur.com, twitch.tv, msys2.org.. can't load all
data. It's not happen when using mbedtls.
I don't know if it's because of openssl 1.1.1 or not.


Vào Th 2, 21 thg 9, 2020 vào lúc 20:56 Fabian Keil <fk at fabiankeil.de> đã
viết:

> Hớ Hờ Hợ <kjllmeplz at gmail.com> wrote:
>
> > Hi, I tried to compile privoxy with openssl ver 1.0.2 on cygwin and msys2
> > in windows 10. But, i got this error:
> > x86_64-w64-mingw32-gcc -c -pipe -O2 -Wshadow -DWINVER=0x501   -mwindows
> > -Wall -Ipcre  openssl.c -o openssl.o
> > In file included from
> > P:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:95,
> >                  from project.h:62,
> >                  from openssl.c:42:
> > P:/msys64/mingw64/include/openssl/ssl.h:1611:5: error: expected
> > specifier-qualifier-list before '(' token
> >  1611 |     X509_EXTENSIONS *tlsext_ocsp_exts;
> >       |     ^~~~~~~~~~~~~~~
>
> Does the attached untested patch help?
>
> > openssl ver 1.1.1 seem to work fine.
>
> Any reason to use 1.0.2 if a more recent version works?
>
> The main reason I added support for 1.0.2 is that it's
> included in the base system of FreeBSD and thus covered
> by the "special exception" from section 3 of the GPLv2.
>
> For Windows users I don't see an obvious benefit to stick
> with 1.0.2.
>
> Fabian
> _______________________________________________
> Privoxy-devel mailing list
> Privoxy-devel at lists.privoxy.org
> https://lists.privoxy.org/mailman/listinfo/privoxy-devel
>


More information about the Privoxy-devel mailing list