MCPcopy Create free account
hub / github.com/acl-dev/acl / set_version

Method set_version

lib_acl_cpp/src/stream/openssl_conf.cpp:644–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642#endif
643
644bool openssl_conf::set_version(int ver_min, int ver_max) {
645#ifdef HAS_OPENSSL
646 if (ver_min > ver_max) {
647 return false;
648 }
649
650 this->ver_min_ = ver_min;
651 this->ver_max_ = ver_max;
652
653 for (std::set<SSL_CTX*>::iterator it = ssl_ctxes_.begin();
654 it != ssl_ctxes_.end(); ++it) {
655 set_ssl_version(*it, ver_min_, ver_max_);
656 }
657 return true;
658#else
659 (void) ver_min;
660 (void) ver_max;
661 return false;
662#endif
663}
664
665SSL_CTX* openssl_conf::create_ssl_ctx()
666{

Callers 1

proc_on_initMethod · 0.45

Calls 3

beginMethod · 0.80
set_ssl_versionFunction · 0.70
endMethod · 0.45

Tested by

no test coverage detected