• Kevin Cernekee's avatar
    auth: Implement special handling of <select> dropdowns on XML POST · 5c4d37a1
    Kevin Cernekee authored
    Experimentation with the Cisco AnyConnect client showed that the
    following changes need to be made for compatibility:
    
    1) If the "value" attribute is missing from the <option> node, use the
    XML node content instead.  i.e. this should post as
    "<dropdown>vpn</dropdown>":
    
        <select name="dropdown">
          <option>vpn</option>
        </select>
    
    And this should post as "<dropdown>optname</dropdown>":
    
        <select name="dropdown">
          <option value="optname">vpn</option>
        </select>
    
    2) If the name of the <select> node happens to be "group_list", put the
    response in a special <group-select> node right under the <config-auth>
    node, instead of putting it under the <auth> node.  (These strings are
    hardcoded into the Cisco client.)
    Reported-by: default avatarFabian Jäger <fabian.jaeger@chungwasoft.com>
    Signed-off-by: default avatarKevin Cernekee <cernekee@gmail.com>
    Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
    5c4d37a1
Name
Last commit
Last update
.tx Loading commit data...
po Loading commit data...
www Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
Android.mk Loading commit data...
COPYING.LGPL Loading commit data...
Makefile.am Loading commit data...
README.DTLS Loading commit data...
TODO Loading commit data...
acinclude.m4 Loading commit data...
auth.c Loading commit data...
autogen.sh Loading commit data...
compat.c Loading commit data...
configure.ac Loading commit data...
cstp.c Loading commit data...
dtls.c Loading commit data...
gnutls.c Loading commit data...
gnutls.h Loading commit data...
gnutls_pkcs12.c Loading commit data...
gnutls_tpm.c Loading commit data...
http.c Loading commit data...
libopenconnect.map.in Loading commit data...
library.c Loading commit data...
main.c Loading commit data...
mainloop.c Loading commit data...
openconnect-internal.h Loading commit data...
openconnect.8.in Loading commit data...
openconnect.h Loading commit data...
openconnect.pc.in Loading commit data...
openssl.c Loading commit data...
ssl.c Loading commit data...
ssl_ui.c Loading commit data...
tun.c Loading commit data...
version.sh Loading commit data...
xml.c Loading commit data...