More default methods.
[shibboleth/cpp-opensaml.git] / saml / internal.h
index 7caa141..72beb8e 100644 (file)
 #endif
 #endif
 
+#if SIZEOF_TIME_T == 8
+# define SAMLTIME_MAX LLONG_MAX
+#elif SIZEOF_TIME_T == 4
+# define SAMLTIME_MAX LONG_MAX
+#endif
+
 #define SAML_LOGCAT "OpenSAML"
 
 namespace opensaml {
@@ -83,14 +89,17 @@ namespace opensaml {
         static SAMLInternalConfig& getInternalConfig();
 
         // global per-process setup and shutdown of runtime
-        bool init();
-        void term();
+        bool init(bool initXMLTooling=true);
+        void term(bool termXMLTooling=true);
 
         void generateRandomBytes(void* buf, unsigned int len);
         void generateRandomBytes(std::string& buf, unsigned int len);
         XMLCh* generateIdentifier();
+        std::string hashSHA1(const char* data, bool toHex=false);
     private:
     };
+
+    void log_openssl();
     /// @endcond
 
 };