Lines Matching refs:cert
38 explicit TlsConnectionImpl(Role role, std::string_view cert, std::string_view priv_key,
42 bool AddTrustedCertificate(std::string_view cert) override;
83 TlsConnectionImpl::TlsConnectionImpl(Role role, std::string_view cert, std::string_view priv_key, in TlsConnectionImpl() argument
86 CHECK(!cert.empty() && !priv_key.empty()); in TlsConnectionImpl()
88 cert_ = BufferFromPEM(cert); in TlsConnectionImpl()
153 bool TlsConnectionImpl::AddTrustedCertificate(std::string_view cert) { in AddTrustedCertificate() argument
155 auto buf = X509FromBuffer(BufferFromPEM(cert)); in AddTrustedCertificate()
226 for (auto const& cert : known_certificates_) { in DoHandshake() local
227 if (X509_STORE_add_cert(SSL_CTX_get_cert_store(ssl_ctx_.get()), cert.get()) == 0) { in DoHandshake()
362 std::string_view cert, in Create() argument
364 CHECK(!cert.empty()); in Create()
367 return std::make_unique<TlsConnectionImpl>(role, cert, priv_key, fd); in Create()
371 bool TlsConnection::SetCertAndKey(SSL* ssl, std::string_view cert, std::string_view priv_key) { in SetCertAndKey() argument
375 auto x509_cert = TlsConnectionImpl::BufferFromPEM(cert); in SetCertAndKey()