rename CLI options containing 'dtls' to 'udp', and 'csd' to 'trojan' where applicable
Many of the CLI options with 'dtls' in the string are in fact applicable to
all protocols' UDP transports. Likewise for 'csd' options, which are
applicable to all protocols' Trojan binary/script execution.
This patch renames all of the options, but retains the old names as
redundant/duplicate options for backwards-compatibility.
Signed-off-by: Daniel Lenski <email address hidden>
rename numerous internal variable names to be protocol-agnostic and general
Rename a large number of internal state variables to make them less
Cisco-specific, and more protocol-agnostic, where applicable. The goal is
to make some of the internal data structures easier to communicate and
understand for new developers/debuggers who may be unfamiliar with the
idiosyncracies' of OpenConnect's internal naming.
IMPORTANT: The names of functions in the libopenconnect API are NOT modified
here, although they might at some point benefit from a similar treatment.
- None of the variables with the prefix cstp_ are actually specific to
the Cisco SSL tunnel protocol (CSTP). They are generally-applicable
to SSL/TLS-based tunnels, or to a complete protocol implementation:
- oncp_control_queue → outgoing_ssl_queue (this is used by both
oNCP and Pulse protocols, and will probably be used by PPP-based
protocols in the future)
Signed-off-by: Daniel Lenski <email address hidden>
more logging around Trojan script invocation (CSD/HIP/TNCC)
See #203 for a recent example of where it wasn't clear that a problem was
caused by a CSD script being invoked and never returning, due to the lack of
logging.
Signed-off-by: Daniel Lenski <email address hidden>