psl: require libpsl 0.16.0 (2016-12-10) or greater

Debian Stretch offers 0.17.0.

Ref: https://github.com/rockdaboot/libpsl/releases/tag/libpsl-0.16.0
Ref: https://sources.debian.org/src/libpsl/

Closes #21933
This commit is contained in:
Viktor Szakats 2026-06-09 14:02:32 +02:00
parent 62b118cf22
commit e37417e021
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View file

@ -29,6 +29,10 @@
#include "progress.h"
#include "curl_share.h"
#if !defined(PSL_VERSION_NUMBER) || PSL_VERSION_NUMBER < 0x001000
#error "libpsl 0.16.0 or greater required"
#endif
void Curl_psl_destroy(struct PslCache *pslcache)
{
if(pslcache->psl) {
@ -65,7 +69,6 @@ const psl_ctx_t *Curl_psl_use(struct Curl_easy *easy)
bool dynamic = FALSE;
time_t expires = TIME_T_MAX;
#if defined(PSL_VERSION_NUMBER) && PSL_VERSION_NUMBER >= 0x001000
psl = psl_latest(NULL);
dynamic = psl != NULL;
/* Take care of possible time computation overflow. */
@ -74,8 +77,6 @@ const psl_ctx_t *Curl_psl_use(struct Curl_easy *easy)
/* Only get the built-in PSL if we do not already have the "latest". */
if(!psl && !pslcache->dynamic)
#endif
psl = psl_builtin();
if(psl) {