The first creates a public API function, openconnect_get_supported_protocols(). The second patch uses this function to show protocol support in the version and usage messages. $ openconnect -V OpenConnect version v7.07-248-g367268c-dirty Using GnuTLS. Features present: PKCS#11, RSA software token, HOTP software token, TOTP software token, Yubikey OATH, System keys, DTLS, ESP Supported protocols: anyconnect (default), nc, gp $ openconnect --help ... Set VPN protocol: --protocol=anyconnect Cisco AnyConnect or ocserv (default) --protocol=nc Juniper Network Connect (also supported by Junos Pulse servers) --protocol=gp Palo Alto Networks' GlobalProtect Dan Lenski (1): enumerate supported VPN protocols via openconnect_get_supported_protocols() Daniel Lenski (1): list supported protocols in --version or --help output, using API functions libopenconnect.map.in | 5 +++++ library.c | 23 +++++++++++++++++++++++ main.c | 46 ++++++++++++++++++++++++++++++++++++++++++---- openconnect-internal.h | 1 + openconnect.h | 17 +++++++++++++++++ 5 files changed, 88 insertions(+), 4 deletions(-) -- 2.7.4