| 612 | } |
| 613 | |
| 614 | Status TlsContext::LoadCertificateAuthority(const string& certificate_path) { |
| 615 | SCOPED_OPENSSL_NO_PENDING_ERRORS; |
| 616 | if (has_cert_) DCHECK(is_external_cert_); |
| 617 | Cert c; |
| 618 | RETURN_NOT_OK(c.FromFile(certificate_path, DataFormat::PEM)); |
| 619 | return AddTrustedCertificate(c); |
| 620 | } |
| 621 | |
| 622 | Status TlsContext::InitiateHandshake(TlsHandshake* handshake) const { |
| 623 | SCOPED_OPENSSL_NO_PENDING_ERRORS; |