summaryrefslogtreecommitdiff
path: root/libs/binder/RpcSession.cpp
diff options
context:
space:
mode:
author Andrei Homescu <ahomescu@google.com> 2022-08-24 23:54:59 +0000
committer Andrei Homescu <ahomescu@google.com> 2022-08-25 00:00:24 +0000
commit024727b29bd10909c2ddbb7a3cca9aa1dcec879d (patch)
tree1cbcc35097e6c836eab8a3f9cb4a5e1c7a61d82d /libs/binder/RpcSession.cpp
parentb125642ba6af3bb96a466c42f7161e85339f5dc9 (diff)
libbinder: add makeDefaultRpcTransportCtxFactory
Add a new OS-specific function that creates a new instance of the default RpcTransportCtxFactory. This is needed because Android and Trusty have different default transports: RpcTransportRaw and RpcTransportTipcTrusty, respectively. Bug: 230135749 Test: presubmit Change-Id: I4abd443fe9a08c1fa0cc41dfca7ef1cdb69fe0fb
Diffstat (limited to 'libs/binder/RpcSession.cpp')
-rw-r--r--libs/binder/RpcSession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/RpcSession.cpp b/libs/binder/RpcSession.cpp
index 8ddfa93c00..eee28d6dde 100644
--- a/libs/binder/RpcSession.cpp
+++ b/libs/binder/RpcSession.cpp
@@ -68,7 +68,7 @@ RpcSession::~RpcSession() {
sp<RpcSession> RpcSession::make() {
// Default is without TLS.
- return make(RpcTransportCtxFactoryRaw::make());
+ return make(makeDefaultRpcTransportCtxFactory());
}
sp<RpcSession> RpcSession::make(std::unique_ptr<RpcTransportCtxFactory> rpcTransportCtxFactory) {