Go to the documentation of this file.
54 for (
size_t i = 0;
i < sb->
count;
i++) {
63 for (
size_t i = 0;
i < src->
count;
i++) {
72 iovec_t header_iovec = {
nullptr, 0};
90 size_t overflow_size,
bool is_client,
91 bool is_integrity_only,
93 if (rp ==
nullptr || crypter ==
nullptr) {
95 "Invalid nullptr arguments to alts_grpc_record_protocol init.");
99 char* error_details =
nullptr;
101 crypter, overflow_size, is_client, is_integrity_only, is_protect,
127 self->vtable ==
nullptr || unprotected_slices ==
nullptr ||
128 protected_slices ==
nullptr) {
131 if (
self->vtable->protect ==
nullptr) {
134 return self->vtable->protect(
self, unprotected_slices, protected_slices);
141 self->vtable ==
nullptr || protected_slices ==
nullptr ||
142 unprotected_slices ==
nullptr) {
145 if (
self->vtable->unprotect ==
nullptr) {
148 return self->vtable->unprotect(
self, protected_slices, unprotected_slices);
152 if (
self ==
nullptr) {
155 if (
self->vtable->destruct !=
nullptr) {
156 self->vtable->destruct(
self);
169 if (
self ==
nullptr) {
173 self->iovec_rp, max_protected_frame_size);
void alts_grpc_record_protocol_convert_slice_buffer_to_iovec(alts_grpc_record_protocol *rp, const grpc_slice_buffer *sb)
tsi_result alts_grpc_record_protocol_protect(alts_grpc_record_protocol *self, grpc_slice_buffer *unprotected_slices, grpc_slice_buffer *protected_slices)
tsi_result alts_grpc_record_protocol_init(alts_grpc_record_protocol *rp, gsec_aead_crypter *crypter, size_t overflow_size, bool is_client, bool is_integrity_only, bool is_protect)
GPRAPI void gpr_free(void *ptr)
GPRAPI void * gpr_malloc(size_t size)
void alts_grpc_record_protocol_copy_slice_buffer(const grpc_slice_buffer *src, unsigned char *dst)
void alts_iovec_record_protocol_destroy(alts_iovec_record_protocol *rp)
size_t alts_grpc_record_protocol_max_unprotected_data_size(const alts_grpc_record_protocol *self, size_t max_protected_frame_size)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
GPRAPI void * gpr_realloc(void *p, size_t size)
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
static void ensure_iovec_buf_size(alts_grpc_record_protocol *rp, const grpc_slice_buffer *sb)
#define GRPC_SLICE_START_PTR(slice)
size_t alts_iovec_record_protocol_get_header_length()
grpc_slice_buffer header_sb
unsigned char * header_buf
GPRAPI void grpc_slice_buffer_init(grpc_slice_buffer *sb)
#define GRPC_SLICE_LENGTH(slice)
iovec_t alts_grpc_record_protocol_get_header_iovec(alts_grpc_record_protocol *rp)
tsi_result alts_grpc_record_protocol_unprotect(alts_grpc_record_protocol *self, grpc_slice_buffer *protected_slices, grpc_slice_buffer *unprotected_slices)
size_t alts_iovec_record_protocol_get_tag_length(const alts_iovec_record_protocol *rp)
const size_t kInitialIovecBufferSize
size_t alts_iovec_record_protocol_max_unprotected_data_size(const alts_iovec_record_protocol *rp, size_t max_protected_frame_size)
grpc_status_code alts_iovec_record_protocol_create(gsec_aead_crypter *crypter, size_t overflow_size, bool is_client, bool is_integrity_only, bool is_protect, alts_iovec_record_protocol **rp, char **error_details)
void alts_grpc_record_protocol_destroy(alts_grpc_record_protocol *self)
alts_iovec_record_protocol * iovec_rp
void grpc_slice_buffer_destroy_internal(grpc_slice_buffer *sb)
PHP_PROTO_OBJECT_FREE_END PHP_PROTO_OBJECT_DTOR_END intern self
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:40