]> git.ipfire.org Git - thirdparty/openvpn.git/commit
options: Cleanup and simplify options_postprocess_verify_ce
authorFrank Lichtenheld <frank@lichtenheld.com>
Tue, 18 Mar 2025 15:53:11 +0000 (16:53 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 18 Mar 2025 16:57:45 +0000 (17:57 +0100)
commitdb48cea4f71005bd40499a4af901b91e4dff0569
tree2b13851278416f4ae1fd43dc48e05e9d31f596f7
parente4beaf7a610793f57984ec8006d26f9a695b0c74
options: Cleanup and simplify options_postprocess_verify_ce

- Reuse the MUST_BE_UNDEF macro in more places
- Add a second parameter so it actually reports the
  correct option name
- Add MUST_BE_FALSE for similar cases
- Reorder the checks for cert/key options to make
  more sense. Some of the checks could have never
  fired due to wrong placement of the management
  checks
- Some other small cleanups like missing spaces
  in multiline string literal

Change-Id: I4f766fa22865eaf4466c31cf55e3d73b00008c38
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20250318155320.32573-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg31155.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c