]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/ssl.h
Show a better warning when certtool/openssl are missing.
[user/henk/code/inspircd.git] / src / modules / ssl.h
index 8792d6ebcc767428177faf2eb9bef12bf42920a6..4c877551d61f59ab951042682a8f59e0c665f115 100644 (file)
@@ -121,7 +121,7 @@ class ssl_cert : public refcountbase
        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)
@@ -172,4 +172,19 @@ struct UserCertificateRequest : public Request
        }
 };
 
+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