* = 2, when form indicates that login was already successful
*/
int parse_xml_response(struct openconnect_info *vpninfo, char *response,
- char *request_body, int req_len, char **method,
- char **request_body_type)
+ char *request_body, int req_len, const char **method,
+ const char **request_body_type)
{
struct oc_auth_form *form;
xmlDocPtr xml_doc;
char *form_buf = NULL;
int result, buflen;
char request_body[2048];
- char *request_body_type = NULL;
- char *method = "GET";
+ const char *request_body_type = NULL;
+ const char *method = "GET";
retry:
if (form_buf) {
/* auth.c */
int parse_xml_response(struct openconnect_info *vpninfo, char *response,
- char *request_body, int req_len, char **method,
- char **request_body_type);
+ char *request_body, int req_len, const char **method,
+ const char **request_body_type);
/* http.c */
char *openconnect_create_useragent(char *base);