MCPcopy Create free account
hub / github.com/apache/thrift / authenticate

Method authenticate

lib/cpp/src/thrift/transport/TSSLSocket.cpp:968–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

966}
967
968void TSSLSocketFactory::authenticate(bool required) {
969 int mode;
970 if (required) {
971 mode = SSL_VERIFY_PEER | SSL_VERIFY_FAIL_IF_NO_PEER_CERT | SSL_VERIFY_CLIENT_ONCE;
972 } else {
973 mode = SSL_VERIFY_NONE;
974 }
975 SSL_CTX_set_verify(ctx_->get(), mode, nullptr);
976}
977
978void TSSLSocketFactory::loadCertificate(const char* path, const char* format) {
979 if (path == nullptr || format == nullptr) {

Callers 5

clientMethod · 0.80
clientMethod · 0.80
mainFunction · 0.80

Calls 1

getMethod · 0.45

Tested by 5

clientMethod · 0.64
clientMethod · 0.64
mainFunction · 0.64