mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
test-crypto: Don't put TLSv12 in an OwnPtr as it's ref-counted :)
This commit is contained in:
parent
42651200d4
commit
9eaf22090f
1 changed files with 2 additions and 2 deletions
|
@ -144,10 +144,10 @@ int run(Function<void(const char*, size_t)> fn)
|
|||
|
||||
void tls(const char* message, size_t len)
|
||||
{
|
||||
static OwnPtr<TLS::TLSv12> tls;
|
||||
static RefPtr<TLS::TLSv12> tls;
|
||||
static ByteBuffer write {};
|
||||
if (!tls) {
|
||||
tls = make<TLS::TLSv12>(nullptr);
|
||||
tls = TLS::TLSv12::construct(nullptr);
|
||||
tls->connect(server ?: DEFAULT_SERVER, port);
|
||||
tls->on_tls_ready_to_read = [](auto& tls) {
|
||||
auto buffer = tls.read();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue