]> git.ipfire.org Git - people/ms/strongswan.git/commit
libtls: Enforce client/server identity when looking for public key
authorTobias Brunner <tobias@strongswan.org>
Wed, 2 Feb 2022 17:39:20 +0000 (18:39 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 15 Feb 2022 15:53:25 +0000 (16:53 +0100)
commite4b4aabc4996fc61c37deab7858d07bc4d220136
tree36e83246a9986c40498c796dc8d137a33cc7741e
parent3f7d40d3b5de3e7910d2fa00bf6b383f40ac6fa0
libtls: Enforce client/server identity when looking for public key

The client already enforces that the server identity is contained in the
received certificate.  But on the server, the referenced commit changed
the lookup from the configured (or adopted if %any was configured) client
identity to the subject DN of the received client certificate.  So any
client with a trusted certificate was accepted.

Fixes: d2fc9b0961c6 ("tls-server: Mutual authentication support for TLS 1.3")
Closes strongswan/strongswan#873
src/libtls/tls_peer.c
src/libtls/tls_server.c