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

Method GetPublicKey

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

Source from the content-addressed store, hash-verified

297}
298
299Status Cert::GetPublicKey(PublicKey* key) const {
300 SCOPED_OPENSSL_NO_PENDING_ERRORS;
301 EVP_PKEY* raw_key = X509_get_pubkey(GetTopOfChainX509());
302 OPENSSL_RET_IF_NULL(raw_key, "unable to get certificate public key");
303 key->AdoptRawData(raw_key);
304 return Status::OK();
305}
306
307Status CertSignRequest::FromString(const std::string& data, DataFormat format) {
308 return ::kudu::security::FromString(data, format, &data_);

Callers 6

TEST_FFunction · 0.45
TEST_PFunction · 0.45
AddTrustedCertificateMethod · 0.45
AdoptSignedCertMethod · 0.45
GeneratePublicKeyStrDerFunction · 0.45

Calls 3

OKFunction · 0.85
AdoptRawDataMethod · 0.80
getMethod · 0.65

Tested by 3

TEST_FFunction · 0.36
TEST_PFunction · 0.36
GeneratePublicKeyStrDerFunction · 0.36