]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Conditional compilation. Curl might not have TLS
authorAlan T. DeKok <aland@freeradius.org>
Wed, 22 Feb 2012 15:37:26 +0000 (16:37 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 22 Feb 2012 15:48:31 +0000 (16:48 +0100)
src/modules/rlm_rest/rest.c

index 7d0b8d8dba3f23b2eebc032f09c60ed1068fbc58..f42b7dd4097a0840f13a748229ebd442c1f53ab1 100644 (file)
@@ -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
+}