Home
last modified time | relevance | path

Searched refs:RpcCertificateFormat (Results 1 – 18 of 18) sorted by relevance

/frameworks/native/libs/binder/include/binder/
DRpcCertificateFormat.h25 enum class RpcCertificateFormat { enum
30 static inline std::string PrintToString(RpcCertificateFormat format) { in PrintToString()
32 case RpcCertificateFormat::PEM: in PrintToString()
34 case RpcCertificateFormat::DER: in PrintToString()
DRpcTransport.h144 RpcCertificateFormat format) const = 0;
DRpcServer.h206 LIBBINDER_EXPORTED std::vector<uint8_t> getCertificate(RpcCertificateFormat);
DRpcSession.h178 LIBBINDER_EXPORTED std::vector<uint8_t> getCertificate(RpcCertificateFormat);
/frameworks/native/libs/binder/
DRpcTlsUtils.cpp69 RpcCertificateFormat format) { in deserializeCertificate()
71 case RpcCertificateFormat::PEM: in deserializeCertificate()
73 case RpcCertificateFormat::DER: in deserializeCertificate()
79 std::vector<uint8_t> serializeCertificate(X509* x509, RpcCertificateFormat format) { in serializeCertificate()
81 case RpcCertificateFormat::PEM: in serializeCertificate()
83 case RpcCertificateFormat::DER: in serializeCertificate()
DRpcTransportRaw.cpp99 std::vector<uint8_t> getCertificate(RpcCertificateFormat) const override { return {}; } in getCertificate()
DRpcTransportTipcAndroid.cpp214 std::vector<uint8_t> getCertificate(RpcCertificateFormat) const override { return {}; } in getCertificate()
DRpcTransportTls.cpp458 std::vector<uint8_t> getCertificate(RpcCertificateFormat) const override;
467 std::vector<uint8_t> RpcTransportCtxTls::getCertificate(RpcCertificateFormat format) const { in getCertificate()
DRpcServer.cpp184 std::vector<uint8_t> RpcServer::getCertificate(RpcCertificateFormat format) { in getCertificate()
DRpcSession.cpp859 std::vector<uint8_t> RpcSession::getCertificate(RpcCertificateFormat format) { in getCertificate()
/frameworks/native/libs/binder/tests/
DRpcTlsUtilsTest.cpp59 class RpcTlsUtilsCertTest : public testing::TestWithParam<RpcCertificateFormat> {
79 testing::Values(RpcCertificateFormat::PEM, RpcCertificateFormat::DER),
83 : public testing::TestWithParam<std::tuple<RpcKeyFormat, RpcCertificateFormat>> {
110 testing::Values(RpcCertificateFormat::PEM,
111 RpcCertificateFormat::DER)),
DbinderRpcTestService.cpp161 serverInfo.cert.data = server->getCertificate(RpcCertificateFormat::PEM); in main()
168 certVerifier->addTrustedPeerCertificate(RpcCertificateFormat::PEM, in main()
DRpcTlsTestUtils.cpp106 status_t RpcCertificateVerifierSimple::addTrustedPeerCertificate(RpcCertificateFormat format, in addTrustedPeerCertificate()
DbinderRpcTest.cpp336 parcelableCert.data = session->getCertificate(RpcCertificateFormat::PEM); in createRpcTestSocketServerProcessEtc()
349 certVerifier->addTrustedPeerCertificate(RpcCertificateFormat::PEM, serverCert)); in createRpcTestSocketServerProcessEtc()
1480 std::tuple<SocketType, RpcSecurity, std::optional<RpcCertificateFormat>, uint32_t>;
1734 std::optional<RpcCertificateFormat> certificateFormat, const A& a, in trust()
1766 ret.emplace_back(socketType, rpcSecurity, RpcCertificateFormat::PEM, in getRpcTranportTestParams()
1768 ret.emplace_back(socketType, rpcSecurity, RpcCertificateFormat::DER, in getRpcTranportTestParams()
2026 std::tuple<SocketType, RpcCertificateFormat, RpcKeyFormat, uint32_t>> {
2080 testing::Values(RpcCertificateFormat::PEM, RpcCertificateFormat::DER),
DbinderRpcBenchmark.cpp50 using android::RpcCertificateFormat;
/frameworks/native/libs/binder/include_tls/binder/
DRpcTlsUtils.h31 RpcCertificateFormat format);
33 std::vector<uint8_t> serializeCertificate(X509* x509, RpcCertificateFormat format);
/frameworks/native/libs/binder/tests/include_tls_test_utils/binder/
DRpcTlsTestUtils.h73 [[nodiscard]] status_t addTrustedPeerCertificate(RpcCertificateFormat format,
/frameworks/native/libs/binder/trusty/
DRpcTransportTipcTrusty.cpp283 std::vector<uint8_t> getCertificate(RpcCertificateFormat) const override { return {}; } in getCertificate()