OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ThriftClient.cpp File Reference
#include "Shared/ThriftClient.h"
#include <boost/algorithm/string.hpp>
#include <boost/core/ignore_unused.hpp>
#include <boost/filesystem.hpp>
#include <iostream>
#include <sstream>
+ Include dependency graph for ThriftClient.cpp:

Go to the source code of this file.

Classes

class  InsecureAccessManager
 
class  ProxyTHttpClient
 

Typedefs

using Decision = AccessManager::Decision
 

Functions

void check_standard_ca (std::string &ca_cert_file)
 

Typedef Documentation

using Decision = AccessManager::Decision

Definition at line 23 of file ThriftClient.cpp.

Function Documentation

void check_standard_ca ( std::string &  ca_cert_file)

Definition at line 25 of file ThriftClient.cpp.

Referenced by ThriftClientConnection::open_http_client_transport().

25  {
26  if (ca_cert_file.empty()) {
27  static std::list<std::string> v_known_ca_paths({
28  "/etc/ssl/certs/ca-certificates.crt",
29  "/etc/pki/tls/certs/ca-bundle.crt",
30  "/usr/share/ssl/certs/ca-bundle.crt",
31  "/usr/local/share/certs/ca-root.crt",
32  "/etc/ssl/cert.pem",
33  "/etc/ssl/ca-bundle.pem",
34  });
35  for (const auto& known_ca_path : v_known_ca_paths) {
36  if (boost::filesystem::exists(known_ca_path)) {
37  ca_cert_file = known_ca_path;
38  break;
39  }
40  }
41  }
42 }

+ Here is the caller graph for this function: