Public Attributes | List of all members
grpc_ssl_verify_peer_options Struct Reference

#include <grpc_security.h>

Public Attributes

int(* verify_peer_callback )(const char *target_name, const char *peer_pem, void *userdata)
 
void * verify_peer_callback_userdata
 
void(* verify_peer_destruct )(void *userdata)
 

Detailed Description

Object that holds additional peer-verification options on a secure channel.

Definition at line 207 of file grpc_security.h.

Member Data Documentation

◆ verify_peer_callback

int(* grpc_ssl_verify_peer_options::verify_peer_callback) (const char *target_name, const char *peer_pem, void *userdata)

If non-NULL this callback will be invoked with the expected target_name, the peer's certificate (in PEM format), and whatever userdata pointer is set below. If a non-zero value is returned by this callback then it is treated as a verification failure. Invocation of the callback is blocking, so any implementation should be light-weight.

Definition at line 214 of file grpc_security.h.

◆ verify_peer_callback_userdata

void* grpc_ssl_verify_peer_options::verify_peer_callback_userdata

Arbitrary userdata that will be passed as the last argument to verify_peer_callback.

Definition at line 218 of file grpc_security.h.

◆ verify_peer_destruct

void(* grpc_ssl_verify_peer_options::verify_peer_destruct) (void *userdata)

A destruct callback that will be invoked when the channel is being cleaned up. The userdata argument will be passed to it. The intent is to perform any cleanup associated with that userdata.

Definition at line 222 of file grpc_security.h.


The documentation for this struct was generated from the following file:


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