aboutsummaryrefslogtreecommitdiffstats
path: root/adb/adb.h
diff options
context:
space:
mode:
authorBenoit Goby <benoit@android.com>2012-08-20 23:04:11 -0700
committerBenoit Goby <benoit@android.com>2012-08-20 23:04:11 -0700
commit3fc95a991805feba257a396c13548776fd36f34f (patch)
tree731384080831ccdb5800d9289870ee472dcac6ab /adb/adb.h
parent300d6d65d022c4a4663d097e5271eac745be6278 (diff)
downloadsystem_core-3fc95a991805feba257a396c13548776fd36f34f.tar.gz
system_core-3fc95a991805feba257a396c13548776fd36f34f.tar.bz2
system_core-3fc95a991805feba257a396c13548776fd36f34f.zip
Revert "adb: Add public key authentification"
This reverts commit f4ed516643ee8ed3a59ad1a8048f7ce5f47f93fb.
Diffstat (limited to 'adb/adb.h')
-rw-r--r--adb/adb.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/adb/adb.h b/adb/adb.h
index 5e9a0fb3..df888967 100644
--- a/adb/adb.h
+++ b/adb/adb.h
@@ -29,14 +29,13 @@
#define A_OKAY 0x59414b4f
#define A_CLSE 0x45534c43
#define A_WRTE 0x45545257
-#define A_AUTH 0x48545541
#define A_VERSION 0x01000000 // ADB protocol version
#define ADB_VERSION_MAJOR 1 // Used for help/version information
#define ADB_VERSION_MINOR 0 // Used for help/version information
-#define ADB_SERVER_VERSION 30 // Increment this when we want to force users to start a new adb server
+#define ADB_SERVER_VERSION 29 // Increment this when we want to force users to start a new adb server
typedef struct amessage amessage;
typedef struct apacket apacket;
@@ -166,8 +165,6 @@ typedef enum transport_type {
kTransportHost,
} transport_type;
-#define TOKEN_SIZE 20
-
struct atransport
{
atransport *next;
@@ -184,7 +181,6 @@ struct atransport
int ref_count;
unsigned sync_token;
int connection_state;
- int online;
transport_type type;
/* usb handle or socket fd as needed */
@@ -202,11 +198,6 @@ struct atransport
/* a list of adisconnect callbacks called when the transport is kicked */
int kicked;
adisconnect disconnects;
-
- void *key;
- unsigned char token[TOKEN_SIZE];
- fdevent auth_fde;
- unsigned failed_auth_attempts;
};
@@ -358,7 +349,6 @@ typedef enum {
TRACE_SYSDEPS,
TRACE_JDWP, /* 0x100 */
TRACE_SERVICES,
- TRACE_AUTH,
} AdbTrace;
#if ADB_TRACE
@@ -418,7 +408,7 @@ void adb_qemu_trace(const char* fmt, ...);
#endif
-#if !DEBUG_PACKETS
+#if !TRACE_PACKETS
#define print_packet(tag,p) do {} while (0)
#endif