termux-packages/packages/serf/ssl_buckets.c.patch
Henrik Grimler 40c4430d82
serf: fix undefined version ERR_GET_FUNC
The function has been removed from openssl 3.  Annoyingly enough the
build of serf doesn't fail even with this function being undefined, it
is just reported as a warning:

buckets/ssl_buckets.c:1329:24: warning: implicit declaration of function 'ERR_GET_FUNC' is invalid in C99 [-Wimplicit-function-declaration]
                       ERR_GET_FUNC(err),
                       ^

but trying to use any program linked against libserf.so later fails.
2022-02-28 10:25:38 +01:00

13 lines
521 B
Diff

--- ../ssl_buckets.c.orig 2022-02-28 10:07:45.179525952 +0100
+++ ./buckets/ssl_buckets.c 2022-02-28 10:21:21.360065552 +0100
@@ -1325,8 +1325,7 @@
return 0;
}
else {
- printf("OpenSSL cert error: %d %d %d\n", ERR_GET_LIB(err),
- ERR_GET_FUNC(err),
+ printf("OpenSSL cert error: %d %d\n", ERR_GET_LIB(err),
ERR_GET_REASON(err));
PKCS12_free(p12);
bio_meth_free(biom);