|
|
|
@ -805,14 +805,19 @@ typedef struct grpc_tls_credential_reload_arg grpc_tls_credential_reload_arg; |
|
|
|
|
typedef void (*grpc_tls_on_credential_reload_done_cb)( |
|
|
|
|
grpc_tls_credential_reload_arg* arg); |
|
|
|
|
|
|
|
|
|
/** A struct containing all information necessary to schedule/cancel
|
|
|
|
|
a credential reload request. cb and cb_user_data represent a gRPC-provided |
|
|
|
|
callback and an argument passed to it. key_materials is an in/output |
|
|
|
|
parameter containing currently used/newly reloaded credentials. If |
|
|
|
|
credential reload does not result in a new credential, key_materials should |
|
|
|
|
not be modified. status and error_details are used to hold information about |
|
|
|
|
errors occurred when a credential reload request is scheduled/cancelled. It |
|
|
|
|
is used for experimental purpose for now and subject to change. */ |
|
|
|
|
/** A struct containing all information necessary to schedule/cancel a
|
|
|
|
|
credential reload request. |
|
|
|
|
- cb and cb_user_data represent a gRPC-provided |
|
|
|
|
callback and an argument passed to it. |
|
|
|
|
- key_materials_config is an in/output parameter containing currently |
|
|
|
|
used/newly reloaded credentials. If credential reload does not result |
|
|
|
|
in a new credential, key_materials_config should not be modified. |
|
|
|
|
- status and error_details are used to hold information about |
|
|
|
|
errors occurred when a credential reload request is scheduled/cancelled. |
|
|
|
|
- config is a pointer to the unique grpc_tls_credential_reload_config |
|
|
|
|
instance that this argument corresponds to. |
|
|
|
|
It is used for experimental purposes for now and subject to change. |
|
|
|
|
*/ |
|
|
|
|
struct grpc_tls_credential_reload_arg { |
|
|
|
|
grpc_tls_on_credential_reload_done_cb cb; |
|
|
|
|
void* cb_user_data; |
|
|
|
@ -864,16 +869,23 @@ typedef void (*grpc_tls_on_server_authorization_check_done_cb)( |
|
|
|
|
grpc_tls_server_authorization_check_arg* arg); |
|
|
|
|
|
|
|
|
|
/** A struct containing all information necessary to schedule/cancel a server
|
|
|
|
|
authorization check request. cb and cb_user_data represent a gRPC-provided |
|
|
|
|
callback and an argument passed to it. success will store the result of |
|
|
|
|
server authorization check. That is, if success returns a non-zero value, it |
|
|
|
|
means the authorization check passes and if returning zero, it means the |
|
|
|
|
check fails. target_name is the name of an endpoint the channel is connecting |
|
|
|
|
to and certificate represents a complete certificate chain including both |
|
|
|
|
signing and leaf certificates. status and error_details contain information |
|
|
|
|
about errors occurred when a server authorization check request is |
|
|
|
|
scheduled/cancelled. It is used for experimental purpose for now and subject |
|
|
|
|
to change.*/ |
|
|
|
|
authorization check request. |
|
|
|
|
- cb and cb_user_data represent a gRPC-provided callback and an argument |
|
|
|
|
passed to it. |
|
|
|
|
- success will store the result of server authorization check. That is, |
|
|
|
|
if success returns a non-zero value, it means the authorization check |
|
|
|
|
passes and if returning zero, it means the check fails. |
|
|
|
|
- target_name is the name of an endpoint the channel is connecting to. |
|
|
|
|
- peer_cert represents a complete certificate chain including both |
|
|
|
|
signing and leaf certificates. |
|
|
|
|
- status and error_details contain information |
|
|
|
|
about errors occurred when a server authorization check request is |
|
|
|
|
scheduled/cancelled. |
|
|
|
|
- config is a pointer to the unique |
|
|
|
|
grpc_tls_server_authorization_check_config instance that this argument |
|
|
|
|
corresponds to. |
|
|
|
|
It is used for experimental purpose for now and subject to change. |
|
|
|
|
*/ |
|
|
|
|
struct grpc_tls_server_authorization_check_arg { |
|
|
|
|
grpc_tls_on_server_authorization_check_done_cb cb; |
|
|
|
|
void* cb_user_data; |
|
|
|
|