Lines Matching refs:cert
40 explicit TlsConnectionImpl(Role role, std::string_view cert, std::string_view priv_key,
44 bool AddTrustedCertificate(std::string_view cert) override;
85 TlsConnectionImpl::TlsConnectionImpl(Role role, std::string_view cert, std::string_view priv_key, in TlsConnectionImpl() argument
88 CHECK(!cert.empty() && !priv_key.empty()); in TlsConnectionImpl()
90 cert_ = BufferFromPEM(cert); in TlsConnectionImpl()
155 bool TlsConnectionImpl::AddTrustedCertificate(std::string_view cert) { in AddTrustedCertificate() argument
157 auto buf = X509FromBuffer(BufferFromPEM(cert)); in AddTrustedCertificate()
228 for (auto const& cert : known_certificates_) { in DoHandshake() local
229 if (X509_STORE_add_cert(SSL_CTX_get_cert_store(ssl_ctx_.get()), cert.get()) == 0) { in DoHandshake()
364 std::string_view cert, in Create() argument
366 CHECK(!cert.empty()); in Create()
369 return std::make_unique<TlsConnectionImpl>(role, cert, priv_key, fd); in Create()
373 bool TlsConnection::SetCertAndKey(SSL* ssl, std::string_view cert, std::string_view priv_key) { in SetCertAndKey() argument
377 auto x509_cert = TlsConnectionImpl::BufferFromPEM(cert); in SetCertAndKey()