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