Update library/software version.
[shibboleth/cpp-sp.git] / shibsp / version.h
index 76aebdc..949e5cc 100644 (file)
@@ -1,74 +1,80 @@
-/*
- *  Copyright 2001-2009 Internet2
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * version.h
- *
- * Library version macros and constants
- */
-
-#ifndef __shibsp_version_h__
-#define __shibsp_version_h__
-
-// This is all based on Xerces, on the theory it might be useful to
-// support this kind of stuff in the future. If they ever yank some
-// of this stuff, it can be copied into here.
-
-#include <xercesc/util/XercesVersion.hpp>
-
-// ---------------------------------------------------------------------------
-// V E R S I O N   S P E C I F I C A T I O N
-
-/**
- * MODIFY THESE NUMERIC VALUES TO COINCIDE WITH SHIBSP LIBRARY VERSION
- * AND DO NOT MODIFY ANYTHING ELSE IN THIS VERSION HEADER FILE
- */
-
-#define SHIBSP_VERSION_MAJOR 1
-#define SHIBSP_VERSION_MINOR 4
-#define SHIBSP_VERSION_REVISION 0
-
-/** DO NOT MODIFY BELOW THIS LINE */
-
-/**
- * MAGIC THAT AUTOMATICALLY GENERATES THE FOLLOWING:
- *
- *     gShibSPVersionStr, gShibSPFullVersionStr, gShibSPMajVersion, gShibSPMinVersion, gShibSPRevision
- */
-
-// ---------------------------------------------------------------------------
-// V E R S I O N   I N F O R M A T I O N
-
-// ShibSP version strings; these particular macros cannot be used for
-// conditional compilation as they are not numeric constants
-
-#define SHIBSP_FULLVERSIONSTR INVK_CAT3_SEP_UNDERSCORE(SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR,SHIBSP_VERSION_REVISION)
-#define SHIBSP_FULLVERSIONDOT INVK_CAT3_SEP_PERIOD(SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR,SHIBSP_VERSION_REVISION)
-#define SHIBSP_FULLVERSIONNUM INVK_CAT3_SEP_NIL(SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR,SHIBSP_VERSION_REVISION)
-#define SHIBSP_VERSIONSTR     INVK_CAT2_SEP_UNDERSCORE(SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR)
-
-const char* const    gShibSPVersionStr = SHIBSP_VERSIONSTR;
-const char* const    gShibSPFullVersionStr = SHIBSP_FULLVERSIONSTR;
-const unsigned int   gShibSPMajVersion = SHIBSP_VERSION_MAJOR;
-const unsigned int   gShibSPMinVersion = SHIBSP_VERSION_MINOR;
-const unsigned int   gShibSPRevision   = SHIBSP_VERSION_REVISION;
-
-// ShibSP version numeric constants that can be used for conditional
-// compilation purposes.
-
-#define _SHIBSP_VERSION CALC_EXPANDED_FORM (SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR,SHIBSP_VERSION_REVISION)
-
-#endif /* __shibsp_version_h__ */
+/**\r
+ * Licensed to the University Corporation for Advanced Internet\r
+ * Development, Inc. (UCAID) under one or more contributor license\r
+ * agreements. See the NOTICE file distributed with this work for\r
+ * additional information regarding copyright ownership.\r
+ *\r
+ * UCAID licenses this file to you under the Apache License,\r
+ * Version 2.0 (the "License"); you may not use this file except\r
+ * in compliance with the License. You may obtain a copy of the\r
+ * License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing,\r
+ * software distributed under the License is distributed on an\r
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\r
+ * either express or implied. See the License for the specific\r
+ * language governing permissions and limitations under the License.\r
+ */\r
+\r
+/**\r
+ * version.h\r
+ *\r
+ * Library version macros and constants.\r
+ */\r
+\r
+#ifndef __shibsp_version_h__\r
+#define __shibsp_version_h__\r
+\r
+// This is all based on Xerces, on the theory it might be useful to\r
+// support this kind of stuff in the future. If they ever yank some\r
+// of this stuff, it can be copied into here.\r
+\r
+#include <shibsp/base.h>\r
+#include <xercesc/util/XercesVersion.hpp>\r
+\r
+// ---------------------------------------------------------------------------\r
+// V E R S I O N   S P E C I F I C A T I O N\r
+\r
+/**\r
+ * MODIFY THESE NUMERIC VALUES TO COINCIDE WITH SHIBSP LIBRARY VERSION\r
+ * AND DO NOT MODIFY ANYTHING ELSE IN THIS VERSION HEADER FILE\r
+ */\r
+\r
+#define SHIBSP_VERSION_MAJOR 1\r
+#define SHIBSP_VERSION_MINOR 5\r
+#define SHIBSP_VERSION_REVISION 6\r
+\r
+/** DO NOT MODIFY BELOW THIS LINE */\r
+\r
+/**\r
+ * MAGIC THAT AUTOMATICALLY GENERATES THE FOLLOWING:\r
+ *\r
+ *     gShibSPVersionStr, gShibSPFullVersionStr, gShibSPMajVersion, gShibSPMinVersion, gShibSPRevision\r
+ */\r
+\r
+// ---------------------------------------------------------------------------\r
+// V E R S I O N   I N F O R M A T I O N\r
+\r
+// ShibSP version strings; these particular macros cannot be used for\r
+// conditional compilation as they are not numeric constants\r
+\r
+#define SHIBSP_FULLVERSIONSTR INVK_CAT3_SEP_UNDERSCORE(SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR,SHIBSP_VERSION_REVISION)\r
+#define SHIBSP_FULLVERSIONDOT INVK_CAT3_SEP_PERIOD(SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR,SHIBSP_VERSION_REVISION)\r
+#define SHIBSP_FULLVERSIONNUM INVK_CAT3_SEP_NIL(SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR,SHIBSP_VERSION_REVISION)\r
+#define SHIBSP_VERSIONSTR     INVK_CAT2_SEP_UNDERSCORE(SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR)\r
+\r
+extern SHIBSP_API const char* const    gShibSPVersionStr;\r
+extern SHIBSP_API const char* const    gShibSPFullVersionStr;\r
+extern SHIBSP_API const char* const    gShibSPDotVersionStr;\r
+extern SHIBSP_API const unsigned int   gShibSPMajVersion;\r
+extern SHIBSP_API const unsigned int   gShibSPMinVersion;\r
+extern SHIBSP_API const unsigned int   gShibSPRevision;\r
+\r
+// ShibSP version numeric constants that can be used for conditional\r
+// compilation purposes.\r
+\r
+#define _SHIBSP_VERSION CALC_EXPANDED_FORM (SHIBSP_VERSION_MAJOR,SHIBSP_VERSION_MINOR,SHIBSP_VERSION_REVISION)\r
+\r
+#endif /* __shibsp_version_h__ */\r