Re: [PATCH v3 1/9] tests: fix encoding of IP addresses in x509 certs

2022-04-28 Thread Dr. David Alan Gilbert
* Daniel P. Berrangé (berra...@redhat.com) wrote: > We need to encode just the address bytes, not the whole struct sockaddr > data. Add a test case to validate that we're matching on SAN IP > addresses correctly. Lets see: > Signed-off-by: Daniel P. Berrangé > --- > tests/unit/crypto-tls-x509-he

[PATCH v3 1/9] tests: fix encoding of IP addresses in x509 certs

2022-04-26 Thread Daniel P . Berrangé
We need to encode just the address bytes, not the whole struct sockaddr data. Add a test case to validate that we're matching on SAN IP addresses correctly. Signed-off-by: Daniel P. Berrangé --- tests/unit/crypto-tls-x509-helpers.c | 16 +--- tests/unit/test-crypto-tlssession.c | 11