2020-01-18 05:38:21 -03:00
|
|
|
/*
|
2022-02-02 12:51:55 -03:00
|
|
|
* Copyright (c) 2020-2022, the SerenityOS developers.
|
2020-01-18 05:38:21 -03:00
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 05:38:21 -03:00
|
|
|
*/
|
|
|
|
|
|
2021-01-24 11:28:26 -03:00
|
|
|
#include <AK/Debug.h>
|
2020-04-20 18:25:25 -03:00
|
|
|
#include <LibHTTP/HttpsJob.h>
|
2019-04-07 09:36:10 -03:00
|
|
|
|
2020-04-20 18:25:25 -03:00
|
|
|
namespace HTTP {
|
2020-02-02 08:34:39 -03:00
|
|
|
|
2022-02-02 12:51:55 -03:00
|
|
|
void HttpsJob::set_certificate(String certificate, String key)
|
2019-04-07 23:53:45 -03:00
|
|
|
{
|
2022-02-02 12:51:55 -03:00
|
|
|
m_received_client_certificates = TLS::TLSv12::parse_pem_certificate(certificate.bytes(), key.bytes());
|
2020-05-05 02:17:40 -03:00
|
|
|
}
|
|
|
|
|
|
2020-02-02 08:34:39 -03:00
|
|
|
}
|