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