MCPcopy Create free account
hub / github.com/apache/impala / FromFile

Method FromFile

be/src/kudu/security/cert.cc:101–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101Status Cert::FromFile(const std::string& fpath, DataFormat format) {
102 RETURN_NOT_OK(::kudu::security::FromFile(fpath, format, &data_));
103 if (sk_X509_num(data_.get()) < 1) {
104 return Status::RuntimeError("Certificate chain is empty. Expected at least one certificate.");
105 }
106 return Status::OK();
107}
108
109string Cert::SubjectName() const {
110 return X509NameToString(X509_get_subject_name(GetTopOfChainX509()));

Callers 5

TEST_FFunction · 0.45
TEST_FFunction · 0.45
LoadCertificateAndKeyMethod · 0.45

Calls 4

FromFileFunction · 0.85
RuntimeErrorFunction · 0.85
OKFunction · 0.85
getMethod · 0.65

Tested by 2

TEST_FFunction · 0.36
TEST_FFunction · 0.36