|
GRPC Core
9.0.0
|
#include <grpc/support/port_platform.h>#include "src/core/tsi/alts/handshaker/alts_tsi_handshaker.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 <grpc/support/sync.h>#include <grpc/support/thd_id.h>#include "src/core/lib/gprpp/sync.h"#include "src/core/lib/gprpp/thd.h"#include "src/core/lib/iomgr/closure.h"#include "src/core/lib/slice/slice_internal.h"#include "src/core/lib/surface/channel.h"#include "src/core/tsi/alts/frame_protector/alts_frame_protector.h"#include "src/core/tsi/alts/handshaker/alts_handshaker_client.h"#include "src/core/tsi/alts/handshaker/alts_shared_resource.h"#include "src/core/tsi/alts/handshaker/alts_tsi_utils.h"#include "src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.h"Data Structures | |
| struct | alts_tsi_handshaker |
| struct | alts_tsi_handshaker_result |
| struct | alts_tsi_handshaker_continue_handshaker_next_args |
Namespaces | |
| grpc_core | |
| Round Robin Policy. | |
| grpc_core::internal | |
Typedefs | |
| typedef struct alts_tsi_handshaker_result | alts_tsi_handshaker_result |
| typedef struct alts_tsi_handshaker_result alts_tsi_handshaker_result |
| tsi_result alts_tsi_handshaker_create | ( | const grpc_alts_credentials_options * | options, |
| const char * | target_name, | ||
| const char * | handshaker_service_url, | ||
| bool | is_client, | ||
| grpc_pollset_set * | interested_parties, | ||
| tsi_handshaker ** | self | ||
| ) |
This method creates a ALTS TSI handshaker instance.
It returns TSI_OK on success and an error status code on failure. Note that if interested_parties is nullptr, a dedicated TSI thread will be created and used.
| bool alts_tsi_handshaker_has_shutdown | ( | alts_tsi_handshaker * | handshaker | ) |
This method returns a boolean value indicating if an ALTS TSI handshaker has been shutdown or not.
| tsi_result alts_tsi_handshaker_result_create | ( | grpc_gcp_HandshakerResp * | resp, |
| bool | is_client, | ||
| tsi_handshaker_result ** | result | ||
| ) |
This method creates an ALTS TSI handshaker result instance.
| void alts_tsi_handshaker_result_set_unused_bytes | ( | tsi_handshaker_result * | result, |
| grpc_slice * | recv_bytes, | ||
| size_t | bytes_consumed | ||
| ) |
This method sets unused bytes of ALTS TSI handshaker result instance.