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

Method FromString

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

Source from the content-addressed store, hash-verified

87}
88
89Status Cert::FromString(const std::string& data, DataFormat format) {
90 RETURN_NOT_OK(::kudu::security::FromString(data, format, &data_));
91 if (sk_X509_num(data_.get()) < 1) {
92 return Status::RuntimeError("Certificate chain is empty. Expected at least one certificate.");
93 }
94 return Status::OK();
95}
96
97Status Cert::ToString(std::string* data, DataFormat format) const {
98 return ::kudu::security::ToString(data, format, data_.get());

Callers 8

InitMethod · 0.45
CheckToAndFromStringMethod · 0.45
TEST_FFunction · 0.45
SetUpMethod · 0.45
TEST_FFunction · 0.45
SetUpMethod · 0.45
TEST_FFunction · 0.45

Calls 4

FromStringFunction · 0.85
RuntimeErrorFunction · 0.85
OKFunction · 0.85
getMethod · 0.65

Tested by 6

CheckToAndFromStringMethod · 0.36
TEST_FFunction · 0.36
SetUpMethod · 0.36
TEST_FFunction · 0.36
SetUpMethod · 0.36
TEST_FFunction · 0.36