HttpsJob.cpp 341 B

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