GRPC Core  43.0.0
Data Fields
verify_peer_options Struct Reference

Deprecated in favor of grpc_ssl_verify_peer_options. More...

#include <credentials.h>

Data Fields

int(* 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. More...
 
void * verify_peer_callback_userdata
 Arbitrary userdata that will be passed as the last argument to verify_peer_callback. More...
 
void(* verify_peer_destruct )(void *userdata)
 A destruct callback that will be invoked when the channel is being cleaned up. More...
 

Detailed Description

Deprecated in favor of grpc_ssl_verify_peer_options.

It will be removed after all of its call sites are migrated to grpc_ssl_verify_peer_options. Object that holds additional peer-verification options on a secure channel.

Field Documentation

◆ verify_peer_callback

int(* 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.

◆ verify_peer_callback_userdata

void* verify_peer_options::verify_peer_callback_userdata

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

◆ verify_peer_destruct

void(* 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.


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