1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00
ladybird/Libraries/LibTLS
devgianlu 0fc02d4d00 LibCrypto: Make PKSystem methods return a ByteBuffer directly
It used to be that the caller would supply a buffer to write the output
to. This created an anti-pattern in multiple places where the caller
would allocate a `ByteBuffer` and then use `.bytes()` to provide it to
the `PKSystem` method. Then the callee would resize the output buffer
and reassign it, but because the resize was on `Bytes` and not on
`ByteBuffer`, the caller using the latter would cause a bug.

Additionally, in pretty much all cases the buffer was pre-allocated
shortly before.
2025-01-13 17:00:18 +01:00
..
CipherSuite.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
CMakeLists.txt Meta: Make pthread and mman available for all libraries on Windows 2024-12-18 05:55:58 +01:00
Extensions.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Handshake.cpp LibTLS: Use Crypto::fill_with_secure_random instead of PRNG 2024-12-24 17:54:52 +01:00
HandshakeCertificate.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
HandshakeClient.cpp LibCrypto: Make PKSystem methods return a ByteBuffer directly 2025-01-13 17:00:18 +01:00
HandshakeServer.cpp LibCrypto: Make PKSystem methods return a ByteBuffer directly 2025-01-13 17:00:18 +01:00
Record.cpp LibTLS: Use Crypto::fill_with_secure_random instead of PRNG 2024-12-24 17:54:52 +01:00
Socket.cpp LibTLS: Change connection state to disconnected after server CloseNotify 2024-11-24 22:33:58 +01:00
TLSPacketBuilder.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
TLSv12.cpp LibCrypto: Make PKSystem methods return a ByteBuffer directly 2025-01-13 17:00:18 +01:00
TLSv12.h Everywhere: Run clang-format 2024-12-28 05:39:32 -08:00