HttpsJob.cpp 355 B

1234567891011121314151617
  1. /*
  2. * Copyright (c) 2020-2022, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <AK/Debug.h>
  7. #include <LibHTTP/HttpsJob.h>
  8. namespace HTTP {
  9. void HttpsJob::set_certificate(String certificate, String key)
  10. {
  11. m_received_client_certificates = TLS::TLSv12::parse_pem_certificate(certificate.bytes(), key.bytes());
  12. }
  13. }