diff options
author | Martin Halle <Martin.Halle@tuhh.de> | 2021-04-03 06:42:01 +0200 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2021-04-22 18:28:28 -0400 |
commit | e540b32562a0844e2241b624deb7d9e25ac46b2d (patch) | |
tree | b5e5d17bfde9711a04c3426dc8e7b0161595879e /lib/version.c | |
parent | 67d3afa73f4cdb8a6c473f911c8af800121e0a49 (diff) | |
download | curl-e540b32562a0844e2241b624deb7d9e25ac46b2d.tar.gz |
version: add gsasl_version to curl_version_info_data
- Add gsasl_version string and bump to CURLVERSION_TENTH.
Ref: https://curl.se/mail/lib-2021-04/0003.html
Closes https://github.com/curl/curl/pull/6843
Diffstat (limited to 'lib/version.c')
-rw-r--r-- | lib/version.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/version.c b/lib/version.c index d2c86baac..4b1e7542c 100644 --- a/lib/version.c +++ b/lib/version.c @@ -66,6 +66,10 @@ #include <zstd.h> #endif +#ifdef USE_GSASL +#include <gsasl.h> +#endif + #ifdef HAVE_BROTLI static size_t brotli_version(char *buf, size_t bufsz) { @@ -469,7 +473,8 @@ static curl_version_info_data version_info = { #endif 0, /* zstd_ver_num */ NULL, /* zstd version */ - NULL /* Hyper version */ + NULL, /* Hyper version */ + NULL /* gsasl version */ }; curl_version_info_data *curl_version_info(CURLversion stamp) @@ -573,6 +578,12 @@ curl_version_info_data *curl_version_info(CURLversion stamp) } #endif +#ifdef USE_GSASL + { + version_info.gsasl_version = gsasl_check_version(NULL); + } +#endif + (void)stamp; /* avoid compiler warnings, we don't use this */ return &version_info; } |