diff options
Diffstat (limited to 'Libraries/LibGemini/GeminiJob.cpp')
-rw-r--r-- | Libraries/LibGemini/GeminiJob.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Libraries/LibGemini/GeminiJob.cpp b/Libraries/LibGemini/GeminiJob.cpp index 91cb58cd2f..dd5a27dbc4 100644 --- a/Libraries/LibGemini/GeminiJob.cpp +++ b/Libraries/LibGemini/GeminiJob.cpp @@ -95,7 +95,9 @@ void GeminiJob::read_while_data_available(Function<IterationDecision()> read) void GeminiJob::set_certificate(String certificate, String private_key) { - if (!m_socket->add_client_key(ByteBuffer::wrap(certificate.characters(), certificate.length()), ByteBuffer::wrap(private_key.characters(), private_key.length()))) { + if (!m_socket->add_client_key( + ByteBuffer::wrap(const_cast<char*>(certificate.characters()), certificate.length()), + ByteBuffer::wrap(const_cast<char*>(private_key.characters()), private_key.length()))) { dbg() << "LibGemini: Failed to set a client certificate"; // FIXME: Do something about this failure ASSERT_NOT_REACHED(); |