Macros | Functions
local_security_connector.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/security/security_connector/local/local_security_connector.h"
#include <string.h>
#include <string>
#include <utility>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include <grpc/grpc.h>
#include <grpc/grpc_security_constants.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include "src/core/ext/filters/client_channel/client_channel.h"
#include "src/core/lib/address_utils/parse_address.h"
#include "src/core/lib/address_utils/sockaddr_utils.h"
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/gprpp/debug_location.h"
#include "src/core/lib/gprpp/ref_counted_ptr.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/resolved_address.h"
#include "src/core/lib/iomgr/sockaddr.h"
#include "src/core/lib/iomgr/socket_utils.h"
#include "src/core/lib/iomgr/unix_sockets_posix.h"
#include "src/core/lib/promise/arena_promise.h"
#include "src/core/lib/promise/poll.h"
#include "src/core/lib/promise/promise.h"
#include "src/core/lib/security/context/security_context.h"
#include "src/core/lib/security/credentials/credentials.h"
#include "src/core/lib/security/credentials/local/local_credentials.h"
#include "src/core/lib/security/transport/security_handshaker.h"
#include "src/core/lib/transport/handshaker.h"
#include "src/core/lib/uri/uri_parser.h"
#include "src/core/tsi/local_transport_security.h"
#include "src/core/tsi/transport_security.h"
#include "src/core/tsi/transport_security_interface.h"
Include dependency graph for local_security_connector.cc:

Go to the source code of this file.

Macros

#define GRPC_ABSTRACT_UDS_URI_PATTERN   "unix-abstract:"
 
#define GRPC_LOCAL_TRANSPORT_SECURITY_TYPE   "local"
 
#define GRPC_UDS_URI_PATTERN   "unix:"
 

Functions

grpc_core::RefCountedPtr< grpc_channel_security_connectorgrpc_local_channel_security_connector_create (grpc_core::RefCountedPtr< grpc_channel_credentials > channel_creds, grpc_core::RefCountedPtr< grpc_call_credentials > request_metadata_creds, const grpc_channel_args *args, const char *target_name)
 
grpc_core::RefCountedPtr< grpc_server_security_connectorgrpc_local_server_security_connector_create (grpc_core::RefCountedPtr< grpc_server_credentials > server_creds)
 

Macro Definition Documentation

◆ GRPC_ABSTRACT_UDS_URI_PATTERN

#define GRPC_ABSTRACT_UDS_URI_PATTERN   "unix-abstract:"

Definition at line 67 of file local_security_connector.cc.

◆ GRPC_LOCAL_TRANSPORT_SECURITY_TYPE

#define GRPC_LOCAL_TRANSPORT_SECURITY_TYPE   "local"

Definition at line 68 of file local_security_connector.cc.

◆ GRPC_UDS_URI_PATTERN

#define GRPC_UDS_URI_PATTERN   "unix:"

Definition at line 66 of file local_security_connector.cc.

Function Documentation

◆ grpc_local_channel_security_connector_create()

grpc_core::RefCountedPtr<grpc_channel_security_connector> grpc_local_channel_security_connector_create ( grpc_core::RefCountedPtr< grpc_channel_credentials channel_creds,
grpc_core::RefCountedPtr< grpc_call_credentials request_metadata_creds,
const grpc_channel_args args,
const char *  target_name 
)

This method creates a local channel security connector.

  • channel_creds: channel credential instance.
  • request_metadata_creds: credential object which will be sent with each request. This parameter can be nullptr.
  • target_name: the name of the endpoint that the channel is connecting to.
  • args: channel args passed from the caller.
  • sc: address of local channel security connector instance to be returned from the method.

It returns nullptr on failure.

Definition at line 266 of file local_security_connector.cc.

◆ grpc_local_server_security_connector_create()

grpc_core::RefCountedPtr<grpc_server_security_connector> grpc_local_server_security_connector_create ( grpc_core::RefCountedPtr< grpc_server_credentials server_creds)

This method creates a local server security connector.

  • server_creds: server credential instance.
  • sc: address of local server security connector instance to be returned from the method.

It returns nullptr on failure.

Definition at line 298 of file local_security_connector.cc.



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