]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
simplify gpst_xml_or_error handling and config parsing
authorDaniel Lenski <dlenski@gmail.com>
Sat, 8 Sep 2018 05:01:58 +0000 (22:01 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Sun, 30 Sep 2018 21:56:41 +0000 (14:56 -0700)
commit227526e3da9f0d9f2b47bd84a3e75584d1ae6825
tree1547ba670b4432b64b5ce59de3d9f179492096d0
parent879e25ad9bec30a331ee9048103e624bf8ca6f3b
simplify gpst_xml_or_error handling and config parsing

* replace GPST-specific xmlnode_get_text() with global xmlnode_get_val(), and make it free existing values (simplifies config loading)
* don't deal with numeric error codes in gpst_xml_or_error, only parsing
* make gpst_xml_or_error take 2 calbacks: one for XML, one for challenge (whether in XML or JavaScript form)
* allow callbacks to take cb_data
* use all this to simplify form handling

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
auth-common.c
auth-globalprotect.c
gpst.c
openconnect-internal.h