From: Alan T. DeKok Date: Wed, 22 Feb 2012 15:37:26 +0000 (+0100) Subject: Conditional compilation. Curl might not have TLS X-Git-Tag: release_3_0_0_beta0~293 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bcc6e301330e4bafd67560833a4a410dc733f13;p=thirdparty%2Ffreeradius-server.git Conditional compilation. Curl might not have TLS --- diff --git a/src/modules/rlm_rest/rest.c b/src/modules/rlm_rest/rest.c index 7d0b8d8dba3..f42b7dd4097 100644 --- a/src/modules/rlm_rest/rest.c +++ b/src/modules/rlm_rest/rest.c @@ -2001,6 +2001,8 @@ int rest_request_config(rlm_rest_t *instance, rlm_rest_section_t *section, buffer); if (ret != CURLE_OK) goto error; } + +#ifdef CURLOPT_TLSAUTH_USERNAME } else if (type == HTTP_AUTH_TLS_SRP) { ret = curl_easy_setopt(candle, CURLOPT_TLSAUTH_TYPE, http_curl_auth[auth]); @@ -2023,7 +2025,7 @@ int rest_request_config(rlm_rest_t *instance, rlm_rest_section_t *section, buffer); if (ret != CURLE_OK) goto error; } - +#endif } } @@ -2379,4 +2381,4 @@ ssize_t rest_uri_build(rlm_rest_t *instance, rlm_rest_section_t *section, rest_uri_escape); return (buffer - out); -} \ No newline at end of file +}