diff --git a/icecast/src/auth_url.c b/icecast/src/auth_url.c index c592485..e1321c9 100644 --- a/icecast/src/auth_url.c +++ b/icecast/src/auth_url.c @@ -518,7 +518,9 @@ int auth_get_url_auth (auth_t *authenticator, config_options_t *options) curl_easy_setopt (url_info->handle, CURLOPT_WRITEDATA, url_info->handle); curl_easy_setopt (url_info->handle, CURLOPT_NOSIGNAL, 1L); curl_easy_setopt (url_info->handle, CURLOPT_TIMEOUT, 15L); +#ifdef CURLOPT_PASSWDFUNCTION curl_easy_setopt (url_info->handle, CURLOPT_PASSWDFUNCTION, my_getpass); +#endif curl_easy_setopt (url_info->handle, CURLOPT_ERRORBUFFER, &url_info->errormsg[0]); if (url_info->username && url_info->password)