diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-18 20:15:56 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-18 20:15:56 +0200 |
commit | 9eaf22090f6b9204e8a3327c7115816cb67f1635 (patch) | |
tree | a2f270e0089f313437d688f6c5d2bb573a575f73 /Userland | |
parent | 42651200d4f2916bbcc79cad573a80339e0cd283 (diff) | |
download | serenity-9eaf22090f6b9204e8a3327c7115816cb67f1635.zip |
test-crypto: Don't put TLSv12 in an OwnPtr as it's ref-counted :)
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/test-crypto.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/test-crypto.cpp b/Userland/test-crypto.cpp index 2d400fdb8c..4f22de89c1 100644 --- a/Userland/test-crypto.cpp +++ b/Userland/test-crypto.cpp @@ -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(); |