Andreas Kling
a15ed8743d
AK: Make ByteBuffer::try_* functions return ErrorOr<void>
...
Same as Vector, ByteBuffer now also signals allocation failure by
returning an ENOMEM Error instead of a bool, allowing us to use the
TRY() and MUST() patterns.
2021-11-10 21:58:58 +01:00
Ali Mohammad Pur
436693c0c9
LibTLS: Use a setter for on_tls_ready_to_write with some more smarts
...
The callback should be called as soon as the connection is established,
and if we actually set the callback when it already is, we expect it to
be called immediately.
2021-09-19 21:10:23 +04:30
Ali Mohammad Pur
97e97bccab
Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe
2021-09-06 01:53:26 +02:00
Ali Mohammad Pur
3a9f00c59b
Everywhere: Use OOM-safe ByteBuffer APIs where possible
...
If we can easily communicate failure, let's avoid asserting and report
failure instead.
2021-09-06 01:53:26 +02:00
Lenny Maiorani
8e949c5c91
Tests: Remove unused variables for clang build
...
Problem:
- Clang will not build `Tests/LibTLS` due to unused variables.
Solution:
- Remove the unused variables.
2021-08-06 23:55:27 +02:00
Peter Bocan
4d5ffd364a
LibCrypto+LibTLS: Split and move test suite into Tests directory
...
This change splits test-crypto.cpp from Userland into separate test
suites located in Tests/ directory.
2021-06-19 19:05:36 +04:30