2
* Copyright (C) 1996-2015 The Squid Software Foundation and contributors
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.
9
#ifndef SQUID_SECURITY_ENCRYPTORANSWER_H
10
#define SQUID_SECURITY_ENCRYPTORANSWER_H
12
#include "base/CbcPointer.h"
13
#include "comm/forward.h"
19
/// Peer encrypted connection setup results (supplied via a callback).
20
/// The connection to peer was secured if and only if the error member is nil.
24
~EncryptorAnswer(); ///< deletes error if it is still set
25
Comm::ConnectionPointer conn; ///< peer connection (secured on success)
27
/// answer recepients must clear the error member in order to keep its info
28
/// XXX: We should refcount ErrorState instead of cbdata-protecting it.
29
CbcPointer<ErrorState> error; ///< problem details (nil on success)
32
std::ostream &operator <<(std::ostream &, const Security::EncryptorAnswer &);
34
} // namepace Security
36
#endif /* SQUID_SECURITY_ENCRYPTORANSWER_H */