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
This commit is contained in:
Martin Halle 2021-04-03 06:42:01 +02:00 committed by Jay Satiro
parent 67d3afa73f
commit e540b32562
6 changed files with 32 additions and 5 deletions

View file

@ -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;
}