MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / SSL_CTX_set_verify

Function SSL_CTX_set_verify

extra/yassl/src/ssl.cpp:730–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

728
729
730void SSL_CTX_set_verify(SSL_CTX* ctx, int mode, VerifyCallback vc)
731{
732 if (mode & SSL_VERIFY_PEER)
733 ctx->setVerifyPeer();
734
735 if (mode == SSL_VERIFY_NONE)
736 ctx->setVerifyNone();
737
738 if (mode & SSL_VERIFY_FAIL_IF_NO_PEER_CERT)
739 ctx->setFailNoCert();
740
741 ctx->setVerifyCallback(vc);
742}
743
744
745int SSL_CTX_load_verify_locations(SSL_CTX* ctx, const char* file,

Callers 1

server_testFunction · 0.85

Calls 4

setVerifyPeerMethod · 0.45
setVerifyNoneMethod · 0.45
setFailNoCertMethod · 0.45
setVerifyCallbackMethod · 0.45

Tested by

no test coverage detected