diff --git a/ChangeLog b/ChangeLog index 62da5c3c..01798920 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +11/22/2023 +- populate User-Agent header in outgoing HTTP requests with mod_auth_openidc, libcurl and OpenSSL + version information and log it for debugging purposes +- bump to 2.4.15rc5 + 11/08/2023 - improve error message in case of curl timeouts - bump to 2.4.15rc4 diff --git a/configure.ac b/configure.ac index 2dc82613..45f6b7d1 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([mod_auth_openidc],[2.4.15rc4],[hans.zandbelt@openidc.com]) +AC_INIT([mod_auth_openidc],[2.4.15rc5],[hans.zandbelt@openidc.com]) AC_SUBST(NAMEVER, AC_PACKAGE_TARNAME()-AC_PACKAGE_VERSION()) diff --git a/src/util.c b/src/util.c index d6ba5e32..631bd7f0 100644 --- a/src/util.c +++ b/src/util.c @@ -1141,7 +1141,10 @@ static apr_byte_t oidc_util_http_call(request_rec *r, const char *url, #endif /* identify this HTTP client */ - curl_easy_setopt(curl, CURLOPT_USERAGENT, "mod_auth_openidc"); + char *useragent = apr_psprintf(r->pool, "%s libcurl-%s %s", NAMEVERSION, + LIBCURL_VERSION, OPENSSL_VERSION_TEXT); + oidc_debug(r, "set HTTP request header User-Agent to: %s", useragent); + curl_easy_setopt(curl, CURLOPT_USERAGENT, useragent); /* set optional outgoing proxy for the local network */ if (outgoing_proxy->host_port) {