Add some tests for cryptoapi.c functions
Get series with b4
b4 am [email protected]...Versions newest first
- v1 Latest4 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | Import some sample certificates into Windows store for testingtests/ tests/ | +324 | 3 replies | |
| 2/4 | Add tests for finding certificates in Windows cert storetests/ | +102 | 1 reply | |
| 3/4 | Refactor SSL_CTX_use_CryptoAPI_certificate()src/ | +41 | 1 reply | |
| 4/4 | Add a test for signing with certificates in Windows storetests/ tests/ | +167 | 1 reply |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Gert Doering |
|---|---|
| 1/4 | A-b |
| 2/4 | A-b |
| 3/4 | A-b |
| 4/4 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Openvpn-devel] [PATCH 0/4] Add some tests for cryptoapi.c functions
From: Selva Nair <[email protected]...>
Import some sample certificates into Windows store for testing
- 4 test certificates&keys imported to user store and removed at the end.
Add tests for finding certificates in Windows certficate store
- test using SUBJ:, THUMB: and ISSUER: select-strings
Refactor SSL_CTX_use_CryptoAPI_certificate()
- A minor reorganization avoids wrapping for the next test
Add a test for signing with certificates in Windows store
- Test loading keys into xkey-provider and sign a test message. The signature is then verified using OpenSSL.
Sample output the test runs:
https://github.com/selvanair/openvpn/actions/runs/4418774866/jobs/7746404938#step:8:1
src/openvpn/cryptoapi.c | 63 ++-- tests/unit_tests/openvpn/Makefile.am | 1 + tests/unit_tests/openvpn/cert_data.h | 166 +++++++++ tests/unit_tests/openvpn/test_cryptoapi.c | 429 +++++++++++++++++++++- 4 files changed, 635 insertions(+), 24 deletions(-) create mode 100644 tests/unit_tests/openvpn/cert_data.h
Signature · 1 line
2.34.1