Duh, signing was already implemented.
[shibboleth/sp.git] / shibsp / AbstractSPRequest.h
index 3487ab0..aed5812 100644 (file)
 
 #include <shibsp/exceptions.h>
 #include <shibsp/SPRequest.h>
+#include <shibsp/util/CGIParser.h>
 
 namespace shibsp {
-
-    class SHIBSP_API CGIParser;
     
+#if defined (_MSC_VER)
+    #pragma warning( push )
+    #pragma warning( disable : 4251 )
+#endif
+
     /**
      * Abstract base for SPRequest implementations
      */
@@ -49,9 +53,7 @@ namespace shibsp {
 
         const Application& getApplication() const;
         
-        const Session* getSession() const {
-            return m_session;
-        }
+        Session* getSession(bool checkTimeout=true, bool ignoreAddress=false, bool cache=true) const;
 
         const char* getRequestURL() const;
         
@@ -72,6 +74,7 @@ namespace shibsp {
         mutable RequestMapper* m_mapper;
         mutable RequestMapper::Settings m_settings;
         mutable const Application* m_app;
+        mutable bool m_sessionTried;
         mutable Session* m_session;
         mutable std::string m_url;
         void* m_log; // declared void* to avoid log4cpp header conflicts in Apache
@@ -79,6 +82,11 @@ namespace shibsp {
         mutable std::map<std::string,std::string> m_cookieMap;
         mutable CGIParser* m_parser;
     };
+
+#if defined (_MSC_VER)
+    #pragma warning( pop )
+#endif
+
 };
 
 #endif /* __shibsp_abstreq_h__ */