GRPC C++  1.30.0
Data Structures | Macros | Typedefs | Functions
grpc_security.h File Reference
#include <grpc/support/port_platform.h>
#include <grpc/grpc.h>
#include <grpc/grpc_security_constants.h>
#include <grpc/status.h>

Go to the source code of this file.

Data Structures

struct  grpc_auth_property_iterator
 
struct  grpc_auth_property
 value, if not NULL, is guaranteed to be NULL terminated. More...
 
struct  grpc_ssl_pem_key_cert_pair
 Object that holds a private key / certificate chain pair in PEM format. More...
 
struct  verify_peer_options
 Deprecated in favor of grpc_ssl_verify_peer_options. More...
 
struct  grpc_ssl_verify_peer_options
 Object that holds additional peer-verification options on a secure channel. More...
 
struct  grpc_sts_credentials_options
 Options for creating STS Oauth Token Exchange credentials following the IETF draft https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16. More...
 
struct  grpc_auth_metadata_context
 Context that can be used by metadata credentials plugin in order to create auth related metadata. More...
 
struct  grpc_metadata_credentials_plugin
 grpc_metadata_credentials plugin is an API user provided structure used to create grpc_credentials objects that can be set on a channel (composed) or a call. More...
 
struct  grpc_auth_metadata_processor
 Pluggable server-side metadata processor object. More...
 
struct  grpc_tls_credential_reload_arg
 A struct containing all information necessary to schedule/cancel a credential reload request. More...
 
struct  grpc_tls_server_authorization_check_arg
 A struct containing all information necessary to schedule/cancel a server authorization check request. More...
 

Macros

#define GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX   4
 Maximum number of metadata entries returnable by a credentials plugin via a synchronous return. More...
 

Typedefs

typedef struct grpc_auth_context grpc_auth_context
 — Authentication Context. More...
 
typedef struct grpc_auth_property_iterator grpc_auth_property_iterator
 
typedef struct grpc_auth_property grpc_auth_property
 value, if not NULL, is guaranteed to be NULL terminated. More...
 
typedef struct grpc_ssl_session_cache grpc_ssl_session_cache
 — SSL Session Cache. More...
 
typedef struct grpc_channel_credentials grpc_channel_credentials
 — grpc_channel_credentials object. More...
 
typedef grpc_ssl_roots_override_result(* grpc_ssl_roots_override_callback) (char **pem_root_certs)
 Callback for getting the SSL roots override from the application. More...
 
typedef struct grpc_call_credentials grpc_call_credentials
 — grpc_call_credentials object. More...
 
typedef void(* grpc_credentials_plugin_metadata_cb) (void *user_data, const grpc_metadata *creds_md, size_t num_creds_md, grpc_status_code status, const char *error_details)
 Callback function to be called by the metadata credentials plugin implementation when the metadata is ready. More...
 
typedef struct grpc_server_credentials grpc_server_credentials
 — grpc_server_credentials object. More...
 
typedef struct grpc_ssl_server_certificate_config grpc_ssl_server_certificate_config
 Server certificate config object holds the server's public certificates and associated private keys, as well as any CA certificates needed for client certificate validation (if applicable). More...
 
typedef grpc_ssl_certificate_config_reload_status(* grpc_ssl_server_certificate_config_callback) (void *user_data, grpc_ssl_server_certificate_config **config)
 Callback to retrieve updated SSL server certificates, private keys, and trusted CAs (for client authentication). More...
 
typedef struct grpc_ssl_server_credentials_options grpc_ssl_server_credentials_options
 
typedef void(* grpc_process_auth_metadata_done_cb) (void *user_data, const grpc_metadata *consumed_md, size_t num_consumed_md, const grpc_metadata *response_md, size_t num_response_md, grpc_status_code status, const char *error_details)
 — Auth Metadata Processing — More...
 
typedef struct grpc_alts_credentials_options grpc_alts_credentials_options
 — ALTS channel/server credentials — More...
 
typedef struct grpc_tls_error_details grpc_tls_error_details
 — TLS channel/server credentials — It is used for experimental purpose for now and subject to change. More...
 
typedef struct grpc_tls_key_materials_config grpc_tls_key_materials_config
 Config for TLS key materials. More...
 
typedef struct grpc_tls_credential_reload_config grpc_tls_credential_reload_config
 Config for TLS credential reload. More...
 
typedef struct grpc_tls_server_authorization_check_config grpc_tls_server_authorization_check_config
 Config for TLS server authorization check. More...
 
typedef struct grpc_tls_credentials_options grpc_tls_credentials_options
 TLS credentials options. More...
 
typedef struct grpc_tls_credential_reload_arg grpc_tls_credential_reload_arg
 — TLS credential reload config. More...
 
typedef void(* grpc_tls_on_credential_reload_done_cb) (grpc_tls_credential_reload_arg *arg)
 A callback function provided by gRPC to handle the result of credential reload. More...
 
typedef struct grpc_tls_server_authorization_check_arg grpc_tls_server_authorization_check_arg
 — TLS server authorization check config. More...
 
typedef void(* grpc_tls_on_server_authorization_check_done_cb) (grpc_tls_server_authorization_check_arg *arg)
 callback function provided by gRPC used to handle the result of server authorization check. More...
 

Functions

const GRPCAPI grpc_auth_propertygrpc_auth_property_iterator_next (grpc_auth_property_iterator *it)
 Returns NULL when the iterator is at the end. More...
 
GRPCAPI grpc_auth_property_iterator grpc_auth_context_property_iterator (const grpc_auth_context *ctx)
 Iterates over the auth context. More...
 
GRPCAPI grpc_auth_property_iterator grpc_auth_context_peer_identity (const grpc_auth_context *ctx)
 Gets the peer identity. More...
 
GRPCAPI grpc_auth_property_iterator grpc_auth_context_find_properties_by_name (const grpc_auth_context *ctx, const char *name)
 Finds a property in the context. More...
 
const GRPCAPI char * grpc_auth_context_peer_identity_property_name (const grpc_auth_context *ctx)
 Gets the name of the property that indicates the peer identity. More...
 
GRPCAPI int grpc_auth_context_peer_is_authenticated (const grpc_auth_context *ctx)
 Returns 1 if the peer is authenticated, 0 otherwise. More...
 
GRPCAPI grpc_auth_contextgrpc_call_auth_context (grpc_call *call)
 Gets the auth context from the call. More...
 
GRPCAPI void grpc_auth_context_release (grpc_auth_context *context)
 Releases the auth context returned from grpc_call_auth_context. More...
 
GRPCAPI void grpc_auth_context_add_property (grpc_auth_context *ctx, const char *name, const char *value, size_t value_length)
 – The following auth context methods should only be called by a server metadata More...
 
GRPCAPI void grpc_auth_context_add_cstring_property (grpc_auth_context *ctx, const char *name, const char *value)
 Add a C string property. More...
 
GRPCAPI int grpc_auth_context_set_peer_identity_property_name (grpc_auth_context *ctx, const char *name)
 Sets the property name. More...
 
GRPCAPI grpc_ssl_session_cachegrpc_ssl_session_cache_create_lru (size_t capacity)
 Create LRU cache for client-side SSL sessions with the given capacity. More...
 
GRPCAPI void grpc_ssl_session_cache_destroy (grpc_ssl_session_cache *cache)
 Destroy SSL session cache. More...
 
GRPCAPI grpc_arg grpc_ssl_session_cache_create_channel_arg (grpc_ssl_session_cache *cache)
 Create a channel arg with the given cache object. More...
 
GRPCAPI void grpc_channel_credentials_release (grpc_channel_credentials *creds)
 Releases a channel credentials object. More...
 
GRPCAPI grpc_channel_credentialsgrpc_google_default_credentials_create (void)
 Creates default credentials to connect to a google gRPC service. More...
 
GRPCAPI void grpc_set_ssl_roots_override_callback (grpc_ssl_roots_override_callback cb)
 Setup a callback to override the default TLS/SSL roots. More...
 
GRPCAPI grpc_channel_credentialsgrpc_ssl_credentials_create (const char *pem_root_certs, grpc_ssl_pem_key_cert_pair *pem_key_cert_pair, const verify_peer_options *verify_options, void *reserved)
 Deprecated in favor of grpc_ssl_server_credentials_create_ex. More...
 
GRPCAPI grpc_channel_credentialsgrpc_ssl_credentials_create_ex (const char *pem_root_certs, grpc_ssl_pem_key_cert_pair *pem_key_cert_pair, const grpc_ssl_verify_peer_options *verify_options, void *reserved)
 
GRPCAPI void grpc_call_credentials_release (grpc_call_credentials *creds)
 Releases a call credentials object. More...
 
GRPCAPI grpc_channel_credentialsgrpc_composite_channel_credentials_create (grpc_channel_credentials *channel_creds, grpc_call_credentials *call_creds, void *reserved)
 Creates a composite channel credentials object. More...
 
GRPCAPI grpc_call_credentialsgrpc_composite_call_credentials_create (grpc_call_credentials *creds1, grpc_call_credentials *creds2, void *reserved)
 Creates a composite call credentials object. More...
 
GRPCAPI grpc_call_credentialsgrpc_google_compute_engine_credentials_create (void *reserved)
 Creates a compute engine credentials object for connecting to Google. More...
 
GRPCAPI gpr_timespec grpc_max_auth_token_lifetime (void)
 
GRPCAPI grpc_call_credentialsgrpc_service_account_jwt_access_credentials_create (const char *json_key, gpr_timespec token_lifetime, void *reserved)
 Creates a JWT credentials object. More...
 
GRPCAPI grpc_call_credentialsgrpc_google_refresh_token_credentials_create (const char *json_refresh_token, void *reserved)
 Creates an Oauth2 Refresh Token credentials object for connecting to Google. More...
 
GRPCAPI grpc_call_credentialsgrpc_access_token_credentials_create (const char *access_token, void *reserved)
 Creates an Oauth2 Access Token credentials with an access token that was acquired by an out of band mechanism. More...
 
GRPCAPI grpc_call_credentialsgrpc_google_iam_credentials_create (const char *authorization_token, const char *authority_selector, void *reserved)
 Creates an IAM credentials object for connecting to Google. More...
 
GRPCAPI grpc_call_credentialsgrpc_sts_credentials_create (const grpc_sts_credentials_options *options, void *reserved)
 Creates an STS credentials following the STS Token Exchanged specifed in the IETF draft https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16. More...
 
GRPCAPI grpc_call_credentialsgrpc_metadata_credentials_create_from_plugin (grpc_metadata_credentials_plugin plugin, grpc_security_level min_security_level, void *reserved)
 Creates a credentials object from a plugin with a specified minimum security level. More...
 
GRPCAPI grpc_channelgrpc_secure_channel_create (grpc_channel_credentials *creds, const char *target, const grpc_channel_args *args, void *reserved)
 — Secure channel creation. More...
 
GRPCAPI void grpc_server_credentials_release (grpc_server_credentials *creds)
 Releases a server_credentials object. More...
 
GRPCAPI grpc_ssl_server_certificate_configgrpc_ssl_server_certificate_config_create (const char *pem_root_certs, const grpc_ssl_pem_key_cert_pair *pem_key_cert_pairs, size_t num_key_cert_pairs)
 Creates a grpc_ssl_server_certificate_config object. More...
 
GRPCAPI void grpc_ssl_server_certificate_config_destroy (grpc_ssl_server_certificate_config *config)
 Destroys a grpc_ssl_server_certificate_config object. More...
 
GRPCAPI grpc_server_credentialsgrpc_ssl_server_credentials_create (const char *pem_root_certs, grpc_ssl_pem_key_cert_pair *pem_key_cert_pairs, size_t num_key_cert_pairs, int force_client_auth, void *reserved)
 Deprecated in favor of grpc_ssl_server_credentials_create_ex. More...
 
GRPCAPI grpc_server_credentialsgrpc_ssl_server_credentials_create_ex (const char *pem_root_certs, grpc_ssl_pem_key_cert_pair *pem_key_cert_pairs, size_t num_key_cert_pairs, grpc_ssl_client_certificate_request_type client_certificate_request, void *reserved)
 Deprecated in favor of grpc_ssl_server_credentials_create_with_options. More...
 
GRPCAPI grpc_ssl_server_credentials_optionsgrpc_ssl_server_credentials_create_options_using_config (grpc_ssl_client_certificate_request_type client_certificate_request, grpc_ssl_server_certificate_config *certificate_config)
 Creates an options object using a certificate config. More...
 
GRPCAPI grpc_ssl_server_credentials_optionsgrpc_ssl_server_credentials_create_options_using_config_fetcher (grpc_ssl_client_certificate_request_type client_certificate_request, grpc_ssl_server_certificate_config_callback cb, void *user_data)
 Creates an options object using a certificate config fetcher. More...
 
GRPCAPI void grpc_ssl_server_credentials_options_destroy (grpc_ssl_server_credentials_options *options)
 Destroys a grpc_ssl_server_credentials_options object. More...
 
GRPCAPI grpc_server_credentialsgrpc_ssl_server_credentials_create_with_options (grpc_ssl_server_credentials_options *options)
 Creates an SSL server_credentials object using the provided options struct. More...
 
GRPCAPI int grpc_server_add_secure_http2_port (grpc_server *server, const char *addr, grpc_server_credentials *creds)
 — Server-side secure ports. More...
 
GRPCAPI grpc_call_error grpc_call_set_credentials (grpc_call *call, grpc_call_credentials *creds)
 — Call specific credentials. More...
 
GRPCAPI void grpc_server_credentials_set_auth_metadata_processor (grpc_server_credentials *creds, grpc_auth_metadata_processor processor)
 
GRPCAPI grpc_alts_credentials_optionsgrpc_alts_credentials_client_options_create (void)
 This method creates a grpc ALTS credentials client options instance. More...
 
GRPCAPI grpc_alts_credentials_optionsgrpc_alts_credentials_server_options_create (void)
 This method creates a grpc ALTS credentials server options instance. More...
 
GRPCAPI void grpc_alts_credentials_client_options_add_target_service_account (grpc_alts_credentials_options *options, const char *service_account)
 This method adds a target service account to grpc client's ALTS credentials options instance. More...
 
GRPCAPI void grpc_alts_credentials_options_destroy (grpc_alts_credentials_options *options)
 This method destroys a grpc_alts_credentials_options instance by de-allocating all of its occupied memory. More...
 
GRPCAPI grpc_channel_credentialsgrpc_alts_credentials_create (const grpc_alts_credentials_options *options)
 This method creates an ALTS channel credential object. More...
 
GRPCAPI grpc_server_credentialsgrpc_alts_server_credentials_create (const grpc_alts_credentials_options *options)
 This method creates an ALTS server credential object. More...
 
GRPCAPI grpc_channel_credentialsgrpc_local_credentials_create (grpc_local_connect_type type)
 — Local channel/server credentials — More...
 
GRPCAPI grpc_server_credentialsgrpc_local_server_credentials_create (grpc_local_connect_type type)
 This method creates a local server credential object. More...
 
GRPCAPI grpc_tls_credentials_optionsgrpc_tls_credentials_options_create (void)
 Create an empty TLS credentials options. More...
 
GRPCAPI int grpc_tls_credentials_options_set_cert_request_type (grpc_tls_credentials_options *options, grpc_ssl_client_certificate_request_type type)
 Set grpc_ssl_client_certificate_request_type field in credentials options with the provided type. More...
 
GRPCAPI int grpc_tls_credentials_options_set_server_verification_option (grpc_tls_credentials_options *options, grpc_tls_server_verification_option server_verification_option)
 Set grpc_tls_server_verification_option field in credentials options with the provided server_verification_option. More...
 
GRPCAPI int grpc_tls_credentials_options_set_key_materials_config (grpc_tls_credentials_options *options, grpc_tls_key_materials_config *config)
 Set grpc_tls_key_materials_config field in credentials options with the provided config struct whose ownership is transferred. More...
 
GRPCAPI int grpc_tls_credentials_options_set_credential_reload_config (grpc_tls_credentials_options *options, grpc_tls_credential_reload_config *config)
 Set grpc_tls_credential_reload_config field in credentials options with the provided config struct whose ownership is transferred. More...
 
GRPCAPI int grpc_tls_credentials_options_set_server_authorization_check_config (grpc_tls_credentials_options *options, grpc_tls_server_authorization_check_config *config)
 Set grpc_tls_server_authorization_check_config field in credentials options with the provided config struct whose ownership is transferred. More...
 
GRPCAPI grpc_tls_key_materials_configgrpc_tls_key_materials_config_create (void)
 — TLS key materials config. More...
 
GRPCAPI int grpc_tls_key_materials_config_set_key_materials (grpc_tls_key_materials_config *config, const char *pem_root_certs, const grpc_ssl_pem_key_cert_pair **pem_key_cert_pairs, size_t num_key_cert_pairs)
 Set grpc_tls_key_materials_config instance with provided a TLS certificate. More...
 
GRPCAPI int grpc_tls_key_materials_config_set_version (grpc_tls_key_materials_config *config, int version)
 Set grpc_tls_key_materials_config instance with a provided version number, which is used to keep track of the version of key materials. More...
 
GRPCAPI int grpc_tls_key_materials_config_get_version (grpc_tls_key_materials_config *config)
 Get the version number of a grpc_tls_key_materials_config instance. More...
 
GRPCAPI grpc_tls_credential_reload_configgrpc_tls_credential_reload_config_create (const void *config_user_data, int(*schedule)(void *config_user_data, grpc_tls_credential_reload_arg *arg), void(*cancel)(void *config_user_data, grpc_tls_credential_reload_arg *arg), void(*destruct)(void *config_user_data))
 Create a grpc_tls_credential_reload_config instance. More...
 
GRPCAPI grpc_tls_server_authorization_check_configgrpc_tls_server_authorization_check_config_create (const void *config_user_data, int(*schedule)(void *config_user_data, grpc_tls_server_authorization_check_arg *arg), void(*cancel)(void *config_user_data, grpc_tls_server_authorization_check_arg *arg), void(*destruct)(void *config_user_data))
 Create a grpc_tls_server_authorization_check_config instance. More...
 
grpc_channel_credentialsgrpc_tls_credentials_create (grpc_tls_credentials_options *options)
 This method creates a TLS channel credential object. More...
 
grpc_server_credentialsgrpc_tls_server_credentials_create (grpc_tls_credentials_options *options)
 This method creates a TLS server credential object. More...
 

Macro Definition Documentation

◆ GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX

#define GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX   4

Maximum number of metadata entries returnable by a credentials plugin via a synchronous return.

Typedef Documentation

◆ grpc_alts_credentials_options

— ALTS channel/server credentials —

Main interface for ALTS credentials options. The options will contain information that will be passed from grpc to TSI layer such as RPC protocol versions. ALTS client (channel) and server credentials will have their own implementation of this interface. The APIs listed in this header are thread-compatible. It is used for experimental purpose for now and subject to change.

◆ grpc_auth_context

— Authentication Context.

◆ grpc_auth_property

value, if not NULL, is guaranteed to be NULL terminated.

◆ grpc_auth_property_iterator

◆ grpc_call_credentials

— grpc_call_credentials object.

A call credentials object represents a way to authenticate on a particular call. These credentials can be composed with a channel credentials object so that they are sent with every call on this channel.

◆ grpc_channel_credentials

— grpc_channel_credentials object.

A channel credentials object represents a way to authenticate a client on a channel.

◆ grpc_credentials_plugin_metadata_cb

typedef void(* grpc_credentials_plugin_metadata_cb) (void *user_data, const grpc_metadata *creds_md, size_t num_creds_md, grpc_status_code status, const char *error_details)

Callback function to be called by the metadata credentials plugin implementation when the metadata is ready.

  • user_data is the opaque pointer that was passed in the get_metadata method of the grpc_metadata_credentials_plugin (see below).
  • creds_md is an array of credentials metadata produced by the plugin. It may be set to NULL in case of an error.
  • num_creds_md is the number of items in the creds_md array.
  • status must be GRPC_STATUS_OK in case of success or another specific error code otherwise.
  • error_details contains details about the error if any. In case of success it should be NULL and will be otherwise ignored.

◆ grpc_process_auth_metadata_done_cb

typedef void(* grpc_process_auth_metadata_done_cb) (void *user_data, const grpc_metadata *consumed_md, size_t num_consumed_md, const grpc_metadata *response_md, size_t num_response_md, grpc_status_code status, const char *error_details)

— Auth Metadata Processing —

Callback function that is called when the metadata processing is done.

  • Consumed metadata will be removed from the set of metadata available on the call. consumed_md may be NULL if no metadata has been consumed.
  • Response metadata will be set on the response. response_md may be NULL.
  • status is GRPC_STATUS_OK for success or a specific status for an error. Common error status for auth metadata processing is either GRPC_STATUS_UNAUTHENTICATED in case of an authentication failure or GRPC_STATUS PERMISSION_DENIED in case of an authorization failure.
  • error_details gives details about the error. May be NULL.

◆ grpc_server_credentials

— grpc_server_credentials object.

A server credentials object represents a way to authenticate a server.

◆ grpc_ssl_roots_override_callback

typedef grpc_ssl_roots_override_result(* grpc_ssl_roots_override_callback) (char **pem_root_certs)

Callback for getting the SSL roots override from the application.

In case of success, *pem_roots_certs must be set to a NULL terminated string containing the list of PEM encoded root certificates. The ownership is passed to the core and freed (laster by the core) with gpr_free. If this function fails and GRPC_DEFAULT_SSL_ROOTS_FILE_PATH environment is set to a valid path, it will override the roots specified this func

◆ grpc_ssl_server_certificate_config

Server certificate config object holds the server's public certificates and associated private keys, as well as any CA certificates needed for client certificate validation (if applicable).

Create using grpc_ssl_server_certificate_config_create().

◆ grpc_ssl_server_certificate_config_callback

typedef grpc_ssl_certificate_config_reload_status( * grpc_ssl_server_certificate_config_callback) (void *user_data, grpc_ssl_server_certificate_config **config)

Callback to retrieve updated SSL server certificates, private keys, and trusted CAs (for client authentication).

  • user_data parameter, if not NULL, contains opaque data to be used by the callback.
  • Use grpc_ssl_server_certificate_config_create to create the config.
  • The caller assumes ownership of the config.

◆ grpc_ssl_server_credentials_options

◆ grpc_ssl_session_cache

— SSL Session Cache.

A SSL session cache object represents a way to cache client sessions between connections. Only ticket-based resumption is supported.

◆ grpc_tls_credential_reload_arg

— TLS credential reload config.

— It is used for experimental purpose for now and subject to change.

◆ grpc_tls_credential_reload_config

Config for TLS credential reload.

It is used for experimental purpose for now and subject to change.

◆ grpc_tls_credentials_options

TLS credentials options.

It is used for experimental purpose for now and subject to change.

◆ grpc_tls_error_details

— TLS channel/server credentials — It is used for experimental purpose for now and subject to change.

Struct for indicating errors. It is used for experimental purpose for now and subject to change.

◆ grpc_tls_key_materials_config

Config for TLS key materials.

It is used for experimental purpose for now and subject to change.

◆ grpc_tls_on_credential_reload_done_cb

typedef void(* grpc_tls_on_credential_reload_done_cb) (grpc_tls_credential_reload_arg *arg)

A callback function provided by gRPC to handle the result of credential reload.

It is used when schedule API is implemented asynchronously and serves to bring the control back to grpc C core. It is used for experimental purpose for now and subject to change.

◆ grpc_tls_on_server_authorization_check_done_cb

typedef void(* grpc_tls_on_server_authorization_check_done_cb) (grpc_tls_server_authorization_check_arg *arg)

callback function provided by gRPC used to handle the result of server authorization check.

It is used when schedule API is implemented asynchronously, and serves to bring the control back to gRPC C core. It is used for experimental purpose for now and subject to change.

◆ grpc_tls_server_authorization_check_arg

— TLS server authorization check config.

— It is used for experimental purpose for now and subject to change.

◆ grpc_tls_server_authorization_check_config

Config for TLS server authorization check.

It is used for experimental purpose for now and subject to change.

Function Documentation

◆ grpc_access_token_credentials_create()

GRPCAPI grpc_call_credentials* grpc_access_token_credentials_create ( const char *  access_token,
void *  reserved 
)

Creates an Oauth2 Access Token credentials with an access token that was acquired by an out of band mechanism.

◆ grpc_alts_credentials_client_options_add_target_service_account()

GRPCAPI void grpc_alts_credentials_client_options_add_target_service_account ( grpc_alts_credentials_options options,
const char *  service_account 
)

This method adds a target service account to grpc client's ALTS credentials options instance.

It is used for experimental purpose for now and subject to change.

  • options: grpc ALTS credentials options instance.
  • service_account: service account of target endpoint.

◆ grpc_alts_credentials_client_options_create()

GRPCAPI grpc_alts_credentials_options* grpc_alts_credentials_client_options_create ( void  )

This method creates a grpc ALTS credentials client options instance.

It is used for experimental purpose for now and subject to change.

◆ grpc_alts_credentials_create()

GRPCAPI grpc_channel_credentials* grpc_alts_credentials_create ( const grpc_alts_credentials_options options)

This method creates an ALTS channel credential object.

The security level of the resulting connection is GRPC_PRIVACY_AND_INTEGRITY. It is used for experimental purpose for now and subject to change.

  • options: grpc ALTS credentials options instance for client.

It returns the created ALTS channel credential object.

◆ grpc_alts_credentials_options_destroy()

GRPCAPI void grpc_alts_credentials_options_destroy ( grpc_alts_credentials_options options)

This method destroys a grpc_alts_credentials_options instance by de-allocating all of its occupied memory.

It is used for experimental purpose for now and subject to change.

  • options: a grpc_alts_credentials_options instance that needs to be destroyed.

◆ grpc_alts_credentials_server_options_create()

GRPCAPI grpc_alts_credentials_options* grpc_alts_credentials_server_options_create ( void  )

This method creates a grpc ALTS credentials server options instance.

It is used for experimental purpose for now and subject to change.

◆ grpc_alts_server_credentials_create()

GRPCAPI grpc_server_credentials* grpc_alts_server_credentials_create ( const grpc_alts_credentials_options options)

This method creates an ALTS server credential object.

It is used for experimental purpose for now and subject to change.

  • options: grpc ALTS credentials options instance for server.

It returns the created ALTS server credential object.

◆ grpc_auth_context_add_cstring_property()

GRPCAPI void grpc_auth_context_add_cstring_property ( grpc_auth_context ctx,
const char *  name,
const char *  value 
)

Add a C string property.

◆ grpc_auth_context_add_property()

GRPCAPI void grpc_auth_context_add_property ( grpc_auth_context ctx,
const char *  name,
const char *  value,
size_t  value_length 
)

– The following auth context methods should only be called by a server metadata

processor to set properties extracted from auth metadata.

Add a property.

◆ grpc_auth_context_find_properties_by_name()

GRPCAPI grpc_auth_property_iterator grpc_auth_context_find_properties_by_name ( const grpc_auth_context ctx,
const char *  name 
)

Finds a property in the context.

May return an empty iterator (first _next will return NULL) if no property with this name was found in the context.

◆ grpc_auth_context_peer_identity()

GRPCAPI grpc_auth_property_iterator grpc_auth_context_peer_identity ( const grpc_auth_context ctx)

Gets the peer identity.

Returns an empty iterator (first _next will return NULL) if the peer is not authenticated.

◆ grpc_auth_context_peer_identity_property_name()

const GRPCAPI char* grpc_auth_context_peer_identity_property_name ( const grpc_auth_context ctx)

Gets the name of the property that indicates the peer identity.

Will return NULL if the peer is not authenticated.

◆ grpc_auth_context_peer_is_authenticated()

GRPCAPI int grpc_auth_context_peer_is_authenticated ( const grpc_auth_context ctx)

Returns 1 if the peer is authenticated, 0 otherwise.

◆ grpc_auth_context_property_iterator()

GRPCAPI grpc_auth_property_iterator grpc_auth_context_property_iterator ( const grpc_auth_context ctx)

Iterates over the auth context.

◆ grpc_auth_context_release()

GRPCAPI void grpc_auth_context_release ( grpc_auth_context context)

Releases the auth context returned from grpc_call_auth_context.

◆ grpc_auth_context_set_peer_identity_property_name()

GRPCAPI int grpc_auth_context_set_peer_identity_property_name ( grpc_auth_context ctx,
const char *  name 
)

Sets the property name.

Returns 1 if successful or 0 in case of failure (which means that no property with this name exists).

◆ grpc_auth_property_iterator_next()

const GRPCAPI grpc_auth_property* grpc_auth_property_iterator_next ( grpc_auth_property_iterator it)

Returns NULL when the iterator is at the end.

◆ grpc_call_auth_context()

GRPCAPI grpc_auth_context* grpc_call_auth_context ( grpc_call call)

Gets the auth context from the call.

Caller needs to call grpc_auth_context_release on the returned context.

◆ grpc_call_credentials_release()

GRPCAPI void grpc_call_credentials_release ( grpc_call_credentials creds)

Releases a call credentials object.

The creator of the credentials object is responsible for its release.

◆ grpc_call_set_credentials()

GRPCAPI grpc_call_error grpc_call_set_credentials ( grpc_call call,
grpc_call_credentials creds 
)

— Call specific credentials.

— Sets a credentials to a call. Can only be called on the client side before grpc_call_start_batch.

◆ grpc_channel_credentials_release()

GRPCAPI void grpc_channel_credentials_release ( grpc_channel_credentials creds)

Releases a channel credentials object.

The creator of the credentials object is responsible for its release.

◆ grpc_composite_call_credentials_create()

GRPCAPI grpc_call_credentials* grpc_composite_call_credentials_create ( grpc_call_credentials creds1,
grpc_call_credentials creds2,
void *  reserved 
)

Creates a composite call credentials object.

◆ grpc_composite_channel_credentials_create()

GRPCAPI grpc_channel_credentials* grpc_composite_channel_credentials_create ( grpc_channel_credentials channel_creds,
grpc_call_credentials call_creds,
void *  reserved 
)

Creates a composite channel credentials object.

The security level of resulting connection is determined by channel_creds.

◆ grpc_google_compute_engine_credentials_create()

GRPCAPI grpc_call_credentials* grpc_google_compute_engine_credentials_create ( void *  reserved)

Creates a compute engine credentials object for connecting to Google.

WARNING: Do NOT use this credentials to connect to a non-google service as this could result in an oauth2 token leak.

◆ grpc_google_default_credentials_create()

GRPCAPI grpc_channel_credentials* grpc_google_default_credentials_create ( void  )

Creates default credentials to connect to a google gRPC service.

WARNING: Do NOT use this credentials to connect to a non-google service as this could result in an oauth2 token leak. The security level of the resulting connection is GRPC_PRIVACY_AND_INTEGRITY.

◆ grpc_google_iam_credentials_create()

GRPCAPI grpc_call_credentials* grpc_google_iam_credentials_create ( const char *  authorization_token,
const char *  authority_selector,
void *  reserved 
)

Creates an IAM credentials object for connecting to Google.

◆ grpc_google_refresh_token_credentials_create()

GRPCAPI grpc_call_credentials* grpc_google_refresh_token_credentials_create ( const char *  json_refresh_token,
void *  reserved 
)

Creates an Oauth2 Refresh Token credentials object for connecting to Google.

May return NULL if the input is invalid. WARNING: Do NOT use this credentials to connect to a non-google service as this could result in an oauth2 token leak.

  • json_refresh_token is the JSON string containing the refresh token itself along with a client_id and client_secret.

◆ grpc_local_credentials_create()

GRPCAPI grpc_channel_credentials* grpc_local_credentials_create ( grpc_local_connect_type  type)

— Local channel/server credentials —

This method creates a local channel credential object. The security level of the resulting connection is GRPC_PRIVACY_AND_INTEGRITY for UDS and GRPC_SECURITY_NONE for LOCAL_TCP. It is used for experimental purpose for now and subject to change.

  • type: local connection type

It returns the created local channel credential object.

◆ grpc_local_server_credentials_create()

GRPCAPI grpc_server_credentials* grpc_local_server_credentials_create ( grpc_local_connect_type  type)

This method creates a local server credential object.

It is used for experimental purpose for now and subject to change.

  • type: local connection type

It returns the created local server credential object.

◆ grpc_max_auth_token_lifetime()

GRPCAPI gpr_timespec grpc_max_auth_token_lifetime ( void  )

◆ grpc_metadata_credentials_create_from_plugin()

GRPCAPI grpc_call_credentials* grpc_metadata_credentials_create_from_plugin ( grpc_metadata_credentials_plugin  plugin,
grpc_security_level  min_security_level,
void *  reserved 
)

Creates a credentials object from a plugin with a specified minimum security level.

◆ grpc_secure_channel_create()

GRPCAPI grpc_channel* grpc_secure_channel_create ( grpc_channel_credentials creds,
const char *  target,
const grpc_channel_args args,
void *  reserved 
)

— Secure channel creation.

— Creates a secure channel using the passed-in credentials. Additional channel level configuration MAY be provided by grpc_channel_args, though the expectation is that most clients will want to simply pass NULL. The user data in 'args' need only live through the invocation of this function. However, if any args of the 'pointer' type are passed, then the referenced vtable must be maintained by the caller until grpc_channel_destroy terminates. See grpc_channel_args definition for more on this.

◆ grpc_server_add_secure_http2_port()

GRPCAPI int grpc_server_add_secure_http2_port ( grpc_server server,
const char *  addr,
grpc_server_credentials creds 
)

— Server-side secure ports.

— Add a HTTP2 over an encrypted link over tcp listener. Returns bound port number on success, 0 on failure. REQUIRES: server not started

◆ grpc_server_credentials_release()

GRPCAPI void grpc_server_credentials_release ( grpc_server_credentials creds)

Releases a server_credentials object.

The creator of the server_credentials object is responsible for its release.

◆ grpc_server_credentials_set_auth_metadata_processor()

GRPCAPI void grpc_server_credentials_set_auth_metadata_processor ( grpc_server_credentials creds,
grpc_auth_metadata_processor  processor 
)

◆ grpc_service_account_jwt_access_credentials_create()

GRPCAPI grpc_call_credentials* grpc_service_account_jwt_access_credentials_create ( const char *  json_key,
gpr_timespec  token_lifetime,
void *  reserved 
)

Creates a JWT credentials object.

May return NULL if the input is invalid.

  • json_key is the JSON key string containing the client's private key.
  • token_lifetime is the lifetime of each Json Web Token (JWT) created with this credentials. It should not exceed grpc_max_auth_token_lifetime or will be cropped to this value.

◆ grpc_set_ssl_roots_override_callback()

GRPCAPI void grpc_set_ssl_roots_override_callback ( grpc_ssl_roots_override_callback  cb)

Setup a callback to override the default TLS/SSL roots.

This function is not thread-safe and must be called at initialization time before any ssl credentials are created to have the desired side effect. If GRPC_DEFAULT_SSL_ROOTS_FILE_PATH environment is set to a valid path, the callback will not be called.

◆ grpc_ssl_credentials_create()

GRPCAPI grpc_channel_credentials* grpc_ssl_credentials_create ( const char *  pem_root_certs,
grpc_ssl_pem_key_cert_pair pem_key_cert_pair,
const verify_peer_options verify_options,
void *  reserved 
)

Deprecated in favor of grpc_ssl_server_credentials_create_ex.

It will be removed after all of its call sites are migrated to grpc_ssl_server_credentials_create_ex. Creates an SSL credentials object. The security level of the resulting connection is GRPC_PRIVACY_AND_INTEGRITY.

  • pem_root_certs is the NULL-terminated string containing the PEM encoding of the server root certificates. If this parameter is NULL, the implementation will first try to dereference the file pointed by the GRPC_DEFAULT_SSL_ROOTS_FILE_PATH environment variable, and if that fails, try to get the roots set by grpc_override_ssl_default_roots. Eventually, if all these fail, it will try to get the roots from a well-known place on disk (in the grpc install directory).

    gRPC has implemented root cache if the underlying OpenSSL library supports it. The gRPC root certificates cache is only applicable on the default root certificates, which is used when this parameter is nullptr. If user provides their own pem_root_certs, when creating an SSL credential object, gRPC would not be able to cache it, and each subchannel will generate a copy of the root store. So it is recommended to avoid providing large room pem with pem_root_certs parameter to avoid excessive memory consumption, particularly on mobile platforms such as iOS.

  • pem_key_cert_pair is a pointer on the object containing client's private key and certificate chain. This parameter can be NULL if the client does not have such a key/cert pair.
  • verify_options is an optional verify_peer_options object which holds additional options controlling how peer certificates are verified. For example, you can supply a callback which receives the peer's certificate with which you can do additional verification. Can be NULL, in which case verification will retain default behavior. Any settings in verify_options are copied during this call, so the verify_options object can be released afterwards.

◆ grpc_ssl_credentials_create_ex()

GRPCAPI grpc_channel_credentials* grpc_ssl_credentials_create_ex ( const char *  pem_root_certs,
grpc_ssl_pem_key_cert_pair pem_key_cert_pair,
const grpc_ssl_verify_peer_options verify_options,
void *  reserved 
)

◆ grpc_ssl_server_certificate_config_create()

GRPCAPI grpc_ssl_server_certificate_config* grpc_ssl_server_certificate_config_create ( const char *  pem_root_certs,
const grpc_ssl_pem_key_cert_pair pem_key_cert_pairs,
size_t  num_key_cert_pairs 
)

Creates a grpc_ssl_server_certificate_config object.

  • pem_roots_cert is the NULL-terminated string containing the PEM encoding of the client root certificates. This parameter may be NULL if the server does not want the client to be authenticated with SSL.
  • pem_key_cert_pairs is an array private key / certificate chains of the server. This parameter cannot be NULL.
  • num_key_cert_pairs indicates the number of items in the private_key_files and cert_chain_files parameters. It must be at least 1.
  • It is the caller's responsibility to free this object via grpc_ssl_server_certificate_config_destroy().

◆ grpc_ssl_server_certificate_config_destroy()

GRPCAPI void grpc_ssl_server_certificate_config_destroy ( grpc_ssl_server_certificate_config config)

Destroys a grpc_ssl_server_certificate_config object.

◆ grpc_ssl_server_credentials_create()

GRPCAPI grpc_server_credentials* grpc_ssl_server_credentials_create ( const char *  pem_root_certs,
grpc_ssl_pem_key_cert_pair pem_key_cert_pairs,
size_t  num_key_cert_pairs,
int  force_client_auth,
void *  reserved 
)

Deprecated in favor of grpc_ssl_server_credentials_create_ex.

Creates an SSL server_credentials object.

  • pem_roots_cert is the NULL-terminated string containing the PEM encoding of the client root certificates. This parameter may be NULL if the server does not want the client to be authenticated with SSL.
  • pem_key_cert_pairs is an array private key / certificate chains of the server. This parameter cannot be NULL.
  • num_key_cert_pairs indicates the number of items in the private_key_files and cert_chain_files parameters. It should be at least 1.
  • force_client_auth, if set to non-zero will force the client to authenticate with an SSL cert. Note that this option is ignored if pem_root_certs is NULL.

◆ grpc_ssl_server_credentials_create_ex()

GRPCAPI grpc_server_credentials* grpc_ssl_server_credentials_create_ex ( const char *  pem_root_certs,
grpc_ssl_pem_key_cert_pair pem_key_cert_pairs,
size_t  num_key_cert_pairs,
grpc_ssl_client_certificate_request_type  client_certificate_request,
void *  reserved 
)

Deprecated in favor of grpc_ssl_server_credentials_create_with_options.

Same as grpc_ssl_server_credentials_create method except uses grpc_ssl_client_certificate_request_type enum to support more ways to authenticate client certificates.

◆ grpc_ssl_server_credentials_create_options_using_config()

GRPCAPI grpc_ssl_server_credentials_options* grpc_ssl_server_credentials_create_options_using_config ( grpc_ssl_client_certificate_request_type  client_certificate_request,
grpc_ssl_server_certificate_config certificate_config 
)

Creates an options object using a certificate config.

Use this method when the certificates and keys of the SSL server will not change during the server's lifetime.

  • Takes ownership of the certificate_config parameter.

◆ grpc_ssl_server_credentials_create_options_using_config_fetcher()

GRPCAPI grpc_ssl_server_credentials_options* grpc_ssl_server_credentials_create_options_using_config_fetcher ( grpc_ssl_client_certificate_request_type  client_certificate_request,
grpc_ssl_server_certificate_config_callback  cb,
void *  user_data 
)

Creates an options object using a certificate config fetcher.

Use this method to reload the certificates and keys of the SSL server without interrupting the operation of the server. Initial certificate config will be fetched during server initialization.

  • user_data parameter, if not NULL, contains opaque data which will be passed to the fetcher (see definition of grpc_ssl_server_certificate_config_callback).

◆ grpc_ssl_server_credentials_create_with_options()

GRPCAPI grpc_server_credentials* grpc_ssl_server_credentials_create_with_options ( grpc_ssl_server_credentials_options options)

Creates an SSL server_credentials object using the provided options struct.

  • Takes ownership of the options parameter.

◆ grpc_ssl_server_credentials_options_destroy()

GRPCAPI void grpc_ssl_server_credentials_options_destroy ( grpc_ssl_server_credentials_options options)

Destroys a grpc_ssl_server_credentials_options object.

◆ grpc_ssl_session_cache_create_channel_arg()

GRPCAPI grpc_arg grpc_ssl_session_cache_create_channel_arg ( grpc_ssl_session_cache cache)

Create a channel arg with the given cache object.

◆ grpc_ssl_session_cache_create_lru()

GRPCAPI grpc_ssl_session_cache* grpc_ssl_session_cache_create_lru ( size_t  capacity)

Create LRU cache for client-side SSL sessions with the given capacity.

If capacity is < 1, a default capacity is used instead.

◆ grpc_ssl_session_cache_destroy()

GRPCAPI void grpc_ssl_session_cache_destroy ( grpc_ssl_session_cache cache)

Destroy SSL session cache.

◆ grpc_sts_credentials_create()

GRPCAPI grpc_call_credentials* grpc_sts_credentials_create ( const grpc_sts_credentials_options options,
void *  reserved 
)

Creates an STS credentials following the STS Token Exchanged specifed in the IETF draft https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16.

This API is used for experimental purposes for now and may change in the future.

◆ grpc_tls_credential_reload_config_create()

GRPCAPI grpc_tls_credential_reload_config* grpc_tls_credential_reload_config_create ( const void *  config_user_data,
int(*)(void *config_user_data, grpc_tls_credential_reload_arg *arg)  schedule,
void(*)(void *config_user_data, grpc_tls_credential_reload_arg *arg)  cancel,
void(*)(void *config_user_data)  destruct 
)

Create a grpc_tls_credential_reload_config instance.

  • config_user_data is config-specific, read-only user data that works for all channels created with a credential using the config.
  • schedule is a pointer to an application-provided callback used to invoke credential reload API. The implementation of this method has to be non-blocking, but can be performed synchronously or asynchronously. 1) If processing occurs synchronously, it populates arg->key_materials_config, arg->status, and arg->error_details and returns zero. 2) If processing occurs asynchronously, it returns a non-zero value. The application then invokes arg->cb when processing is completed. Note that arg->cb cannot be invoked before schedule API returns.
  • cancel is a pointer to an application-provided callback used to cancel a credential reload request scheduled via an asynchronous schedule API. arg is used to pinpoint an exact reloading request to be cancelled. The operation may not have any effect if the request has already been processed.
  • destruct is a pointer to an application-provided callback used to clean up any data associated with the config. It is used for experimental purpose for now and subject to change.

◆ grpc_tls_credentials_create()

grpc_channel_credentials* grpc_tls_credentials_create ( grpc_tls_credentials_options options)

This method creates a TLS channel credential object.

It takes ownership of the options parameter. The security level of the resulting connection is GRPC_PRIVACY_AND_INTEGRITY.

  • options: grpc TLS credentials options instance.

It returns the created credential object.

It is used for experimental purpose for now and subject to change.

◆ grpc_tls_credentials_options_create()

GRPCAPI grpc_tls_credentials_options* grpc_tls_credentials_options_create ( void  )

Create an empty TLS credentials options.

It is used for experimental purpose for now and subject to change.

◆ grpc_tls_credentials_options_set_cert_request_type()

GRPCAPI int grpc_tls_credentials_options_set_cert_request_type ( grpc_tls_credentials_options options,
grpc_ssl_client_certificate_request_type  type 
)

Set grpc_ssl_client_certificate_request_type field in credentials options with the provided type.

options should not be NULL. It returns 1 on success and 0 on failure. It is used for experimental purpose for now and subject to change.

◆ grpc_tls_credentials_options_set_credential_reload_config()

GRPCAPI int grpc_tls_credentials_options_set_credential_reload_config ( grpc_tls_credentials_options options,
grpc_tls_credential_reload_config config 
)

Set grpc_tls_credential_reload_config field in credentials options with the provided config struct whose ownership is transferred.

Both parameters should not be NULL. It returns 1 on success and 0 on failure. It is used for experimental purpose for now and subject to change.

◆ grpc_tls_credentials_options_set_key_materials_config()

GRPCAPI int grpc_tls_credentials_options_set_key_materials_config ( grpc_tls_credentials_options options,
grpc_tls_key_materials_config config 
)

Set grpc_tls_key_materials_config field in credentials options with the provided config struct whose ownership is transferred.

Both parameters should not be NULL. It returns 1 on success and 0 on failure. It is used for experimental purpose for now and subject to change.

◆ grpc_tls_credentials_options_set_server_authorization_check_config()

GRPCAPI int grpc_tls_credentials_options_set_server_authorization_check_config ( grpc_tls_credentials_options options,
grpc_tls_server_authorization_check_config config 
)

Set grpc_tls_server_authorization_check_config field in credentials options with the provided config struct whose ownership is transferred.

Both parameters should not be NULL. It returns 1 on success and 0 on failure. It is used for experimental purpose for now and subject to change.

◆ grpc_tls_credentials_options_set_server_verification_option()

GRPCAPI int grpc_tls_credentials_options_set_server_verification_option ( grpc_tls_credentials_options options,
grpc_tls_server_verification_option  server_verification_option 
)

Set grpc_tls_server_verification_option field in credentials options with the provided server_verification_option.

options should not be NULL. This should be called only on the client side. If grpc_tls_server_verification_option is not GRPC_TLS_SERVER_VERIFICATION, use of a customer server authorization check (grpc_tls_server_authorization_check_config) will be mandatory. It returns 1 on success and 0 on failure. It is used for experimental purpose for now and subject to change.

◆ grpc_tls_key_materials_config_create()

GRPCAPI grpc_tls_key_materials_config* grpc_tls_key_materials_config_create ( void  )

— TLS key materials config.

— It is used for experimental purpose for now and subject to change. Create an empty grpc_tls_key_materials_config instance. It is used for experimental purpose for now and subject to change.

◆ grpc_tls_key_materials_config_get_version()

GRPCAPI int grpc_tls_key_materials_config_get_version ( grpc_tls_key_materials_config config)

Get the version number of a grpc_tls_key_materials_config instance.

It returns the version number on success and -1 on failure. It is used for experimental purpose for now and subject to change.

◆ grpc_tls_key_materials_config_set_key_materials()

GRPCAPI int grpc_tls_key_materials_config_set_key_materials ( grpc_tls_key_materials_config config,
const char *  pem_root_certs,
const grpc_ssl_pem_key_cert_pair **  pem_key_cert_pairs,
size_t  num_key_cert_pairs 
)

Set grpc_tls_key_materials_config instance with provided a TLS certificate.

It's valid for the caller to provide nullptr pem_root_certs, in which case the gRPC-provided root cert will be used. pem_key_cert_pairs should not be NULL. The ownerships of |pem_root_certs| and |pem_key_cert_pairs| remain with the caller. It returns 1 on success and 0 on failure. It is used for experimental purpose for now and subject to change.

◆ grpc_tls_key_materials_config_set_version()

GRPCAPI int grpc_tls_key_materials_config_set_version ( grpc_tls_key_materials_config config,
int  version 
)

Set grpc_tls_key_materials_config instance with a provided version number, which is used to keep track of the version of key materials.

It returns 1 on success and 0 on failure. It is used for experimental purpose for now and subject to change.

◆ grpc_tls_server_authorization_check_config_create()

GRPCAPI grpc_tls_server_authorization_check_config* grpc_tls_server_authorization_check_config_create ( const void *  config_user_data,
int(*)(void *config_user_data, grpc_tls_server_authorization_check_arg *arg)  schedule,
void(*)(void *config_user_data, grpc_tls_server_authorization_check_arg *arg)  cancel,
void(*)(void *config_user_data)  destruct 
)

Create a grpc_tls_server_authorization_check_config instance.

  • config_user_data is config-specific, read-only user data that works for all channels created with a credential using the config.
  • schedule is a pointer to an application-provided callback used to invoke server authorization check API. The implementation of this method has to be non-blocking, but can be performed synchronously or asynchronously. 1)If processing occurs synchronously, it populates arg->result, arg->status, and arg->error_details and returns zero. 2) If processing occurs asynchronously, it returns a non-zero value. The application then invokes arg->cb when processing is completed. Note that arg->cb cannot be invoked before schedule API returns.
  • cancel is a pointer to an application-provided callback used to cancel a server authorization check request scheduled via an asynchronous schedule API. arg is used to pinpoint an exact check request to be cancelled. The operation may not have any effect if the request has already been processed.
  • destruct is a pointer to an application-provided callback used to clean up any data associated with the config. It is used for experimental purpose for now and subject to change.

◆ grpc_tls_server_credentials_create()

grpc_server_credentials* grpc_tls_server_credentials_create ( grpc_tls_credentials_options options)

This method creates a TLS server credential object.

It takes ownership of the options parameter.

  • options: grpc TLS credentials options instance.

It returns the created credential object.

It is used for experimental purpose for now and subject to change.