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

Method ciphers

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

Source from the content-addressed store, hash-verified

954}
955
956void TSSLSocketFactory::ciphers(const string& enable) {
957 int rc = SSL_CTX_set_cipher_list(ctx_->get(), enable.c_str());
958 if (ERR_peek_error() != 0) {
959 string errors;
960 buildErrors(errors);
961 throw TSSLException("SSL_CTX_set_cipher_list: " + errors);
962 }
963 if (rc == 0) {
964 throw TSSLException("None of specified ciphers are supported");
965 }
966}
967
968void TSSLSocketFactory::authenticate(bool required) {
969 int mode;

Callers 8

serverMethod · 0.80
clientMethod · 0.80
serverMethod · 0.80
clientMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 3

buildErrorsFunction · 0.85
TSSLExceptionClass · 0.85
getMethod · 0.45

Tested by 8

serverMethod · 0.64
clientMethod · 0.64
serverMethod · 0.64
clientMethod · 0.64
mainFunction · 0.64
mainFunction · 0.64