Namespaces | Macros | Functions
security_handshaker.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/security/transport/security_handshaker.h"
#include <limits.h>
#include <stdint.h>
#include <string.h>
#include <limits>
#include <memory>
#include <string>
#include "absl/base/attributes.h"
#include "absl/container/inlined_vector.h"
#include "absl/memory/memory.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "absl/types/optional.h"
#include <grpc/grpc_security.h>
#include <grpc/grpc_security_constants.h>
#include <grpc/slice.h>
#include <grpc/slice_buffer.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/channel/channelz.h"
#include "src/core/lib/config/core_configuration.h"
#include "src/core/lib/gprpp/debug_location.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/gprpp/sync.h"
#include "src/core/lib/gprpp/unique_type_name.h"
#include "src/core/lib/iomgr/closure.h"
#include "src/core/lib/iomgr/endpoint.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/iomgr/iomgr_fwd.h"
#include "src/core/lib/iomgr/tcp_server.h"
#include "src/core/lib/security/context/security_context.h"
#include "src/core/lib/security/transport/secure_endpoint.h"
#include "src/core/lib/security/transport/tsi_error.h"
#include "src/core/lib/slice/slice_internal.h"
#include "src/core/lib/slice/slice_refcount.h"
#include "src/core/lib/transport/handshaker.h"
#include "src/core/lib/transport/handshaker_factory.h"
#include "src/core/lib/transport/handshaker_registry.h"
#include "src/core/tsi/transport_security_grpc.h"
Include dependency graph for security_handshaker.cc:

Go to the source code of this file.

Namespaces

 grpc_core
 

Macros

#define GRPC_INITIAL_HANDSHAKE_BUFFER_SIZE   256
 

Functions

grpc_handshakergrpc_security_handshaker_create (tsi_handshaker *handshaker, grpc_security_connector *connector, const grpc_channel_args *args)
 
RefCountedPtr< Handshaker > grpc_core::SecurityHandshakerCreate (tsi_handshaker *handshaker, grpc_security_connector *connector, const grpc_channel_args *args)
 Creates a security handshaker using handshaker. More...
 
void grpc_core::SecurityRegisterHandshakerFactories (CoreConfiguration::Builder *)
 Registers security handshaker factories. More...
 

Macro Definition Documentation

◆ GRPC_INITIAL_HANDSHAKE_BUFFER_SIZE

#define GRPC_INITIAL_HANDSHAKE_BUFFER_SIZE   256

Definition at line 68 of file security_handshaker.cc.

Function Documentation

◆ grpc_security_handshaker_create()

grpc_handshaker* grpc_security_handshaker_create ( tsi_handshaker handshaker,
grpc_security_connector connector,
const grpc_channel_args args 
)

Definition at line 681 of file security_handshaker.cc.

Variable Documentation

◆ args_

HandshakerArgs* args_ = nullptr
private

Definition at line 123 of file security_handshaker.cc.

◆ auth_context_

RefCountedPtr<grpc_auth_context> auth_context_
private

Definition at line 132 of file security_handshaker.cc.

◆ connector_

RefCountedPtr<grpc_security_connector> connector_
private

Definition at line 113 of file security_handshaker.cc.

◆ endpoint_to_destroy_

grpc_endpoint* endpoint_to_destroy_ = nullptr
private

Definition at line 119 of file security_handshaker.cc.

◆ handshake_buffer_

unsigned char* handshake_buffer_
private

Definition at line 127 of file security_handshaker.cc.

◆ handshake_buffer_size_

size_t handshake_buffer_size_
private

Definition at line 126 of file security_handshaker.cc.

◆ handshaker_

tsi_handshaker* handshaker_
private

Definition at line 112 of file security_handshaker.cc.

◆ handshaker_result_

tsi_handshaker_result* handshaker_result_ = nullptr
private

Definition at line 133 of file security_handshaker.cc.

◆ is_shutdown_

bool is_shutdown_ = false
private

Definition at line 117 of file security_handshaker.cc.

◆ max_frame_size_

size_t max_frame_size_ = 0
private

Definition at line 134 of file security_handshaker.cc.

◆ mu_

Mutex mu_
private

Definition at line 115 of file security_handshaker.cc.

◆ on_handshake_data_received_from_peer_

grpc_closure on_handshake_data_received_from_peer_
private

Definition at line 130 of file security_handshaker.cc.

◆ on_handshake_data_sent_to_peer_

grpc_closure on_handshake_data_sent_to_peer_
private

Definition at line 129 of file security_handshaker.cc.

◆ on_handshake_done_

grpc_closure* on_handshake_done_ = nullptr
private

Definition at line 124 of file security_handshaker.cc.

◆ on_peer_checked_

grpc_closure on_peer_checked_
private

Definition at line 131 of file security_handshaker.cc.

◆ outgoing_

grpc_slice_buffer outgoing_
private

Definition at line 128 of file security_handshaker.cc.

◆ read_buffer_to_destroy_

grpc_slice_buffer* read_buffer_to_destroy_ = nullptr
private

Definition at line 120 of file security_handshaker.cc.



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