std::string GetMetaLine()
{
std::stringstream value;
- bool hasError = error.length();
+ bool hasError = !error.empty();
value << (IsInvalid() ? "v" : "V") << (IsTrusted() ? "T" : "t") << (IsRevoked() ? "R" : "r")
<< (IsUnknownSigner() ? "s" : "S") << (hasError ? "E" : "e") << " ";
if (hasError)
}
};
+class SSLRawSessionRequest : public Request
+{
+ public:
+ const int fd;
+ void* data;
+
+ SSLRawSessionRequest(int FD, Module* srcmod, Module* destmod)
+ : Request(srcmod, destmod, "GET_RAW_SSL_SESSION")
+ , fd(FD)
+ , data(NULL)
+ {
+ Send();
+ }
+};
+
#endif