Android-cuttlefish cvd tool
Namespaces | Functions | Variables
adb_ca_list.cpp File Reference
#include "adb/tls/adb_ca_list.h"
#include <iomanip>
#include <sstream>
#include <vector>
#include <android-base/logging.h>
#include <android-base/strings.h>
#include <openssl/ssl.h>
Include dependency graph for adb_ca_list.cpp:

Namespaces

namespace  adb
 
namespace  adb::tls
 
namespace  adb::tls::anonymous_namespace{adb_ca_list.cpp}
 

Functions

int adb::tls::anonymous_namespace{adb_ca_list.cpp}::X509_NAME_add_entry_by_NID_const (X509_NAME *name, int nid, int type, const unsigned char *bytes, int len, int loc, int set)
 
bool adb::tls::anonymous_namespace{adb_ca_list.cpp}::IsHexDigit (char c)
 
std::optional< std::string > adb::tls::anonymous_namespace{adb_ca_list.cpp}::GetX509NameTextByNid (X509_NAME *name, int nid)
 
bssl::UniquePtr< X509_NAME > adb::tls::CreateCAIssuerFromEncodedKey (std::string_view key)
 
std::optional< std::string > adb::tls::ParseEncodedKeyFromCAIssuer (X509_NAME *issuer)
 
std::string adb::tls::SHA256BitsToHexString (std::string_view sha256)
 
std::optional< std::string > adb::tls::SHA256HexStringToBits (std::string_view sha256_str)
 

Variables

static constexpr int adb::tls::anonymous_namespace{adb_ca_list.cpp}::kAdbKeyIdentifierNid = NID_organizationName
 
static constexpr char adb::tls::anonymous_namespace{adb_ca_list.cpp}::kAdbKeyIdentifierV0 [] = "AdbKey-0"
 
static constexpr int adb::tls::anonymous_namespace{adb_ca_list.cpp}::kAdbKeyValueNid = NID_commonName