From: Philip Prindeville Date: Fri, 6 Feb 2026 21:08:48 +0000 (-0700) Subject: wget: build against Openssl w/o deprecated API X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=ea3eb6f24ef64f3c30b32aa157830f9b22deae5e;p=openwrt-packages.git wget: build against Openssl w/o deprecated API If you're building against 3.0.0 or later and you've defined OPENSSL_NO_DEPRECATED, this breaks. Signed-off-by: Philip Prindeville --- diff --git a/net/wget/patches/900-new-cert-api.patch b/net/wget/patches/900-new-cert-api.patch new file mode 100644 index 000000000..4758fbe76 --- /dev/null +++ b/net/wget/patches/900-new-cert-api.patch @@ -0,0 +1,14 @@ +--- a/src/openssl.c ++++ b/src/openssl.c +@@ -1044,7 +1044,11 @@ ssl_check_certificate (int fd, const cha + if (opt.check_cert == CHECK_CERT_QUIET && pinsuccess) + return success; + ++#ifdef OPENSSL_NO_DEPRECATED_3_0 ++ cert = SSL_get1_peer_certificate (conn); ++#else + cert = SSL_get_peer_certificate (conn); ++#endif + if (!cert) + { + logprintf (LOG_NOTQUIET, _("%s: No certificate presented by %s.\n"),