[cpp-xmltooling COMMIT] in /branches/REL_1: config_win32.h configure.ac xmltooling/XMLToolingConfig.cpp xmltooling/co...
noreply at shibboleth.net
noreply at shibboleth.net
Thu Jul 5 14:54:29 EDT 2012
Author: scantor
Date: Thu Jul 5 14:54:29 2012
New Revision: 986
URL: http://svn.shibboleth.net/view/cpp-xmltooling?rev=986&view=rev
Log:
Roll back unnecessary configure test, and add ECDSA-SHA224.
Modified:
branches/REL_1/config_win32.h
branches/REL_1/configure.ac
branches/REL_1/xmltooling/XMLToolingConfig.cpp
branches/REL_1/xmltooling/config_pub.h.in
branches/REL_1/xmltooling/config_pub_win32.h
Modified: branches/REL_1/config_win32.h
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/config_win32.h?rev=986&r1=985&r2=986&view=diff
==============================================================================
--- branches/REL_1/config_win32.h (original)
+++ branches/REL_1/config_win32.h Thu Jul 5 14:54:29 2012
@@ -152,9 +152,6 @@
# define XMLTOOLING_XMLSEC_ECC 1
# define XMLTOOLING_XMLSEC_DEBUGLOGGING 1
# endif
-# if (_XSEC_VERSION_FULL >= 10700)
-# define XMLTOOLING_XMLSEC_OAEP11 1
-# endif
#endif
/* Define to empty if `const' does not conform to ANSI C. */
Modified: branches/REL_1/configure.ac
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/configure.ac?rev=986&r1=985&r2=986&view=diff
==============================================================================
--- branches/REL_1/configure.ac (original)
+++ branches/REL_1/configure.ac Thu Jul 5 14:54:29 2012
@@ -348,13 +348,6 @@
[AC_MSG_RESULT([yes])AC_DEFINE([XMLTOOLING_XMLSEC_C14N11],[1],[Define to 1 if XML-Security-C includes C14N 1.1 support.])],
[AC_MSG_RESULT([no])])
- AC_MSG_CHECKING([whether XML-Security-C includes MGF-pluggable RSA-OAEP support])
- AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM([[#include <xsec/dsig/DSIGConstants.hpp>]],
- [[encryptionMethod em = ENCRYPT_RSA_OAEP;]])],
- [AC_MSG_RESULT([yes])AC_DEFINE([XMLTOOLING_XMLSEC_OAEP11],[1],[Define to 1 if XML-Security-C includes MGF-pluggable RSA-OAEP support.])],
- [AC_MSG_RESULT([no])])
-
AC_MSG_CHECKING([whether XML-Security-C includes debug logging support])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[#include <xsec/utils/XSECPlatformUtils.hpp>]],
Modified: branches/REL_1/xmltooling/XMLToolingConfig.cpp
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/XMLToolingConfig.cpp?rev=986&r1=985&r2=986&view=diff
==============================================================================
--- branches/REL_1/xmltooling/XMLToolingConfig.cpp (original)
+++ branches/REL_1/xmltooling/XMLToolingConfig.cpp Thu Jul 5 14:54:29 2012
@@ -745,6 +745,7 @@
// With ECDSA, XML-Security exports a public macro for OpenSSL's support, and any
// versions of XML-Security that didn't provide the macro don't handle ECDSA anyway.
+ // However, the SHA-224 variant was left out of the initial XML-Security release.
// With AES and GCM, all supported XML-Security versions export a macro for OpenSSL's support.
@@ -764,6 +765,10 @@
#endif
registerXMLAlgorithm(DSIGConstants::s_unicodeStrURIDSA_SHA1, "DSA", 0, ALGTYPE_SIGN);
+#if defined(URI_ID_DSA_SHA256) && defined(XMLTOOLING_OPENSSL_HAVE_SHA2) && !defined(OPENSSL_NO_SHA256)
+ registerXMLAlgorithm(DSIGConstants::s_unicodeStrURIDSA_SHA256, "DSA", 0, ALGTYPE_SIGN);
+#endif
+
registerXMLAlgorithm(DSIGConstants::s_unicodeStrURIRSA_MD5, "RSA", 0, ALGTYPE_SIGN);
registerXMLAlgorithm(DSIGConstants::s_unicodeStrURIRSA_SHA1, "RSA", 0, ALGTYPE_SIGN);
#if defined(XMLTOOLING_OPENSSL_HAVE_SHA2) && !defined(OPENSSL_NO_SHA256)
@@ -777,10 +782,13 @@
#ifdef XSEC_OPENSSL_HAVE_EC
registerXMLAlgorithm(DSIGConstants::s_unicodeStrURIECDSA_SHA1, "EC", 0, ALGTYPE_SIGN);
-#if defined(XMLTOOLING_OPENSSL_HAVE_SHA2) && !defined(OPENSSL_NO_SHA256)
+# if defined(XMLTOOLING_OPENSSL_HAVE_SHA2) && !defined(OPENSSL_NO_SHA256)
registerXMLAlgorithm(DSIGConstants::s_unicodeStrURIECDSA_SHA256, "EC", 0, ALGTYPE_SIGN);
+# ifdef URI_ID_ECDSA_SHA224
+ registerXMLAlgorithm(DSIGConstants::s_unicodeStrURIECDSA_SHA224, "EC", 0, ALGTYPE_SIGN);
+# endif
# endif
-#if defined(XMLTOOLING_OPENSSL_HAVE_SHA2) && !defined(OPENSSL_NO_SHA512)
+# if defined(XMLTOOLING_OPENSSL_HAVE_SHA2) && !defined(OPENSSL_NO_SHA512)
registerXMLAlgorithm(DSIGConstants::s_unicodeStrURIECDSA_SHA384, "EC", 0, ALGTYPE_SIGN);
registerXMLAlgorithm(DSIGConstants::s_unicodeStrURIECDSA_SHA512, "EC", 0, ALGTYPE_SIGN);
# endif
@@ -798,7 +806,7 @@
registerXMLAlgorithm(DSIGConstants::s_unicodeStrURIRSA_1_5, "RSA", 0, ALGTYPE_KEYENCRYPT);
registerXMLAlgorithm(DSIGConstants::s_unicodeStrURIRSA_OAEP_MGFP1, "RSA", 0, ALGTYPE_KEYENCRYPT);
-#ifdef XMLTOOLING_XMLSEC_OAEP11
+#ifdef URI_ID_RSA_OAEP
registerXMLAlgorithm(DSIGConstants::s_unicodeStrURIRSA_OAEP, "RSA", 0, ALGTYPE_KEYENCRYPT);
#endif
Modified: branches/REL_1/xmltooling/config_pub.h.in
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/config_pub.h.in?rev=986&r1=985&r2=986&view=diff
==============================================================================
--- branches/REL_1/xmltooling/config_pub.h.in (original)
[... 24 lines stripped ...]
More information about the commits
mailing list