#include "rtc_base/boringssl_identity.h"
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/pool.h>
#include <stdint.h>
#include <string.h>
#include <memory>
#include <utility>
#include <vector>
#include "absl/memory/memory.h"
#include "absl/strings/string_view.h"
#include "rtc_base/checks.h"
#include "rtc_base/logging.h"
#include "rtc_base/numerics/safe_conversions.h"
#include "rtc_base/openssl.h"
#include "rtc_base/openssl_utility.h"
namespace rtc {
BoringSSLIdentity::BoringSSLIdentity(
std::unique_ptr<OpenSSLKeyPair> key_pair,
std::unique_ptr<BoringSSLCertificate> certificate)
: … { … }
BoringSSLIdentity::BoringSSLIdentity(std::unique_ptr<OpenSSLKeyPair> key_pair,
std::unique_ptr<SSLCertChain> cert_chain)
: … { … }
BoringSSLIdentity::~BoringSSLIdentity() = default;
std::unique_ptr<BoringSSLIdentity> BoringSSLIdentity::CreateInternal(
const SSLIdentityParams& params) { … }
std::unique_ptr<BoringSSLIdentity> BoringSSLIdentity::CreateWithExpiration(
absl::string_view common_name,
const KeyParams& key_params,
time_t certificate_lifetime) { … }
std::unique_ptr<BoringSSLIdentity> BoringSSLIdentity::CreateForTest(
const SSLIdentityParams& params) { … }
std::unique_ptr<SSLIdentity> BoringSSLIdentity::CreateFromPEMStrings(
absl::string_view private_key,
absl::string_view certificate) { … }
std::unique_ptr<SSLIdentity> BoringSSLIdentity::CreateFromPEMChainStrings(
absl::string_view private_key,
absl::string_view certificate_chain) { … }
const BoringSSLCertificate& BoringSSLIdentity::certificate() const { … }
const SSLCertChain& BoringSSLIdentity::cert_chain() const { … }
std::unique_ptr<SSLIdentity> BoringSSLIdentity::CloneInternal() const { … }
bool BoringSSLIdentity::ConfigureIdentity(SSL_CTX* ctx) { … }
std::string BoringSSLIdentity::PrivateKeyToPEMString() const { … }
std::string BoringSSLIdentity::PublicKeyToPEMString() const { … }
bool BoringSSLIdentity::operator==(const BoringSSLIdentity& other) const { … }
bool BoringSSLIdentity::operator!=(const BoringSSLIdentity& other) const { … }
}