#ifdef WIN32
# define _CRT_SECURE_NO_DEPRECATE 1
# define _CRT_NONSTDC_NO_DEPRECATE 1
+# define _SCL_SECURE_NO_WARNINGS 1
#endif
// Export public APIs
#include "SAMLConfig.h"
#include <limits.h>
+#include <vector>
+#include <boost/scoped_ptr.hpp>
+#include <xmltooling/unicode.h>
using namespace xercesc;
#endif
#endif
-#if SIZEOF_TIME_T == 8
-# define SAMLTIME_MAX LLONG_MAX
-#elif SIZEOF_TIME_T == 4
-# define SAMLTIME_MAX INT_MAX
-#endif
+#define SAMLTIME_MAX (sizeof(time_t) == 8 ? LLONG_MAX : INT_MAX)
#define SAML_LOGCAT "OpenSAML"
void generateRandomBytes(std::string& buf, unsigned int len);
XMLCh* generateIdentifier();
std::string hashSHA1(const char* data, bool toHex=false);
+ void setContactPriority(const XMLCh*);
+ const saml2md::ContactPerson* getContactPerson(const saml2md::EntityDescriptor&) const;
+ const saml2md::ContactPerson* getContactPerson(const saml2md::RoleDescriptor&) const;
private:
int m_initCount;
- xmltooling::Mutex* m_lock;
+ boost::scoped_ptr<xmltooling::Mutex> m_lock;
+ std::vector<xmltooling::xstring> m_contactPriority;
};
/// @endcond