Commit 405325c6 authored by Kevin Cernekee's avatar Kevin Cernekee

auth: Save a pointer to the group_list dropdown option if it exists

This will eventually be used to implement the NEWGROUP feature.
Signed-off-by: default avatarKevin Cernekee <cernekee@gmail.com>
parent c8049618
......@@ -169,6 +169,10 @@ static int parse_auth_choice(struct openconnect_info *vpninfo, struct oc_auth_fo
choice->override_label = (char *)xmlGetProp(xml_node, (unsigned char *)"override-label");
}
if (!strcmp(opt->form.name, "group_list")) {
form->authgroup_opt = opt;
}
/* We link the choice _first_ so it's at the top of what we present
to the user */
opt->form.next = form->opts;
......
......@@ -27,6 +27,8 @@
#ifndef __OPENCONNECT_INTERNAL_H__
#define __OPENCONNECT_INTERNAL_H__
#define __OPENCONNECT_PRIVATE__
#include "openconnect.h"
#if defined(OPENCONNECT_OPENSSL) || defined(DTLS_OPENSSL)
......
......@@ -129,6 +129,9 @@ struct oc_auth_form {
char *method;
char *action;
struct oc_form_opt *opts;
#ifdef __OPENCONNECT_PRIVATE__
struct oc_form_opt_select *authgroup_opt;
#endif
};
/****************************************************************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment