]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add a unit test for functions in cryptoapi.c
authorSelva Nair <selva.nair@gmail.com>
Tue, 14 Feb 2023 20:08:04 +0000 (15:08 -0500)
committerGert Doering <gert@greenie.muc.de>
Sat, 25 Feb 2023 16:09:27 +0000 (17:09 +0100)
commit8aff5655a51d9f9f67ca31b363d4ebaf5342d410
tree35d0fbe74956600f263e5cf04f02a59552b7ba66
parent5b748ad099ed69b893124e2805b5ddeb6b0ec8fc
Add a unit test for functions in cryptoapi.c

- Though named cryptoapi_testdriver, right now this only tests
  parsing of thumbprint specified as a selector for --cryptioapicert
  option. More tests coming..

v2: a line that belongs here was mistakenly included in the previous
commit. Corrected.
v3: add to list of tests run in github actions
v4: - correct comment above invalid strings (copy paste error)
    - make invalid strings differ from correct value only in the
      explicitly introduced invalid characters/separators (one had
      two distinct errors which is not a robust test).

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20230214200804.600405-1-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26268.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
.github/workflows/build.yaml
tests/unit_tests/openvpn/Makefile.am
tests/unit_tests/openvpn/test_cryptoapi.c [new file with mode: 0644]