Go to the documentation of this file.
17 #ifndef GRPC_CORE_LIB_SECURITY_CREDENTIALS_TLS_GRPC_TLS_CERTIFICATE_DISTRIBUTOR_H
18 #define GRPC_CORE_LIB_SECURITY_CREDENTIALS_TLS_GRPC_TLS_CERTIFICATE_DISTRIBUTOR_H
29 #include "absl/base/thread_annotations.h"
30 #include "absl/strings/string_view.h"
31 #include "absl/types/optional.h"
151 std::unique_ptr<TlsCertificatesWatcherInterface>
watcher,
163 std::unique_ptr<TlsCertificatesWatcherInterface>
watcher;
211 std::map<TlsCertificatesWatcherInterface*, WatcherInfo>
watchers_
219 std::map<std::string, CertificateInfo> certificate_info_map_
223 #endif // GRPC_CORE_LIB_SECURITY_CREDENTIALS_TLS_GRPC_TLS_CERTIFICATE_DISTRIBUTOR_H
grpc_core::PemKeyCertPairList pem_key_cert_pairs
absl::optional< std::string > root_cert_name
std::set< TlsCertificatesWatcherInterface * > root_cert_watchers
static char * pem_root_certs
std::string pem_root_certs
grpc_core::Mutex callback_mu_
grpc_core::PemKeyCertPairList pem_key_cert_pairs
bool HasRootCerts(const std::string &root_cert_name)
void SetRootError(grpc_error_handle error)
std::unique_ptr< TlsCertificatesWatcherInterface > watcher
void WatchTlsCertificates(std::unique_ptr< TlsCertificatesWatcherInterface > watcher, absl::optional< std::string > root_cert_name, absl::optional< std::string > identity_cert_name)
void SetKeyMaterials(const std::string &cert_name, absl::optional< std::string > pem_root_certs, absl::optional< grpc_core::PemKeyCertPairList > pem_key_cert_pairs)
grpc_error_handle root_cert_error
grpc_error_handle identity_cert_error
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
void SetIdentityError(grpc_error_handle error)
std::map< SubchannelInterface::ConnectivityStateWatcherInterface *, WatcherWrapper * > watchers_
void SetError(grpc_error_handle error)
void SetErrorForCert(const std::string &cert_name, absl::optional< grpc_error_handle > root_cert_error, absl::optional< grpc_error_handle > identity_cert_error)
virtual ~TlsCertificatesWatcherInterface()=default
static void callback(void *arg, int status, int timeouts, struct hostent *host)
virtual void OnCertificatesChanged(absl::optional< absl::string_view > root_certs, absl::optional< grpc_core::PemKeyCertPairList > key_cert_pairs)=0
virtual void OnError(grpc_error_handle root_cert_error, grpc_error_handle identity_cert_error)=0
void CancelTlsCertificatesWatch(TlsCertificatesWatcherInterface *watcher)
std::vector< PemKeyCertPair > PemKeyCertPairList
#define GRPC_ERROR_UNREF(err)
std::map< TlsCertificatesWatcherInterface *, WatcherInfo > watchers_ ABSL_GUARDED_BY(mu_)
absl::optional< std::string > identity_cert_name
bool HasKeyCertPairs(const std::string &identity_cert_name)
std::set< TlsCertificatesWatcherInterface * > identity_cert_watchers
void SetWatchStatusCallback(std::function< void(std::string, bool, bool)> callback)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:45