helper.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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_SRC_SSL_HELPER_H
10 #define SQUID_SRC_SSL_HELPER_H
11 
12 #if USE_OPENSSL
13 
14 #include "base/AsyncJobCalls.h"
15 #include "base/ClpMap.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 
28 class Helper
29 {
30 public:
31  static void Init();
32  static void Shutdown();
33  static void Reconfigure();
34  static void Submit(CrtdMessage const & message, HLPCB * callback, void *data);
36 private:
38 };
39 #endif
40 
44 {
45 public:
48 
49  typedef void CVHCB(void *, Ssl::CertValidationResponse const &);
50  static void Init();
51  static void Shutdown();
52  static void Reconfigure();
53  static void Submit(const Ssl::CertValidationRequest &, const Callback &);
55 private:
57 public:
60 };
61 
62 } //namespace Ssl
63 
64 #endif /* USE_OPENSSL */
65 #endif /* SQUID_SRC_SSL_HELPER_H */
66 
AsyncCallback< Answer > Callback
Definition: helper.h:47
void CVHCB(void *, Ssl::CertValidationResponse const &)
Definition: helper.h:49
static void Submit(CrtdMessage const &message, HLPCB *callback, void *data)
Submit crtd message to external crtd server.
Definition: helper.cc:123
a smart AsyncCall pointer for delivery of future results
static void Shutdown()
Shutdown helper structure.
Definition: helper.cc:231
static void Submit(const Ssl::CertValidationRequest &, const Callback &)
Submit crtd request message to external crtd server.
Definition: helper.cc:298
static void Reconfigure()
Definition: helper.cc:247
ClpMap< SBuf, CertValidationResponse::Pointer, CertValidationResponse::MemoryUsedByResponse > CacheType
Definition: helper.h:58
static void Init()
Init helper structure.
Definition: helper.cc:76
static void Init()
Init helper structure.
Definition: helper.cc:170
RefCount< CertValidationResponse > Pointer
static void Shutdown()
Shutdown helper structure.
Definition: helper.cc:107
Definition: ClpMap.h:40
Definition: Xaction.cc:39
::Helper::ClientPointer ssl_crt_validator
helper for management of ssl_crtd.
Definition: helper.h:56
helper protocol primitives
Definition: ChildConfig.h:12
static void Reconfigure()
Definition: helper.cc:117
::Helper::ClientPointer ssl_crtd
helper for management of ssl_crtd.
Definition: helper.h:37
void HLPCB(void *, const Helper::Reply &)
Definition: forward.h:33
static CacheType * HelperCache
cache for cert validation helper
Definition: helper.h:59
RefCount< Client > ClientPointer
Definition: forward.h:28

 

Introduction

Documentation

Support

Miscellaneous