Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60c6936a authored by Weston Carvalho's avatar Weston Carvalho
Browse files

libbinder-trusty: Use trusty_peer_id directly in Rust

Change the C bindings exposed to Rust to pass a trusty_peer_id by value
instead of passing a byte slice. This lets us avoid some unsafe
(unpacking the bytes) and makes it so the Rust and C++ RpcServer
implementations are using ABI compatible peer IDs, so a Rust server
would be able to use a per-session callback defined in C++ and vice versa.

Bug: 401776482
Test: ./build-root/build-qemu-generic-arm64-test-debug/run --headless --boot-test "com.android.trusty.rust.authmgr_be_lib.test"
Flag: EXEMPT bugfix
Change-Id: I14a8596fed7da46fd1d9c62c9b9437e82530a31d
parent 9058d320
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment