Go to the documentation of this file.
19 #ifndef GRPC_CORE_LIB_SECURITY_SECURITY_CONNECTOR_TLS_TLS_SECURITY_CONNECTOR_H
20 #define GRPC_CORE_LIB_SECURITY_SECURITY_CONNECTOR_TLS_TLS_SECURITY_CONNECTOR_H
27 #include "absl/base/thread_annotations.h"
28 #include "absl/status/status.h"
29 #include "absl/strings/string_view.h"
30 #include "absl/types/optional.h"
65 const char* target_name,
const char* overridden_target_name,
72 const char* target_name,
const char* overridden_target_name,
95 return client_handshaker_factory_;
100 return pem_root_certs_;
105 return pem_key_cert_pair_list_;
113 TlsCertificatesWatcherInterface {
181 CreateTlsServerSecurityConnector(
205 return server_handshaker_factory_;
210 return pem_root_certs_;
215 return pem_key_cert_pair_list_;
223 TlsCertificatesWatcherInterface {
227 : security_connector_(security_connector) {}
228 void OnCertificatesChanged(
286 #endif // GRPC_CORE_LIB_SECURITY_SECURITY_CONNECTOR_TLS_TLS_SECURITY_CONNECTOR_H
grpc_tls_custom_verification_check_request * request()
void cancel_check_peer(grpc_closure *on_peer_checked, grpc_error_handle error) override
RefCountedPtr< TlsChannelSecurityConnector > security_connector_
static RefCountedPtr< grpc_channel_security_connector > CreateTlsChannelSecurityConnector(RefCountedPtr< grpc_channel_credentials > channel_creds, RefCountedPtr< grpc_tls_credentials_options > options, RefCountedPtr< grpc_call_credentials > request_metadata_creds, const char *target_name, const char *overridden_target_name, tsi_ssl_session_cache *ssl_session_cache)
RefCountedPtr< TlsSessionKeyLogger > tls_session_key_logger_
struct grpc_pollset_set grpc_pollset_set
ArenaPromise< absl::Status > CheckCallHost(absl::string_view host, grpc_auth_context *auth_context) override
~TlsChannelSecurityConnector() override
grpc_tls_certificate_distributor::TlsCertificatesWatcherInterface * certificate_watcher_
const absl::optional< PemKeyCertPairList > & KeyCertPairListForTesting()
TlsChannelSecurityConnector * security_connector_
void OnCertificatesChanged(absl::optional< absl::string_view > root_certs, absl::optional< PemKeyCertPairList > key_cert_pairs) override
TlsChannelSecurityConnector(RefCountedPtr< grpc_channel_credentials > channel_creds, RefCountedPtr< grpc_tls_credentials_options > options, RefCountedPtr< grpc_call_credentials > request_metadata_creds, const char *target_name, const char *overridden_target_name, tsi_ssl_session_cache *ssl_session_cache)
tsi_ssl_server_handshaker_factory * ServerHandshakerFactoryForTesting()
Mutex verifier_request_map_mu_
TlsServerCertificateWatcher(TlsServerSecurityConnector *security_connector)
tsi::TlsSessionKeyLoggerCache::TlsSessionKeyLogger TlsSessionKeyLogger
absl::optional< absl::string_view > RootCertsForTesting()
#define ABSL_EXCLUSIVE_LOCKS_REQUIRED(...)
~ChannelPendingVerifierRequest()
grpc_tls_custom_verification_check_request request_
TlsChannelCertificateWatcher(TlsChannelSecurityConnector *security_connector)
void OnVerifyDone(bool run_callback_inline, absl::Status status)
RefCountedPtr< grpc_tls_credentials_options > options_
tsi_ssl_client_handshaker_factory *client_handshaker_factory_ ABSL_GUARDED_BY(mu_)
const absl::optional< absl::string_view > & RootCertsForTesting()
grpc_tls_custom_verification_check_request request_
grpc_security_status UpdateHandshakerFactoryLocked() ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
struct tsi_ssl_session_cache tsi_ssl_session_cache
grpc_tls_custom_verification_check_request * request()
void OnError(grpc_error_handle root_cert_error, grpc_error_handle identity_cert_error) override
std::vector< PemKeyCertPair > PemKeyCertPairList
RefCountedPtr< TlsServerSecurityConnector > security_connector_
ChannelPendingVerifierRequest(RefCountedPtr< TlsChannelSecurityConnector > security_connector, grpc_closure *on_peer_checked, tsi_peer peer, const char *target_name)
tsi_ssl_client_handshaker_factory * ClientHandshakerFactoryForTesting()
std::string overridden_target_name_
grpc_closure * on_peer_checked_
int cmp(const grpc_security_connector *other_sc) const override
grpc_closure * on_peer_checked_
void check_peer(tsi_peer peer, grpc_endpoint *ep, RefCountedPtr< grpc_auth_context > *auth_context, grpc_closure *on_peer_checked) override
const grpc_channel_credentials * channel_creds() const
const grpc_call_credentials * request_metadata_creds() const
void add_handshakers(const grpc_channel_args *args, grpc_pollset_set *interested_parties, HandshakeManager *handshake_mgr) override
Registers handshakers with handshake_mgr.
absl::optional< PemKeyCertPairList > KeyCertPairListForTesting()
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:40