Go to the documentation of this file.
97 &serialized_peer_versions));
101 reinterpret_cast<char*
>(
127 const char* expected_property_name,
128 const char* expected_identity) {
135 if (strcmp(prop->
name, expected_property_name) != 0) {
137 expected_property_name, prop->
name);
142 expected_identity, prop->
value);
166 &serialized_peer_versions));
169 reinterpret_cast<char*
>(
177 char test_ctx[] =
"test serialized context";
const char * tsi_security_level_to_string(tsi_security_level security_level)
GPRAPI void grpc_slice_unref(grpc_slice s)
tsi_peer_property * properties
#define GRPC_PROTOCOL_VERSION_MIN_MAJOR
static void test_empty_peer_property_failure()
static void test_missing_rpc_protocol_versions_property_failure()
GPRAPI grpc_slice grpc_slice_from_copied_string(const char *source)
#define TSI_SECURITY_LEVEL_PEER_PROPERTY
RefCountedPtr< grpc_auth_context > grpc_alts_auth_context_from_tsi_peer(const tsi_peer *peer)
#define GRPC_PROTOCOL_VERSION_MIN_MINOR
static void test_missing_security_level_property_failure()
GRPCAPI int grpc_auth_context_peer_is_authenticated(const grpc_auth_context *ctx)
const size_t kTsiAltsNumOfPeerProperties
const GRPCAPI grpc_auth_property * grpc_auth_property_iterator_next(grpc_auth_property_iterator *it)
bool grpc_gcp_rpc_protocol_versions_encode(const grpc_gcp_rpc_protocol_versions *versions, grpc_slice *slice)
static void test_invalid_input_failure()
#define TSI_ALTS_SERVICE_ACCOUNT_PEER_PROPERTY
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
#define TSI_ALTS_RPC_VERSIONS
#define GRPC_PROTOCOL_VERSION_MAX_MAJOR
#define GRPC_SLICE_START_PTR(slice)
static bool test_identity(const grpc_auth_context *ctx, const char *expected_property_name, const char *expected_identity)
#define TSI_ALTS_CERTIFICATE_TYPE
bool grpc_gcp_rpc_protocol_versions_set_min(grpc_gcp_rpc_protocol_versions *versions, uint32_t min_major, uint32_t min_minor)
#define GRPC_SLICE_LENGTH(slice)
GRPCAPI grpc_auth_property_iterator grpc_auth_context_peer_identity(const grpc_auth_context *ctx)
static void test_empty_certificate_type_failure()
bool grpc_gcp_rpc_protocol_versions_set_max(grpc_gcp_rpc_protocol_versions *versions, uint32_t max_major, uint32_t max_minor)
@ TSI_PRIVACY_AND_INTEGRITY
static void test_alts_peer_to_auth_context_success()
#define TSI_CERTIFICATE_TYPE_PEER_PROPERTY
void tsi_peer_destruct(tsi_peer *self)
tsi_result tsi_construct_string_peer_property(const char *name, const char *value, size_t value_length, tsi_peer_property *property)
#define GRPC_PROTOCOL_VERSION_MAX_MINOR
static void test_unknown_peer_property_failure()
tsi_result tsi_construct_string_peer_property_from_cstring(const char *name, const char *value, tsi_peer_property *property)
tsi_result tsi_construct_peer(size_t property_count, tsi_peer *peer)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:41