]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ssl/helper.h
Author: Alex Rousskov, Andrew Balabohin, Christos Tsantilas
[thirdparty/squid.git] / src / ssl / helper.h
1 /*
2 * $Id$
3 */
4
5 #ifndef SQUID_SSL_HELPER_H
6 #define SQUID_SSL_HELPER_H
7
8 #include "../helper.h"
9 #include "ssl/crtd_message.h"
10
11 namespace Ssl
12 {
13 /**
14 * Set of thread for ssl_crtd. This class is singleton. Use this class only
15 * over GetIntance() static method. This class use helper structure
16 * for threads management.
17 */
18 class Helper
19 {
20 public:
21 static Helper * GetInstance(); ///< Instance class.
22 void Init(); ///< Init helper structure.
23 void Shutdown(); ///< Shutdown helper structure.
24 /// Submit crtd message to external crtd server.
25 void sslSubmit(CrtdMessage const & message, HLPCB * callback, void *data);
26 private:
27 Helper();
28 ~Helper();
29
30 helper * ssl_crtd; ///< helper for management of ssl_crtd.
31 };
32
33 } //namespace Ssl
34 #endif // SQUID_SSL_HELPER_H