1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-19 01:27:07 +00:00
termux-packages/packages/openssl-1.1/apps-ocsp.c.patch
Yaksh Bariya 0608868e17 openssl: update to 3.0.1
Changes made:-
- OpenSSL has been updates to 3.0.1
- `openssl-1.1` package has been added for packages still needing the
  legacy version.

Any package that still needs legacy openssl-1.1 needs some extra CFLAGS,
CXXFLAGS, LDFLAGS and CPPFLAGS

CFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CFLAGS"
CXXFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CXXFLAGS"
CPPFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CPPFLAGS"
LDFLAGS="-L$TERMUX_PREFIX/lib/openssl-1.1 $LDFLAGS"

Additionally if the package by itself adds `-I$prefix/include` or
similar, it needs to be patched not to do so in order to prevent it from
using OpenSSL 3 headers

Similarly for LDFLAGS, make sure that package doesn't add
`-L$prefix/lib` and `-Wl,-rpath=$prefix/lib` before OpenSSL 1.1 LDFLAGS
nentioned above or else it will cause compilation errors
2022-02-26 04:25:43 +00:00

12 lines
380 B
Diff

diff -u -r ../openssl-1.1.1g/apps/ocsp.c ./apps/ocsp.c
--- ../openssl-1.1.1g/apps/ocsp.c 2020-04-21 12:22:39.000000000 +0000
+++ ./apps/ocsp.c 2020-04-28 22:42:57.312189000 +0000
@@ -48,6 +48,7 @@
#endif
#if !defined(NO_FORK) && !defined(OPENSSL_NO_SOCK) \
+ && !defined(__ANDROID__) \
&& !defined(OPENSSL_NO_POSIX_IO)
# define OCSP_DAEMON
# include <sys/types.h>