0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-19 19:52:15 +02:00
openvpn3/client
Lev Stipakov b4a400f6fe Improve handling of unknown options
Currently we error out on the first unsupported
option which belongs to the "fatal" category, such as
"removed deprecated option" or "Option allowed only to
be pushed by the server".

To improve user experice and allow application code
to display all problematic options and their categories,
collect options into a category->options map and then
serialize it into multiline string:

  cat1: opt1,opt2
  cat2: opt3

Introduce a new error code UNUSED_OPTIONS, which is
placed into ClientAPI::Status::status. The serialized
options map is placed into ClientAPI::Status::message.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2024-02-07 17:03:45 +02:00
..
CMakeLists.txt cmake: create findswigdeps to reduce code duplication 2022-03-16 13:02:19 +01:00
ovpncli.cpp Improve handling of unknown options 2024-02-07 17:03:45 +02:00
ovpncli.hpp dco: check for options/config DCO compatibility 2023-05-08 13:51:34 +03:00
ovpncli.i Add building ovpncli swig library to cmake build 2021-12-15 13:05:14 +01:00