Update gitignore to account for subdirs / missing files.
[shibboleth/cpp-opensaml.git] / saml / internal.h
index 8183321..a017016 100644 (file)
@@ -45,6 +45,9 @@
 #include "SAMLConfig.h"
 
 #include <limits.h>
+#include <vector>
+#include <boost/scoped_ptr.hpp>
+#include <xmltooling/unicode.h>
 
 using namespace xercesc;
 
@@ -77,11 +80,7 @@ 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"
 
@@ -108,10 +107,14 @@ namespace 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;
-        std::auto_ptr<xmltooling::Mutex> m_lock;
+        boost::scoped_ptr<xmltooling::Mutex> m_lock;
+        std::vector<xmltooling::xstring> m_contactPriority;
     };
     /// @endcond