ladybird/Userland/Libraries/LibTLS
Michiel Visser d78813d902 LibTLS: Simplify the way verify_chain is called
The `build_rsa_pre_master_secret` function originally called
`verify_chain_and_get_matching_certificate`, which verified the chain
and returned a certificate matching the specified hostname.

Since the first certificate in the chain should always be the one
matching with the hostname, we can simply use that one instead. This
means we can completely remove this method and just use `verify_chain`.

To make sure the hostname is still verified, `verify_chain` now also
checks that the first certificate in the chain matches the specified
hostname. If the hostname is empty, we currently fail the verification,
however this basically never happen, as the server name indication
extension is always used.
2022-04-17 10:10:19 +04:30
..
Certificate.cpp LibTLS: Verify the certificate chain sent by the server 2022-04-17 10:10:19 +04:30
Certificate.h LibTLS: Verify the certificate chain sent by the server 2022-04-17 10:10:19 +04:30
CipherSuite.h LibCrypto+LibTLS: Generalize the elliptic curve interface 2022-03-20 00:51:50 +03:30
CMakeLists.txt LibTLS: Rework method names and arrangement in cpp files 2021-05-19 09:18:45 +02:00
Handshake.cpp LibTLS: Verify the certificate chain sent by the server 2022-04-17 10:10:19 +04:30
HandshakeCertificate.cpp LibTLS: Verify the certificate chain sent by the server 2022-04-17 10:10:19 +04:30
HandshakeClient.cpp LibTLS: Simplify the way verify_chain is called 2022-04-17 10:10:19 +04:30
HandshakeServer.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
Record.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
Socket.cpp LibCore+Everywhere: Make Core::Stream::read() return Bytes 2022-04-16 13:27:51 -04:00
TLSPacketBuilder.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
TLSv12.cpp LibTLS: Simplify the way verify_chain is called 2022-04-17 10:10:19 +04:30
TLSv12.h LibTLS: Simplify the way verify_chain is called 2022-04-17 10:10:19 +04:30