wget: use explicit API version levels

Per Doug Freed's review comments.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
This commit is contained in:
Philip Prindeville committed 2026-02-08 16:21:22 -07:00
1 parent 79d6046668
commit e885bdab7b
2 files changed
+2 -2

No files matched your search

+1 -1
View 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)
+1 -1
View 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);