From 7ac196974de3a85430f4ccd1db883943853d8ae0 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Tue, 8 Jun 2021 19:36:27 +0430 Subject: Everywhere: Replace Vector with nonnull entries with Vector --- Userland/Libraries/LibTLS/HandshakeClient.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Userland/Libraries/LibTLS/HandshakeClient.cpp') diff --git a/Userland/Libraries/LibTLS/HandshakeClient.cpp b/Userland/Libraries/LibTLS/HandshakeClient.cpp index 55521d658b..bea4d0ed4c 100644 --- a/Userland/Libraries/LibTLS/HandshakeClient.cpp +++ b/Userland/Libraries/LibTLS/HandshakeClient.cpp @@ -228,7 +228,7 @@ ByteBuffer TLSv12::build_certificate() { PacketBuilder builder { MessageType::Handshake, m_context.options.version }; - Vector certificates; + Vector certificates; Vector* local_certificates = nullptr; if (m_context.is_server) { @@ -250,7 +250,7 @@ ByteBuffer TLSv12::build_certificate() // FIXME: Check for and respond with only the requested certificate types. if (true) { - certificates.append(&certificate); + certificates.append(certificate); } } } @@ -266,9 +266,9 @@ ByteBuffer TLSv12::build_certificate() builder.append_u24(total_certificate_size); for (auto& certificate : certificates) { - if (!certificate->der.is_empty()) { - builder.append_u24(certificate->der.size()); - builder.append(certificate->der.bytes()); + if (!certificate.der.is_empty()) { + builder.append_u24(certificate.der.size()); + builder.append(certificate.der.bytes()); } } } -- cgit v1.2.3