| 642 | #endif |
| 643 | |
| 644 | bool 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 | |
| 665 | SSL_CTX* openssl_conf::create_ssl_ctx() |
| 666 | { |
no test coverage detected