X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fversion.h;h=086f671e0b8bd50d75cb774c8dcd6477a8feb5d3;hp=c7bd3f83390e2946500d3defb943d23b279b36e8;hb=390147dc17687e900bf6a50f3577ccc611a0a7cd;hpb=7283a1f3e79d0f6235afa8d2e7a0d17771a3d64b diff --git a/saml/version.h b/saml/version.h index c7bd3f8..086f671 100644 --- a/saml/version.h +++ b/saml/version.h @@ -1,74 +1,80 @@ -/* - * Copyright 2001-2006 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 __saml_version_h__ -#define __saml_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 - -// --------------------------------------------------------------------------- -// 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 OPENSAML VERSION - * AND DO NOT MODIFY ANYTHING ELSE IN THIS VERSION HEADER FILE - */ - -#define OPENSAML_VERSION_MAJOR 1 -#define OPENSAML_VERSION_MINOR 0 -#define OPENSAML_VERSION_REVISION 0 - -/** DO NOT MODIFY BELOW THIS LINE */ - -/** - * MAGIC THAT AUTOMATICALLY GENERATES THE FOLLOWING: - * - * gOpenSAMLVersionStr, gOpenSAMLFullVersionStr, gOpenSAMLMajVersion, gOpenSAMLMinVersion, gOpenSAMLRevision - */ - -// --------------------------------------------------------------------------- -// V E R S I O N I N F O R M A T I O N - -// OpenSAML version strings; these particular macros cannot be used for -// conditional compilation as they are not numeric constants - -#define OPENSAML_FULLVERSIONSTR INVK_CAT3_SEP_UNDERSCORE(OPENSAML_VERSION_MAJOR,OPENSAML_VERSION_MINOR,OPENSAML_VERSION_REVISION) -#define OPENSAML_FULLVERSIONDOT INVK_CAT3_SEP_PERIOD(OPENSAML_VERSION_MAJOR,OPENSAML_VERSION_MINOR,OPENSAML_VERSION_REVISION) -#define OPENSAML_FULLVERSIONNUM INVK_CAT3_SEP_NIL(OPENSAML_VERSION_MAJOR,OPENSAML_VERSION_MINOR,OPENSAML_VERSION_REVISION) -#define OPENSAML_VERSIONSTR INVK_CAT2_SEP_UNDERSCORE(OPENSAML_VERSION_MAJOR,OPENSAML_VERSION_MINOR) - -const char* const gOpenSAMLVersionStr = OPENSAML_VERSIONSTR; -const char* const gOpenSAMLFullVersionStr = OPENSAML_FULLVERSIONSTR; -const unsigned int gOpenSAMLMajVersion = OPENSAML_VERSION_MAJOR; -const unsigned int gOpenSAMLMinVersion = OPENSAML_VERSION_MINOR; -const unsigned int gOpenSAMLRevision = OPENSAML_VERSION_REVISION; - -// OpenSAML version numeric constants that can be used for conditional -// compilation purposes. - -#define _OPENSAML_VERSION CALC_EXPANDED_FORM (OPENSAML_VERSION_MAJOR,OPENSAML_VERSION_MINOR,OPENSAML_VERSION_REVISION) - -#endif /* __saml_version_h__ */ +/** + * Licensed to the University Corporation for Advanced Internet + * Development, Inc. (UCAID) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for + * additional information regarding copyright ownership. + * + * UCAID licenses this file to you 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. + */ + +/** + * saml/version.h + * + * Library version macros and constants. + */ + +#ifndef __saml_version_h__ +#define __saml_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 +#include + +// --------------------------------------------------------------------------- +// 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 OPENSAML VERSION + * AND DO NOT MODIFY ANYTHING ELSE IN THIS VERSION HEADER FILE + */ + +#define OPENSAML_VERSION_MAJOR 2 +#define OPENSAML_VERSION_MINOR 5 +#define OPENSAML_VERSION_REVISION 5 + +/** DO NOT MODIFY BELOW THIS LINE */ + +/** + * MAGIC THAT AUTOMATICALLY GENERATES THE FOLLOWING: + * + * gOpenSAMLVersionStr, gOpenSAMLFullVersionStr, gOpenSAMLMajVersion, gOpenSAMLMinVersion, gOpenSAMLRevision + */ + +// --------------------------------------------------------------------------- +// V E R S I O N I N F O R M A T I O N + +// OpenSAML version strings; these particular macros cannot be used for +// conditional compilation as they are not numeric constants + +#define OPENSAML_FULLVERSIONSTR INVK_CAT3_SEP_UNDERSCORE(OPENSAML_VERSION_MAJOR,OPENSAML_VERSION_MINOR,OPENSAML_VERSION_REVISION) +#define OPENSAML_FULLVERSIONDOT INVK_CAT3_SEP_PERIOD(OPENSAML_VERSION_MAJOR,OPENSAML_VERSION_MINOR,OPENSAML_VERSION_REVISION) +#define OPENSAML_FULLVERSIONNUM INVK_CAT3_SEP_NIL(OPENSAML_VERSION_MAJOR,OPENSAML_VERSION_MINOR,OPENSAML_VERSION_REVISION) +#define OPENSAML_VERSIONSTR INVK_CAT2_SEP_UNDERSCORE(OPENSAML_VERSION_MAJOR,OPENSAML_VERSION_MINOR) + +extern SAML_API const char* const gOpenSAMLVersionStr; +extern SAML_API const char* const gOpenSAMLFullVersionStr; +extern SAML_API const char* const gOpenSAMLDotVersionStr; +extern SAML_API const unsigned int gOpenSAMLMajVersion; +extern SAML_API const unsigned int gOpenSAMLMinVersion; +extern SAML_API const unsigned int gOpenSAMLRevision; + +// OpenSAML version numeric constants that can be used for conditional +// compilation purposes. + +#define _OPENSAML_VERSION CALC_EXPANDED_FORM (OPENSAML_VERSION_MAJOR,OPENSAML_VERSION_MINOR,OPENSAML_VERSION_REVISION) + +#endif /* __saml_version_h__ */