#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 {
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
};