It's in vpninfo now anyway so doesn't need to be passed separately.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
*/
int handle_auth_form(struct openconnect_info *vpninfo, struct oc_auth_form *form,
char *request_body, int req_len, const char **method,
- const char **request_body_type, int xmlpost)
+ const char **request_body_type)
{
int ret;
struct vpn_option *opt, *next;
if (ret)
return ret;
- ret = xmlpost ?
+ ret = vpninfo->xmlpost ?
xmlpost_append_form_opts(vpninfo, form, request_body, req_len) :
append_form_opts(vpninfo, form, request_body, req_len);
if (!ret) {
while (1) {
request_body[0] = 0;
result = handle_auth_form(vpninfo, form, request_body, sizeof(request_body),
- &method, &request_body_type, vpninfo->xmlpost);
+ &method, &request_body_type);
if (result < 0 || result == 1)
goto out;
if (result == 2)
struct oc_auth_form **form, int *cert_rq);
int handle_auth_form(struct openconnect_info *vpninfo, struct oc_auth_form *form,
char *request_body, int req_len, const char **method,
- const char **request_body_type, int xmlpost);
+ const char **request_body_type);
void free_auth_form(struct oc_auth_form *form);
int xmlpost_initial_req(struct openconnect_info *vpninfo, char *request_body, int req_len, int cert_fail);
int prepare_stoken(struct openconnect_info *vpninfo);