Exemple #1
0
 static Result match_dns(X509* cert, const Host::ConstPtr& host) {
   Result result = match_subject_alt_names_dns(cert, host->hostname());
   if (result == NO_SAN_PRESENT) {
     result = match_common_name_dns(cert, host->hostname());
   }
   return result;
 }
Exemple #2
0
 static Result match(X509* cert, const Host::ConstPtr& host) {
   Result result = match_subject_alt_names_ipadd(cert, host->address());
   if (result == NO_SAN_PRESENT) {
     result = match_common_name_ipaddr(cert, host->address_string());
   }
   return result;
 }
Exemple #3
0
ExternalAuthenticator::ExternalAuthenticator(const Host::ConstPtr& host,
                                             const std::string& class_name,
                                             const CassAuthenticatorCallbacks* callbacks,
                                             void* data)
  : address_(host->address())
  , hostname_(host->hostname())
  , class_name_(class_name)
  , response_(NULL)
  , callbacks_(callbacks)
  , data_(data)
  , exchange_data_(NULL) { }