adb: split up adb_auth.cpp.
All of the functions in adb_auth.cpp were used in only one of
adb/adbd. Split up them up into adb_auth_host.cpp and adbd_auth.cpp
respectively.
Bug: http://b/29273531
Test: built and flashed bullhead, adb still works
Change-Id: Ib610c5157522634cc273511175152f1306cc52a7
diff --git a/adb/transport.cpp b/adb/transport.cpp
index 87712fc..9880902 100644
--- a/adb/transport.cpp
+++ b/adb/transport.cpp
@@ -1071,6 +1071,7 @@
}
}
+#if ADB_HOST
std::shared_ptr<RSA> atransport::NextKey() {
if (keys_.empty()) keys_ = adb_auth_get_private_keys();
@@ -1078,3 +1079,4 @@
keys_.pop_front();
return result;
}
+#endif