#include <grpc/support/port_platform.h>
#include "src/core/tsi/alts/handshaker/transport_security_common_api.h"
#include "upb/upb.hpp"
Go to the source code of this file.
Namespaces | |
grpc_core | |
grpc_core::internal | |
void grpc_gcp_rpc_protocol_versions_assign_from_upb | ( | grpc_gcp_rpc_protocol_versions * | versions, |
const grpc_gcp_RpcProtocolVersions * | value | ||
) |
Assigns value of upb RpcProtocolVersions to grpc_gcp_rpc_protocol_versions.
Definition at line 110 of file transport_security_common_api.cc.
bool grpc_gcp_rpc_protocol_versions_check | ( | const grpc_gcp_rpc_protocol_versions * | local_versions, |
const grpc_gcp_rpc_protocol_versions * | peer_versions, | ||
grpc_gcp_rpc_protocol_versions_version * | highest_common_version | ||
) |
This method performs a version check between local and peer rpc protocol versions.
The method returns true if the check passes which means both parties agreed on a common rpc protocol to use, and false otherwise.
Definition at line 194 of file transport_security_common_api.cc.
bool grpc_gcp_rpc_protocol_versions_copy | ( | const grpc_gcp_rpc_protocol_versions * | src, |
grpc_gcp_rpc_protocol_versions * | dst | ||
) |
This method performs a deep copy operation on rpc protocol versions instance.
The method returns true on success and false otherwise.
Definition at line 154 of file transport_security_common_api.cc.
bool grpc_gcp_rpc_protocol_versions_decode | ( | const grpc_slice & | slice, |
grpc_gcp_rpc_protocol_versions * | versions | ||
) |
This method de-serializes input in grpc slice form and stores the result in rpc protocol versions.
The method returns true on success and false otherwise.
Definition at line 89 of file transport_security_common_api.cc.
bool grpc_gcp_rpc_protocol_versions_encode | ( | const grpc_gcp_rpc_protocol_versions * | versions, |
grpc_slice * | slice | ||
) |
This method serializes an rpc protocol version and returns serialized rpc versions in grpc slice.
The method returns true on success and false otherwise.
Definition at line 53 of file transport_security_common_api.cc.
bool grpc_gcp_rpc_protocol_versions_encode | ( | const grpc_gcp_RpcProtocolVersions * | versions, |
upb_Arena * | arena, | ||
grpc_slice * | slice | ||
) |
This method serializes an rpc protocol version and returns serialized rpc versions in grpc slice.
The method returns true on success and false otherwise.
Definition at line 70 of file transport_security_common_api.cc.
bool grpc_gcp_rpc_protocol_versions_set_max | ( | grpc_gcp_rpc_protocol_versions * | versions, |
uint32_t | max_major, | ||
uint32_t | max_minor | ||
) |
This method sets the value for max_rpc_versions field of rpc protocol versions.
The method returns true on success and false otherwise.
Definition at line 25 of file transport_security_common_api.cc.
bool grpc_gcp_rpc_protocol_versions_set_min | ( | grpc_gcp_rpc_protocol_versions * | versions, |
uint32_t | min_major, | ||
uint32_t | min_minor | ||
) |
This method sets the value for min_rpc_versions field of rpc protocol versions.
The method returns true on success and false otherwise.
Definition at line 39 of file transport_security_common_api.cc.
void grpc_gcp_RpcProtocolVersions_assign_from_struct | ( | grpc_gcp_RpcProtocolVersions * | versions, |
upb_Arena * | arena, | ||
const grpc_gcp_rpc_protocol_versions * | value | ||
) |
Assigns value of struct grpc_gcp_rpc_protocol_versions to RpcProtocolVersions.
Definition at line 137 of file transport_security_common_api.cc.