Struct grpcio_sys::grpc_tls_server_authorization_check_arg [−][src]
#[repr(C)]pub struct grpc_tls_server_authorization_check_arg {Show 13 fields
pub cb: grpc_tls_on_server_authorization_check_done_cb,
pub cb_user_data: *mut c_void,
pub success: c_int,
pub target_name: *const c_char,
pub peer_cert: *const c_char,
pub peer_cert_full_chain: *const c_char,
pub subject_alternative_names: *mut *mut c_char,
pub subject_alternative_names_size: usize,
pub status: Type,
pub error_details: *mut grpc_tls_error_details,
pub config: *mut grpc_tls_server_authorization_check_config,
pub context: *mut c_void,
pub destroy_context: Option<unsafe extern "C" fn(ctx: *mut c_void)>,
}
Expand description
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.
- peer_cert represents a complete certificate chain including both signing and leaf certificates.
- \a subject_alternative_names is an array of size \a subject_alternative_names_size consisting of pointers to strings.
- 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.
- context is a pointer to a wrapped language implementation of this grpc_tls_server_authorization_check_arg instance.
- destroy_context is a pointer to a caller-provided method that cleans up any data associated with the context pointer. It is used for experimental purpose for now and subject to change.
Fields
cb: grpc_tls_on_server_authorization_check_done_cb
cb_user_data: *mut c_void
success: c_int
target_name: *const c_char
peer_cert: *const c_char
peer_cert_full_chain: *const c_char
subject_alternative_names: *mut *mut c_char
subject_alternative_names_size: usize
status: Type
error_details: *mut grpc_tls_error_details
config: *mut grpc_tls_server_authorization_check_config
context: *mut c_void
destroy_context: Option<unsafe extern "C" fn(ctx: *mut c_void)>
Trait Implementations
Auto Trait Implementations
impl !Send for grpc_tls_server_authorization_check_arg
impl !Sync for grpc_tls_server_authorization_check_arg
Blanket Implementations
Mutably borrows from an owned value. Read more