#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"
Go to the source code of this file.
|
using | Decision = AccessManager::Decision |
|
using Decision = AccessManager::Decision |
void check_standard_ca |
( |
std::string & |
ca_cert_file | ) |
|
Definition at line 38 of file ThriftClient.cpp.
Referenced by ThriftClientConnection::open_http_client_transport().
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",
46 "/etc/ssl/ca-bundle.pem",
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;