Skip to content

Commit

Permalink
version: show only the libpsl version, not its dependencies
Browse files Browse the repository at this point in the history
The libpsl version output otherwise also includes version number for its
dependencies, like IDN lib, but since libcurl does not use libpsl's IDN
functionality those components are not important.

Ref: curl/curl-for-win#63
Closes curl#12700
  • Loading branch information
bagder committed Jan 14, 2024
1 parent e3b386f commit 72bd88a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,12 @@ char *curl_version(void)
#endif

#ifdef USE_LIBPSL
msnprintf(psl_version, sizeof(psl_version), "libpsl/%s", psl_get_version());
src[i++] = psl_version;
{
int num = psl_check_version_number(0);
msnprintf(psl_version, sizeof(psl_version), "libpsl/%d.%d.%d",
num >> 16, (num >> 8) & 0xff, num & 0xff);
src[i++] = psl_version;
}
#endif

#ifdef USE_SSH
Expand Down

0 comments on commit 72bd88a

Please sign in to comment.