Commit 760beff4 authored by Daniel Lenski's avatar Daniel Lenski

include openconnect_get_protocol method for completeness

parent 65de0379
......@@ -94,6 +94,7 @@ OPENCONNECT_5_4 {
OPENCONNECT_5_5 {
global:
openconnect_get_protocol;
openconnect_get_supported_protocols;
openconnect_free_supported_protocols;
} OPENCONNECT_5_4;
......
......@@ -189,6 +189,11 @@ void openconnect_free_supported_protocols(struct oc_vpn_proto *protos)
free((void *)protos);
}
const char *openconnect_get_protocol(struct openconnect_info *vpninfo)
{
return vpninfo->proto->name;
}
int openconnect_set_protocol(struct openconnect_info *vpninfo, const char *protocol)
{
const struct vpn_proto *p;
......
......@@ -39,6 +39,7 @@ extern "C" {
* API version 5.5:
* - Add openconnect_get_supported_protocols()
* - Add openconnect_free_supported_protocols()
* - Add openconnect_get_protocol()
*
* API version 5.4 (v7.08; 2016-12-13):
* - Add openconnect_set_pass_tos()
......@@ -664,6 +665,7 @@ int openconnect_has_system_key_support(void);
/* Query and select from among supported protocols */
int openconnect_get_supported_protocols(struct oc_vpn_proto **protos);
void openconnect_free_supported_protocols(struct oc_vpn_proto *protos);
const char *openconnect_get_protocol(struct openconnect_info *vpninfo);
int openconnect_set_protocol(struct openconnect_info *vpninfo, const char *protocol);
struct addrinfo;
......
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