wget: use explicit API version levels
authorPhilip Prindeville <philipp@redfish-solutions.com>
Sun, 8 Feb 2026 20:42:32 +0000 (13:42 -0700)
committerPhilip Prindeville <philipp@redfish-solutions.com>
Sun, 8 Feb 2026 23:21:22 +0000 (16:21 -0700)
Per Doug Freed's review comments.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
net/wget/Makefile
net/wget/patches/900-new-cert-api.patch

index 5f36771300d927d3d58acc9db4808974055a5339..e39a62f5f95edc92c8f8fe65ad0a4e5125e62120 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=wget
 PKG_VERSION:=1.25.0
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
index 4758fbe765ba69fd9240c540613966d9eb215c32..643f7cab632609c00e4c06849fa9048dc7c606d2 100644 (file)
@@ -4,7 +4,7 @@
    if (opt.check_cert == CHECK_CERT_QUIET && pinsuccess)
      return success;
  
-+#ifdef OPENSSL_NO_DEPRECATED_3_0
++#if OPENSSL_API_LEVEL >= 30000
 +  cert = SSL_get1_peer_certificate (conn);
 +#else
    cert = SSL_get_peer_certificate (conn);