summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibTLS/HandshakeClient.cpp
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-06-08 19:36:27 +0430
committerAndreas Kling <kling@serenityos.org>2021-06-08 19:14:24 +0200
commit7ac196974de3a85430f4ccd1db883943853d8ae0 (patch)
treeefc838bfc282a16379e1c80b7f3e721a6eb8b297 /Userland/Libraries/LibTLS/HandshakeClient.cpp
parent3d94b5051d8a783858cde04eb4d2e1ecf63ac180 (diff)
downloadserenity-7ac196974de3a85430f4ccd1db883943853d8ae0.zip
Everywhere: Replace Vector<T*> with nonnull entries with Vector<T&>
Diffstat (limited to 'Userland/Libraries/LibTLS/HandshakeClient.cpp')
-rw-r--r--Userland/Libraries/LibTLS/HandshakeClient.cpp10
1 files changed, 5 insertions, 5 deletions
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<const Certificate*> certificates;
+ Vector<Certificate const&> certificates;
Vector<Certificate>* 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());
}
}
}