|
GRPC Core
18.0.0
|
#include <grpc/support/port_platform.h>#include "src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.h"#include <grpc/support/alloc.h>#include <grpc/support/log.h>#include <grpc/support/string_util.h>#include <stdlib.h>#include <string.h>Functions | |
| grpc_tls_identity_pairs * | grpc_tls_identity_pairs_create () |
| – Wrapper APIs declared in grpc_security.h – More... | |
| void | grpc_tls_identity_pairs_add_pair (grpc_tls_identity_pairs *pairs, const char *private_key, const char *cert_chain) |
| Adds a identity private key and a identity certificate chain to grpc_tls_identity_pairs. More... | |
| void | grpc_tls_identity_pairs_destroy (grpc_tls_identity_pairs *pairs) |
| Destroys a grpc_tls_identity_pairs object. More... | |
| void grpc_tls_identity_pairs_add_pair | ( | grpc_tls_identity_pairs * | pairs, |
| const char * | private_key, | ||
| const char * | cert_chain | ||
| ) |
Adds a identity private key and a identity certificate chain to grpc_tls_identity_pairs.
This function will make an internal copy of |private_key| and |cert_chain|. It is used for experimental purpose for now and subject to change.
| grpc_tls_identity_pairs* grpc_tls_identity_pairs_create | ( | ) |
– Wrapper APIs declared in grpc_security.h –
Creates a grpc_tls_identity_pairs that stores a list of identity credential data, including identity private key and identity certificate chain.
| void grpc_tls_identity_pairs_destroy | ( | grpc_tls_identity_pairs * | pairs | ) |
Destroys a grpc_tls_identity_pairs object.
If this object is passed to a provider initiation function, the ownership is transferred so this function doesn't need to be called. Otherwise the creator of the grpc_tls_identity_pairs object is responsible for its destruction. It is used for experimental purpose for now and subject to change.