pluto and scepclient use the curl and ldap fetcher plugins
This commit is contained in:
@@ -45,6 +45,18 @@ enum fetcher_option_t {
|
||||
*/
|
||||
FETCH_REQUEST_TYPE,
|
||||
|
||||
/**
|
||||
* HTTP header to be sent with with the fetch request.
|
||||
* Additional argument is a char*.
|
||||
*/
|
||||
FETCH_REQUEST_HEADER,
|
||||
|
||||
/**
|
||||
* Use HTTP Version 1.0 instead of 1.1.
|
||||
* No additional argument is needed.
|
||||
*/
|
||||
FETCH_HTTP_VERSION_1_0,
|
||||
|
||||
/**
|
||||
* Timeout to use for fetch, in seconds.
|
||||
* Additional argument is u_int
|
||||
|
||||
@@ -101,8 +101,12 @@ static status_t fetch(private_fetcher_manager_t *this,
|
||||
good = fetcher->set_option(fetcher, opt, va_arg(args, chunk_t));
|
||||
continue;
|
||||
case FETCH_REQUEST_TYPE:
|
||||
case FETCH_REQUEST_HEADER:
|
||||
good = fetcher->set_option(fetcher, opt, va_arg(args, char*));
|
||||
continue;
|
||||
case FETCH_HTTP_VERSION_1_0:
|
||||
good = fetcher->set_option(fetcher, opt);
|
||||
continue;
|
||||
case FETCH_TIMEOUT:
|
||||
good = fetcher->set_option(fetcher, opt, va_arg(args, u_int));
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user