chaps: Check for D-Bus acquire_name() method

DBus::Connection::acquire_name() does not exist in the upstream version
of libdbus-c++, so check for it and stick to the original request_name()
method if not present.

TEST=Chaps unit tests (with ASAN) plus PKCS11 tests

Change-Id: If2b2dd875d6a3f109331306035a0b1db20856213
Reviewed-by: Darren Krahn <>
Commit-Queue: David Drysdale <>
Tested-by: David Drysdale <>
2 files changed