-
Notifications
You must be signed in to change notification settings - Fork 638
Expand file tree
/
Copy pathEncryptorAnswer.h
More file actions
41 lines (30 loc) · 1.27 KB
/
EncryptorAnswer.h
File metadata and controls
41 lines (30 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* Copyright (C) 1996-2026 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
* Please see the COPYING and CONTRIBUTORS files for details.
*/
#ifndef SQUID_SRC_SECURITY_ENCRYPTORANSWER_H
#define SQUID_SRC_SECURITY_ENCRYPTORANSWER_H
#include "base/CbcPointer.h"
#include "comm/Connection.h"
class ErrorState;
namespace Security {
/// Peer encrypted connection setup results (supplied via a callback).
/// The connection to peer was secured if and only if the error member is nil.
class EncryptorAnswer
{
public:
EncryptorAnswer(): tunneled(false) {}
~EncryptorAnswer(); ///< deletes error if it is still set
Comm::ConnectionPointer conn; ///< peer connection (secured on success)
/// answer recipients must clear the error member in order to keep its info
/// XXX: We should refcount ErrorState instead of cbdata-protecting it.
CbcPointer<ErrorState> error; ///< problem details (nil on success)
/// whether we spliced the connections instead of negotiating encryption
bool tunneled;
};
std::ostream &operator <<(std::ostream &, const EncryptorAnswer &);
} // namespace Security
#endif /* SQUID_SRC_SECURITY_ENCRYPTORANSWER_H */