GRPC C++
1.39.1
|
#include <grpc/support/port_platform.h>
#include "src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.h"
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include "src/core/lib/gprpp/stat.h"
#include "src/core/lib/slice/slice_internal.h"
#include "src/core/lib/surface/api_trace.h"
Namespaces | |
grpc_core | |
Round Robin Policy. | |
Functions | |
grpc_tls_certificate_provider * | grpc_tls_certificate_provider_static_data_create (const char *root_certificate, grpc_tls_identity_pairs *pem_key_cert_pairs) |
– Wrapper APIs declared in grpc_security.h – More... | |
grpc_tls_certificate_provider * | grpc_tls_certificate_provider_file_watcher_create (const char *private_key_path, const char *identity_certificate_path, const char *root_cert_path, unsigned int refresh_interval_sec) |
Creates a grpc_tls_certificate_provider that will watch the credential changes on the file system. More... | |
void | grpc_tls_certificate_provider_release (grpc_tls_certificate_provider *provider) |
Releases a grpc_tls_certificate_provider object. More... | |
grpc_tls_certificate_provider* grpc_tls_certificate_provider_file_watcher_create | ( | const char * | private_key_path, |
const char * | identity_certificate_path, | ||
const char * | root_cert_path, | ||
unsigned int | refresh_interval_sec | ||
) |
Creates a grpc_tls_certificate_provider that will watch the credential changes on the file system.
This provider will always return the up-to-date cert data for all the cert names callers set through |grpc_tls_credentials_options|. Note that this API only supports one key-cert file and hence one set of identity key-cert pair, so SNI(Server Name Indication) is not supported.
void grpc_tls_certificate_provider_release | ( | grpc_tls_certificate_provider * | provider | ) |
Releases a grpc_tls_certificate_provider object.
The creator of the grpc_tls_certificate_provider object is responsible for its release. It is used for experimental purpose for now and subject to change.
grpc_tls_certificate_provider* grpc_tls_certificate_provider_static_data_create | ( | const char * | root_certificate, |
grpc_tls_identity_pairs * | pem_key_cert_pairs | ||
) |
– Wrapper APIs declared in grpc_security.h –
Creates a grpc_tls_certificate_provider that will load credential data from static string during initialization.