| 719 | } |
| 720 | |
| 721 | SSL_CTX* openssl_conf::get_ssl_ctx() const |
| 722 | { |
| 723 | // The ssl_ctx_ should be created in client mode, and in server mode, |
| 724 | // it should also be created when loading certificate. |
| 725 | if (ssl_ctx_ == NULL) { |
| 726 | logger_error("ssl_ctx_ not created yet!"); |
| 727 | } |
| 728 | return ssl_ctx_; |
| 729 | } |
| 730 | |
| 731 | void openssl_conf::get_ssl_ctxes(std::vector<SSL_CTX*>& out) |
| 732 | { |