OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ThriftClient.cpp File Reference
#include "Shared/ThriftClient.h"
#include <iostream>
#include <sstream>
#include <boost/algorithm/string.hpp>
#include <boost/core/ignore_unused.hpp>
#include <boost/filesystem.hpp>
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/transport/THttpClient.h>
#include <thrift/transport/TSocket.h>
#include "Shared/ThriftJSONProtocolInclude.h"
+ 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 36 of file ThriftClient.cpp.

Function Documentation

void check_standard_ca ( std::string &  ca_cert_file)

Definition at line 38 of file ThriftClient.cpp.

Referenced by ThriftClientConnection::open_http_client_transport().

38  {
39  if (ca_cert_file.empty()) {
40  static std::list<std::string> v_known_ca_paths({
41  "/etc/ssl/certs/ca-certificates.crt",
42  "/etc/pki/tls/certs/ca-bundle.crt",
43  "/usr/share/ssl/certs/ca-bundle.crt",
44  "/usr/local/share/certs/ca-root.crt",
45  "/etc/ssl/cert.pem",
46  "/etc/ssl/ca-bundle.pem",
47  });
48  for (const auto& known_ca_path : v_known_ca_paths) {
49  if (boost::filesystem::exists(known_ca_path)) {
50  ca_cert_file = known_ca_path;
51  break;
52  }
53  }
54  }
55 }

+ Here is the caller graph for this function: