Line data Source code
1 : // TCP Client & Server -- classes to ease handling sockets
2 : // Copyright (c) 2012-2019 Made to Order Software Corp. All Rights Reserved
3 : //
4 : // This program is free software; you can redistribute it and/or modify
5 : // it under the terms of the GNU General Public License as published by
6 : // the Free Software Foundation; either version 2 of the License, or
7 : // (at your option) any later version.
8 : //
9 : // This program is distributed in the hope that it will be useful,
10 : // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 : // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 : // GNU General Public License for more details.
13 : //
14 : // You should have received a copy of the GNU General Public License
15 : // along with this program; if not, write to the Free Software
16 : // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 : #pragma once
18 :
19 : // C++ lib
20 : //
21 : #include <memory>
22 :
23 :
24 : // OpenSSL lib
25 : //
26 : #include <openssl/ssl.h>
27 :
28 :
29 :
30 : namespace ed
31 : {
32 :
33 :
34 : namespace detail
35 : {
36 :
37 :
38 : // shared with the tcp_biod_server
39 0 : class tcp_bio_client_impl
40 : {
41 : public:
42 : std::shared_ptr<SSL_CTX> f_ssl_ctx = std::shared_ptr<SSL_CTX>();
43 : std::shared_ptr<BIO> f_bio = std::shared_ptr<BIO>();
44 : };
45 :
46 :
47 : void bio_cleanup();
48 : void bio_deleter(BIO * bio);
49 : void bio_initialize();
50 : int bio_log_errors();
51 : void per_thread_cleanup();
52 : void ssl_ctx_deleter(SSL_CTX * ssl_ctx);
53 : void thread_cleanup();
54 :
55 :
56 : }
57 : // namespace detail
58 :
59 :
60 : } // namespace ed
61 : // vim: ts=4 sw=4 et
|