Files
packages/net/wget/patches/900-new-cert-api.patch
Philip Prindeville e885bdab7b wget: use explicit API version levels
Per Doug Freed's review comments.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2026-02-08 16:21:22 -07:00

15 lines
415 B
Diff

--- 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;
+#if OPENSSL_API_LEVEL >= 30000
+ 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"),