Classes | Macros | Typedefs | Functions
transport_security_test_lib.h File Reference
#include <grpc/support/sync.h>
#include "src/core/tsi/transport_security_interface.h"
Include dependency graph for transport_security_test_lib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tsi_test_channel
 
struct  tsi_test_fixture
 
struct  tsi_test_fixture_vtable
 
struct  tsi_test_frame_protector_config
 
struct  tsi_test_frame_protector_fixture
 

Macros

#define TSI_TEST_BIG_MESSAGE_SIZE   17000
 
#define TSI_TEST_DEFAULT_BUFFER_SIZE   4096
 
#define TSI_TEST_DEFAULT_CHANNEL_SIZE   32768
 
#define TSI_TEST_DEFAULT_PROTECTED_BUFFER_SIZE   16384
 
#define TSI_TEST_NUM_OF_ARGUMENTS   7
 
#define TSI_TEST_NUM_OF_COMBINATIONS   128
 
#define TSI_TEST_SMALL_CLIENT_MAX_OUTPUT_PROTECTED_FRAME_SIZE   39
 
#define TSI_TEST_SMALL_HANDSHAKE_BUFFER_SIZE   128
 
#define TSI_TEST_SMALL_MESSAGE_BUFFER_ALLOCATED_SIZE   42
 
#define TSI_TEST_SMALL_MESSAGE_SIZE   10
 
#define TSI_TEST_SMALL_PROTECTED_BUFFER_SIZE   37
 
#define TSI_TEST_SMALL_READ_BUFFER_ALLOCATED_SIZE   41
 
#define TSI_TEST_SMALL_SERVER_MAX_OUTPUT_PROTECTED_FRAME_SIZE   43
 
#define TSI_TEST_TINY_HANDSHAKE_BUFFER_SIZE   32
 
#define TSI_TEST_UNUSED_BYTES   "HELLO GOOGLE"
 

Typedefs

typedef struct tsi_test_channel tsi_test_channel
 
typedef struct tsi_test_fixture tsi_test_fixture
 
typedef struct tsi_test_fixture_vtable tsi_test_fixture_vtable
 
typedef struct tsi_test_frame_protector_config tsi_test_frame_protector_config
 
typedef struct tsi_test_frame_protector_fixture tsi_test_frame_protector_fixture
 

Functions

void tsi_test_do_handshake (tsi_test_fixture *fixture)
 
void tsi_test_do_round_trip (tsi_test_fixture *fixture)
 
void tsi_test_fixture_destroy (tsi_test_fixture *fixture)
 
void tsi_test_fixture_init (tsi_test_fixture *fixture)
 
tsi_test_frame_protector_configtsi_test_frame_protector_config_create (bool use_default_read_buffer_allocated_size, bool use_default_message_buffer_allocated_size, bool use_default_protected_buffer_size, bool use_default_client_message, bool use_default_server_message, bool use_default_client_max_output_protected_frame_size, bool use_default_server_max_output_protected_frame_size)
 
void tsi_test_frame_protector_config_destroy (tsi_test_frame_protector_config *config)
 
void tsi_test_frame_protector_config_set_buffer_size (tsi_test_frame_protector_config *config, size_t read_buffer_allocated_size, size_t message_buffer_allocated_size, size_t protected_buffer_size, size_t client_max_output_protected_frame_size, size_t server_max_output_protected_frame_size)
 
void tsi_test_frame_protector_do_round_trip_no_handshake (tsi_test_frame_protector_fixture *fixture)
 
tsi_test_frame_protector_fixturetsi_test_frame_protector_fixture_create ()
 
void tsi_test_frame_protector_fixture_destroy (tsi_test_frame_protector_fixture *fixture)
 
void tsi_test_frame_protector_fixture_init (tsi_test_frame_protector_fixture *fixture, tsi_frame_protector *client_frame_protector, tsi_frame_protector *server_frame_protector)
 
void tsi_test_frame_protector_receive_message_from_peer (tsi_test_frame_protector_config *config, tsi_test_channel *channel, tsi_frame_protector *protector, unsigned char *message, size_t *bytes_received, bool is_client)
 
void tsi_test_frame_protector_send_message_to_peer (tsi_test_frame_protector_config *config, tsi_test_channel *channel, tsi_frame_protector *protector, bool is_client)
 

Macro Definition Documentation

◆ TSI_TEST_BIG_MESSAGE_SIZE

#define TSI_TEST_BIG_MESSAGE_SIZE   17000

Definition at line 36 of file transport_security_test_lib.h.

◆ TSI_TEST_DEFAULT_BUFFER_SIZE

#define TSI_TEST_DEFAULT_BUFFER_SIZE   4096

Definition at line 33 of file transport_security_test_lib.h.

◆ TSI_TEST_DEFAULT_CHANNEL_SIZE

#define TSI_TEST_DEFAULT_CHANNEL_SIZE   32768

Definition at line 35 of file transport_security_test_lib.h.

◆ TSI_TEST_DEFAULT_PROTECTED_BUFFER_SIZE

#define TSI_TEST_DEFAULT_PROTECTED_BUFFER_SIZE   16384

Definition at line 34 of file transport_security_test_lib.h.

◆ TSI_TEST_NUM_OF_ARGUMENTS

#define TSI_TEST_NUM_OF_ARGUMENTS   7

Definition at line 38 of file transport_security_test_lib.h.

◆ TSI_TEST_NUM_OF_COMBINATIONS

#define TSI_TEST_NUM_OF_COMBINATIONS   128

Definition at line 39 of file transport_security_test_lib.h.

◆ TSI_TEST_SMALL_CLIENT_MAX_OUTPUT_PROTECTED_FRAME_SIZE

#define TSI_TEST_SMALL_CLIENT_MAX_OUTPUT_PROTECTED_FRAME_SIZE   39

Definition at line 31 of file transport_security_test_lib.h.

◆ TSI_TEST_SMALL_HANDSHAKE_BUFFER_SIZE

#define TSI_TEST_SMALL_HANDSHAKE_BUFFER_SIZE   128

Definition at line 27 of file transport_security_test_lib.h.

◆ TSI_TEST_SMALL_MESSAGE_BUFFER_ALLOCATED_SIZE

#define TSI_TEST_SMALL_MESSAGE_BUFFER_ALLOCATED_SIZE   42

Definition at line 30 of file transport_security_test_lib.h.

◆ TSI_TEST_SMALL_MESSAGE_SIZE

#define TSI_TEST_SMALL_MESSAGE_SIZE   10

Definition at line 37 of file transport_security_test_lib.h.

◆ TSI_TEST_SMALL_PROTECTED_BUFFER_SIZE

#define TSI_TEST_SMALL_PROTECTED_BUFFER_SIZE   37

Definition at line 29 of file transport_security_test_lib.h.

◆ TSI_TEST_SMALL_READ_BUFFER_ALLOCATED_SIZE

#define TSI_TEST_SMALL_READ_BUFFER_ALLOCATED_SIZE   41

Definition at line 28 of file transport_security_test_lib.h.

◆ TSI_TEST_SMALL_SERVER_MAX_OUTPUT_PROTECTED_FRAME_SIZE

#define TSI_TEST_SMALL_SERVER_MAX_OUTPUT_PROTECTED_FRAME_SIZE   43

Definition at line 32 of file transport_security_test_lib.h.

◆ TSI_TEST_TINY_HANDSHAKE_BUFFER_SIZE

#define TSI_TEST_TINY_HANDSHAKE_BUFFER_SIZE   32

Definition at line 26 of file transport_security_test_lib.h.

◆ TSI_TEST_UNUSED_BYTES

#define TSI_TEST_UNUSED_BYTES   "HELLO GOOGLE"

Definition at line 40 of file transport_security_test_lib.h.

Typedef Documentation

◆ tsi_test_channel

Definition at line 63 of file transport_security_test_lib.h.

◆ tsi_test_fixture

Definition at line 47 of file transport_security_test_lib.h.

◆ tsi_test_fixture_vtable

◆ tsi_test_frame_protector_config

Definition at line 58 of file transport_security_test_lib.h.

◆ tsi_test_frame_protector_fixture

Definition at line 52 of file transport_security_test_lib.h.

Function Documentation

◆ tsi_test_do_handshake()

void tsi_test_do_handshake ( tsi_test_fixture fixture)

Definition at line 386 of file transport_security_test_lib.cc.

◆ tsi_test_do_round_trip()

void tsi_test_do_round_trip ( tsi_test_fixture fixture)

Definition at line 459 of file transport_security_test_lib.cc.

◆ tsi_test_fixture_destroy()

void tsi_test_fixture_destroy ( tsi_test_fixture fixture)

Definition at line 620 of file transport_security_test_lib.cc.

◆ tsi_test_fixture_init()

void tsi_test_fixture_init ( tsi_test_fixture fixture)

Definition at line 607 of file transport_security_test_lib.cc.

◆ tsi_test_frame_protector_config_create()

tsi_test_frame_protector_config* tsi_test_frame_protector_config_create ( bool  use_default_read_buffer_allocated_size,
bool  use_default_message_buffer_allocated_size,
bool  use_default_protected_buffer_size,
bool  use_default_client_message,
bool  use_default_server_message,
bool  use_default_client_max_output_protected_frame_size,
bool  use_default_server_max_output_protected_frame_size 
)

Definition at line 503 of file transport_security_test_lib.cc.

◆ tsi_test_frame_protector_config_destroy()

void tsi_test_frame_protector_config_destroy ( tsi_test_frame_protector_config config)

Definition at line 575 of file transport_security_test_lib.cc.

◆ tsi_test_frame_protector_config_set_buffer_size()

void tsi_test_frame_protector_config_set_buffer_size ( tsi_test_frame_protector_config config,
size_t  read_buffer_allocated_size,
size_t  message_buffer_allocated_size,
size_t  protected_buffer_size,
size_t  client_max_output_protected_frame_size,
size_t  server_max_output_protected_frame_size 
)

Definition at line 560 of file transport_security_test_lib.cc.

◆ tsi_test_frame_protector_do_round_trip_no_handshake()

void tsi_test_frame_protector_do_round_trip_no_handshake ( tsi_test_frame_protector_fixture fixture)

Definition at line 451 of file transport_security_test_lib.cc.

◆ tsi_test_frame_protector_fixture_create()

tsi_test_frame_protector_fixture* tsi_test_frame_protector_fixture_create ( )

Definition at line 637 of file transport_security_test_lib.cc.

◆ tsi_test_frame_protector_fixture_destroy()

void tsi_test_frame_protector_fixture_destroy ( tsi_test_frame_protector_fixture fixture)

Definition at line 656 of file transport_security_test_lib.cc.

◆ tsi_test_frame_protector_fixture_init()

void tsi_test_frame_protector_fixture_init ( tsi_test_frame_protector_fixture fixture,
tsi_frame_protector client_frame_protector,
tsi_frame_protector server_frame_protector 
)

Definition at line 647 of file transport_security_test_lib.cc.

◆ tsi_test_frame_protector_receive_message_from_peer()

void tsi_test_frame_protector_receive_message_from_peer ( tsi_test_frame_protector_config config,
tsi_test_channel channel,
tsi_frame_protector protector,
unsigned char *  message,
size_t *  bytes_received,
bool  is_client 
)

Definition at line 237 of file transport_security_test_lib.cc.

◆ tsi_test_frame_protector_send_message_to_peer()

void tsi_test_frame_protector_send_message_to_peer ( tsi_test_frame_protector_config config,
tsi_test_channel channel,
tsi_frame_protector protector,
bool  is_client 
)

Definition at line 187 of file transport_security_test_lib.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:35