#include <grpc/support/port_platform.h>
#include "src/core/tsi/local_transport_security.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include "src/core/lib/gprpp/crash.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/tsi/transport_security_grpc.h"
namespace {
local_zero_copy_grpc_protector;
local_tsi_handshaker_result;
local_tsi_handshaker;
tsi_result handshaker_result_extract_peer(const tsi_handshaker_result* ,
tsi_peer* ) { … }
tsi_result handshaker_result_get_frame_protector_type(
const tsi_handshaker_result* ,
tsi_frame_protector_type* frame_protector_type) { … }
tsi_result handshaker_result_get_unused_bytes(const tsi_handshaker_result* self,
const unsigned char** bytes,
size_t* bytes_size) { … }
void handshaker_result_destroy(tsi_handshaker_result* self) { … }
const tsi_handshaker_result_vtable result_vtable = …;
tsi_result create_handshaker_result(const unsigned char* received_bytes,
size_t received_bytes_size,
tsi_handshaker_result** self) { … }
tsi_result handshaker_next(tsi_handshaker* self,
const unsigned char* received_bytes,
size_t received_bytes_size,
const unsigned char** ,
size_t* bytes_to_send_size,
tsi_handshaker_result** result,
tsi_handshaker_on_next_done_cb ,
void* , std::string* error) { … }
void handshaker_destroy(tsi_handshaker* self) { … }
const tsi_handshaker_vtable handshaker_vtable = …;
}
tsi_result tsi_local_handshaker_create(tsi_handshaker** self) { … }