helper.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_SSL_HELPER_H
10 #define SQUID_SSL_HELPER_H
11 
12 #if USE_OPENSSL
13 
14 #include "base/AsyncJobCalls.h"
15 #include "base/LruMap.h"
16 #include "helper/forward.h"
17 #include "security/forward.h"
19 #include "ssl/crtd_message.h"
20 
21 namespace Ssl
22 {
23 #if USE_SSL_CRTD
24 
29 class Helper
30 {
31 public:
32  static Helper * GetInstance();
33  void Init();
34  void Shutdown();
35  void sslSubmit(CrtdMessage const & message, HLPCB * callback, void *data);
37 private:
38  Helper();
39  ~Helper();
40 
42 };
43 #endif
44 
48 {
49 public:
51 
52  typedef void CVHCB(void *, Ssl::CertValidationResponse const &);
54  void Init();
55  void Shutdown();
58 private:
61 
63 public:
66 };
67 
68 } //namespace Ssl
69 
70 #endif /* USE_OPENSSL */
71 #endif // SQUID_SSL_HELPER_H
72 
void const char HLPCB * callback
Definition: stub_helper.cc:16
static LruCache * HelperCache
cache for cert validation helper
Definition: helper.h:65
static CertValidationHelper * GetInstance()
Instance class.
Definition: helper.cc:171
struct _request * request(char *urlin)
Definition: tcp-banger2.c:291
void Init()
Init helper structure.
Definition: helper.cc:85
Definition: helper.h:60
void Shutdown()
Definition: helper.cc:116
UnaryMemFunT< Security::PeerConnector, CertValidationResponse::Pointer > CbDialer
Definition: helper.h:50
void HLPCB(void *, const Helper::Reply &)
Definition: forward.h:27
void sslSubmit(Ssl::CertValidationRequest const &request, AsyncCall::Pointer &)
Submit crtd request message to external crtd server.
Definition: helper.cc:301
void const char HLPCB void * data
Definition: stub_helper.cc:16
void sslSubmit(CrtdMessage const &message, HLPCB *callback, void *data)
Submit crtd message to external crtd server.
Definition: helper.cc:126
Definition: LruMap.h:17
void CVHCB(void *, Ssl::CertValidationResponse const &)
Definition: helper.h:52
LruMap< SBuf, Ssl::CertValidationResponse::Pointer, sizeof(Ssl::CertValidationResponse::Pointer)+sizeof(Ssl::CertValidationResponse)> LruCache
Definition: helper.h:64
helper * ssl_crtd
helper for management of ssl_crtd.
Definition: helper.h:41
static Helper * GetInstance()
Instance class.
Definition: helper.cc:70
void Init()
Init helper structure.
Definition: helper.cc:188
helper * ssl_crt_validator
helper for management of ssl_crtd.
Definition: helper.h:62

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors