Android-cuttlefish cvd tool
Macros | Functions | Variables
adb_auth.h File Reference
#include "adb.h"
#include <deque>
#include <memory>
#include <openssl/rsa.h>
Include dependency graph for adb_auth.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ADB_AUTH_TOKEN   1
 
#define ADB_AUTH_SIGNATURE   2
 
#define ADB_AUTH_RSAPUBLICKEY   3
 

Functions

void adbd_auth_init ()
 
void adbd_auth_verified (atransport *t)
 
void adbd_cloexec_auth_socket ()
 
bool adbd_auth_verify (const char *token, size_t token_size, const std::string &sig, std::string *auth_key)
 
void adbd_auth_confirm_key (atransport *t)
 
void adbd_notify_framework_connected_key (atransport *t)
 
void send_auth_request (atransport *t)
 
void adbd_auth_tls_handshake (atransport *t)
 
int adbd_tls_verify_cert (X509_STORE_CTX *ctx, std::string *auth_key)
 
bssl::UniquePtr< STACK_OF(X509_NAME)> adbd_tls_client_ca_list ()
 

Variables

bool auth_required
 
bool socket_access_allowed
 

Macro Definition Documentation

◆ ADB_AUTH_RSAPUBLICKEY

#define ADB_AUTH_RSAPUBLICKEY   3

◆ ADB_AUTH_SIGNATURE

#define ADB_AUTH_SIGNATURE   2

◆ ADB_AUTH_TOKEN

#define ADB_AUTH_TOKEN   1

Function Documentation

◆ adbd_auth_confirm_key()

void adbd_auth_confirm_key ( atransport t)

◆ adbd_auth_init()

void adbd_auth_init ( )

◆ adbd_auth_tls_handshake()

void adbd_auth_tls_handshake ( atransport t)

◆ adbd_auth_verified()

void adbd_auth_verified ( atransport t)

◆ adbd_auth_verify()

bool adbd_auth_verify ( const char *  token,
size_t  token_size,
const std::string &  sig,
std::string *  auth_key 
)

◆ adbd_cloexec_auth_socket()

void adbd_cloexec_auth_socket ( )

◆ adbd_notify_framework_connected_key()

void adbd_notify_framework_connected_key ( atransport t)

◆ adbd_tls_client_ca_list()

bssl::UniquePtr< STACK_OF(X509_NAME)> adbd_tls_client_ca_list ( )

◆ adbd_tls_verify_cert()

int adbd_tls_verify_cert ( X509_STORE_CTX *  ctx,
std::string *  auth_key 
)

◆ send_auth_request()

void send_auth_request ( atransport t)

Variable Documentation

◆ auth_required

bool auth_required
extern

◆ socket_access_allowed

bool socket_access_allowed
extern