Skip to content

crypto: misc fixes and improvements to cert handling

Daniel P. Berrangé qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 3 repliesIn review
  2. v26 patches 10 repliesSuperseded
  3. v17 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- Re-ordered patch for fixing error reporting to be near start of series, instead of end
- Add unit test for validating error reporting with incomplete CA chains
- Unit test to validate that an Error is filled on expected failures

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7crypto: only verify CA certs in chain of trustcrypto/tlscredsx509.c tests/unit/test-crypto-tlscredsx509.c+75 -70 replies
2/7crypto: remove extraneous pointer usage in gnutls certscrypto/tlscredsx509.c+6 -60 replies
3/7crypto: validate an error is reported in test expected failstests/unit/test-crypto-tlscredsx509.c+4 -12 replies
4/7crypto: fix error reporting in cert chain checkscrypto/tlscredsx509.c tests/unit/test-crypto-tlscredsx509.c+34 -111 reply
5/7crypto: allow client/server cert chainscrypto/tlscredsx509.c tests/unit/test-crypto-tlscredsx509.c+147 -870 replies
6/7crypto: stop requiring "key encipherment" usage in x509 certscrypto/tlscredsx509.c docs/system/tls.rst tests/unit/crypto-tls-x509-helpers.h +3 more+34 -490 replies
7/7crypto: switch to newer gnutls API for distinguished namecrypto/tlssession.c+3 -90 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchEric BlakeDaniel P. BerrangéPhilippe Mathieu-Daudé
1/7R-b R-b
2/7R-b R-b
3/7R-b R-b
4/7R-b
5/7R-b R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/7] crypto: misc fixes and improvements to cert handling

This series includes three patches that were posted a fairly long time ago. They are borderline between a feature request and a bug fix, but I'm classing them more bug fix, since they addressing issues with cert acceptance that we really should not have had.

The patches by Henry had outstanding comments from myself, and I've chosen to simply fix them in two followup commits of my own now to get this over the line.

The patch from "matoro" was not accepted because they were contributed under a github alias. With our change to have a more relaxed interpretation of the DCO allowing any "known identity", we can now accept this patch. It had some conflicts with Henry's patch which I've fixed up.

Then there is one other small bug fix and one improvement to use a newer gnutls API.

Changed in v3:

- Re-ordered patch for fixing error reporting to be near start of series, instead of end
- Add unit test for validating error reporting with incomplete CA chains
- Unit test to validate that an Error is filled on expected failures

Changed in v2:

- Update to latest upstream

Daniel P. Berrangé (5):
crypto: remove extraneous pointer usage in gnutls certs
crypto: validate an error is reported in test expected fails
crypto: fix error reporting in cert chain checks
crypto: stop requiring "key encipherment" usage in x509 certs
crypto: switch to newer gnutls API for distinguished name

Henry Kleynhans (1):
crypto: only verify CA certs in chain of trust

matoro (1):
crypto: allow client/server cert chains

 crypto/tlscredsx509.c                 | 223 +++++++++++++++-----------
 crypto/tlssession.c                   |  12 +-
 docs/system/tls.rst                   |  13 +-
 tests/unit/crypto-tls-x509-helpers.h  |   6 +-
 tests/unit/test-crypto-tlscredsx509.c | 155 +++++++++++++++---
 tests/unit/test-crypto-tlssession.c   |  14 +-
 tests/unit/test-io-channel-tls.c      |   4 +-
 7 files changed, 280 insertions(+), 147 deletions(-)
Signature · 1 line
2.50.1