#include "rtc_base/fake_ssl_identity.h"
#include <memory>
#include <string>
#include <utility>
#include "absl/strings/string_view.h"
#include "rtc_base/checks.h"
#include "rtc_base/message_digest.h"
namespace rtc {
FakeSSLCertificate::FakeSSLCertificate(absl::string_view pem_string)
: … { … }
FakeSSLCertificate::FakeSSLCertificate(const FakeSSLCertificate&) = default;
FakeSSLCertificate::~FakeSSLCertificate() = default;
std::unique_ptr<SSLCertificate> FakeSSLCertificate::Clone() const { … }
std::string FakeSSLCertificate::ToPEMString() const { … }
void FakeSSLCertificate::ToDER(Buffer* der_buffer) const { … }
int64_t FakeSSLCertificate::CertificateExpirationTime() const { … }
void FakeSSLCertificate::SetCertificateExpirationTime(int64_t expiration_time) { … }
void FakeSSLCertificate::set_digest_algorithm(absl::string_view algorithm) { … }
bool FakeSSLCertificate::GetSignatureDigestAlgorithm(
std::string* algorithm) const { … }
bool FakeSSLCertificate::ComputeDigest(absl::string_view algorithm,
unsigned char* digest,
size_t size,
size_t* length) const { … }
FakeSSLIdentity::FakeSSLIdentity(absl::string_view pem_string)
: … { … }
FakeSSLIdentity::FakeSSLIdentity(const std::vector<std::string>& pem_strings) { … }
FakeSSLIdentity::FakeSSLIdentity(const FakeSSLCertificate& cert)
: … { … }
FakeSSLIdentity::FakeSSLIdentity(const FakeSSLIdentity& o)
: … { … }
FakeSSLIdentity::~FakeSSLIdentity() = default;
std::unique_ptr<SSLIdentity> FakeSSLIdentity::CloneInternal() const { … }
const SSLCertificate& FakeSSLIdentity::certificate() const { … }
const SSLCertChain& FakeSSLIdentity::cert_chain() const { … }
std::string FakeSSLIdentity::PrivateKeyToPEMString() const { … }
std::string FakeSSLIdentity::PublicKeyToPEMString() const { … }
bool FakeSSLIdentity::operator==(const SSLIdentity& other) const { … }
}