Home
last modified time | relevance | path

Searched refs:cert_name (Results 1 – 9 of 9) sorted by relevance

/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/tls/
Dgrpc_tls_certificate_provider.cc37 distributor_->SetWatchStatusCallback([this](std::string cert_name, in StaticDataCertificateProvider()
43 StaticDataCertificateProvider::WatcherInfo& info = watcher_info_[cert_name]; in StaticDataCertificateProvider()
55 watcher_info_.erase(cert_name); in StaticDataCertificateProvider()
60 distributor_->SetKeyMaterials(cert_name, std::move(root_certificate), in StaticDataCertificateProvider()
75 distributor_->SetErrorForCert(cert_name, root_cert_error, in StaticDataCertificateProvider()
127 distributor_->SetWatchStatusCallback([this](std::string cert_name, in FileWatcherCertificateProvider()
134 watcher_info_[cert_name]; in FileWatcherCertificateProvider()
146 watcher_info_.erase(cert_name); in FileWatcherCertificateProvider()
150 distributor_->SetKeyMaterials(cert_name, root_certificate, in FileWatcherCertificateProvider()
165 distributor_->SetErrorForCert(cert_name, root_cert_error, in FileWatcherCertificateProvider()
[all …]
Dgrpc_tls_certificate_distributor.cc28 const std::string& cert_name, absl::optional<std::string> pem_root_certs, in SetKeyMaterials() argument
32 auto& cert_info = certificate_info_map_[cert_name]; in SetKeyMaterials()
44 watcher_it->second.identity_cert_name == cert_name) { in SetKeyMaterials()
68 watcher_it->second.root_cert_name == cert_name) { in SetKeyMaterials()
103 const std::string& cert_name, absl::optional<grpc_error*> root_cert_error, in SetErrorForCert() argument
107 CertificateInfo& cert_info = certificate_info_map_[cert_name]; in SetErrorForCert()
117 watcher_it->second.identity_cert_name == cert_name) { in SetErrorForCert()
138 watcher_it->second.root_cert_name == cert_name) { in SetErrorForCert()
Dgrpc_tls_certificate_distributor.h81 const std::string& cert_name, absl::optional<std::string> pem_root_certs,
97 void SetErrorForCert(const std::string& cert_name,
/external/rust/crates/grpcio-sys/grpc/test/core/security/
Dgrpc_tls_certificate_distributor_test.cc167 std::string cert_name; member
171 : cert_name(std::move(name)), in CallbackStatus()
175 return cert_name == other.cert_name && in operator ==()
182 distributor_.SetWatchStatusCallback([this](std::string cert_name, in SetUp()
185 callback_queue_.emplace_back(std::move(cert_name), root_being_watched, in SetUp()
564 distributor_.SetWatchStatusCallback([this](std::string cert_name, in TEST_F()
568 cert_name, kRootCert1Contents, in TEST_F()
571 auto verify_function = [this](std::string cert_name) { in TEST_F() argument
572 WatcherState* watcher_state_1 = MakeWatcher(cert_name, cert_name); in TEST_F()
915 distributor_.SetWatchStatusCallback([this](std::string cert_name, in TEST_F()
[all …]
/external/libcups/cups/
Dtls-sspi.c184 char cert_name[1024]; /* Name from certificate */ in httpCredentialsAreValidForName() local
189 …509_ASN_ENCODING, &(cert->pCertInfo->Subject), CERT_SIMPLE_NAME_STR, cert_name, sizeof(cert_name))) in httpCredentialsAreValidForName()
195 char *ptr = strrchr(cert_name, ','); in httpCredentialsAreValidForName()
197 _cups_strcpy(cert_name, ptr + 2); in httpCredentialsAreValidForName()
200 strlcpy(cert_name, "unknown", sizeof(cert_name)); in httpCredentialsAreValidForName()
205 strlcpy(cert_name, "unknown", sizeof(cert_name)); in httpCredentialsAreValidForName()
211 if (_cups_strcasecmp(common_name, cert_name)) in httpCredentialsAreValidForName()
220 if (strncmp(cert_name, "*.", 2) || !domain || _cups_strcasecmp(domain, cert_name + 1)) in httpCredentialsAreValidForName()
346 char cert_name[256]; /* Common name */ in httpCredentialsString() local
363 …509_ASN_ENCODING, &(cert->pCertInfo->Subject), CERT_SIMPLE_NAME_STR, cert_name, sizeof(cert_name))) in httpCredentialsString()
[all …]
Dtls-darwin.c535 char cert_name[256]; /* Certificate's common name (C string) */ in httpCredentialsAreValidForName() local
554 else if (CFStringGetCString(cfcert_name, cert_name, sizeof(cert_name), kCFStringEncodingUTF8) && in httpCredentialsAreValidForName()
555 _cups_strcasecmp(common_name, cert_name)) in httpCredentialsAreValidForName()
564 if (strncmp(cert_name, "*.", 2) || !domain || _cups_strcasecmp(domain, cert_name + 1)) in httpCredentialsAreValidForName()
/external/rust/crates/grpcio-sys/grpc/src/core/ext/xds/
Dxds_certificate_provider.cc185 void XdsCertificateProvider::WatchStatusCallback(std::string cert_name, in WatchStatusCallback() argument
194 if (!cert_name.empty()) { in WatchStatusCallback()
196 absl::StrCat("Illegal certificate name: \'", cert_name, in WatchStatusCallback()
199 distributor_->SetErrorForCert(cert_name, GRPC_ERROR_REF(error), in WatchStatusCallback()
Dxds_certificate_provider.h79 void WatchStatusCallback(std::string cert_name, bool root_being_watched,
/external/curl/lib/vtls/
Dopenssl.c2857 char cert_name[256]; in ossl_connect_step1() local
2866 NULL, cert_name, sizeof(cert_name))) { in ossl_connect_step1()
2867 strcpy(cert_name, "Unknown"); in ossl_connect_step1()
2869 infof(data, "SSL: Checking cert \"%s\"\n", cert_name); in ossl_connect_step1()
2951 infof(data, "SSL: Imported cert \"%s\"\n", cert_name); in ossl_connect_step1()