summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibHTTP/HttpsJob.cpp
blob: 00c943794934c137faf916938f3405024fce10a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright (c) 2020-2022, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <AK/Debug.h>
#include <LibHTTP/HttpsJob.h>

namespace HTTP {

void HttpsJob::set_certificate(String certificate, String key)
{
    m_received_client_certificates = TLS::TLSv12::parse_pem_certificate(certificate.bytes(), key.bytes());
}

}