GRPC Core  18.0.0
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 <stdbool.h>
#include <string.h>
#include <grpc/grpc.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/ref_counted_ptr.h"
#include "src/core/lib/iomgr/pollset.h"
#include "src/core/lib/iomgr/resolve_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/security/credentials/local/local_credentials.h"
#include "src/core/lib/security/transport/security_handshaker.h"
#include "src/core/lib/uri/uri_parser.h"
#include "src/core/tsi/local_transport_security.h"

Macros

#define GRPC_UDS_URI_PATTERN   "unix:"
 
#define GRPC_LOCAL_TRANSPORT_SECURITY_TYPE   "local"
 

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)
 This method creates a local channel security connector. More...
 
grpc_core::RefCountedPtr< grpc_server_security_connectorgrpc_local_server_security_connector_create (grpc_core::RefCountedPtr< grpc_server_credentials > server_creds)
 This method creates a local server security connector. More...
 

Macro Definition Documentation

◆ GRPC_LOCAL_TRANSPORT_SECURITY_TYPE

#define GRPC_LOCAL_TRANSPORT_SECURITY_TYPE   "local"

◆ GRPC_UDS_URI_PATTERN

#define GRPC_UDS_URI_PATTERN   "unix:"

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.

◆ 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.