aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-03-09 17:19:23 -0600
committerCharles Kerr <charles.kerr@canonical.com>2016-03-09 17:19:23 -0600
commit13a0b901492901638a7abc90bb2935a9c0387f75 (patch)
tree9a5fadd583ef37954bce7aac47c2ed0d947d34bb /src/main.cpp
parent68b671ce04b8b5d6b37025ad093c73a3e14d4d64 (diff)
downloadayatana-indicator-display-13a0b901492901638a7abc90bb2935a9c0387f75.tar.gz
ayatana-indicator-display-13a0b901492901638a7abc90bb2935a9c0387f75.tar.bz2
ayatana-indicator-display-13a0b901492901638a7abc90bb2935a9c0387f75.zip
add human-readable fingerprint extraction from the adb public keys
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 62eca62..151b642 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -61,7 +61,7 @@ main(int /*argc*/, char** /*argv*/)
static constexpr char const * ADB_SOCKET_PATH {"/dev/socket/adb"};
GAdbdClient adbd_client{ADB_SOCKET_PATH};
adbd_client.on_pk_request().connect([](const AdbdClient::PKRequest& req){
- auto snap = new UsbSnap(req.public_key);
+ auto snap = new UsbSnap(req.fingerprint);
snap->on_user_response().connect([req,snap](AdbdClient::PKResponse response, bool /*FIXME: remember_choice*/){
req.respond(response);
g_idle_add([](gpointer gsnap){delete static_cast<UsbSnap*>(gsnap); return G_SOURCE_REMOVE;}, snap); // delete-later