[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
Tue Jul 3 16:41:13 EDT 2012


Author: scantor
Date: Tue Jul  3 16:41:13 2012
New Revision: 984

URL: http://svn.shibboleth.net/view/cpp-xmltooling?rev=984&view=rev
Log:
Register extended OAEP algorithm conditionally

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=984&r1=983&r2=984&view=diff
==============================================================================
--- branches/REL_1/config_win32.h (original)
+++ branches/REL_1/config_win32.h Tue Jul  3 16:41:13 2012
@@ -152,6 +152,9 @@
 #  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=984&r1=983&r2=984&view=diff
==============================================================================
--- branches/REL_1/configure.ac (original)
+++ branches/REL_1/configure.ac Tue Jul  3 16:41:13 2012
@@ -348,6 +348,13 @@
         [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=984&r1=983&r2=984&view=diff
==============================================================================
--- branches/REL_1/xmltooling/XMLToolingConfig.cpp (original)
+++ branches/REL_1/xmltooling/XMLToolingConfig.cpp Tue Jul  3 16:41:13 2012
@@ -798,6 +798,9 @@
 
     registerXMLAlgorithm(DSIGConstants::s_unicodeStrURIRSA_1_5, "RSA", 0, ALGTYPE_KEYENCRYPT);
     registerXMLAlgorithm(DSIGConstants::s_unicodeStrURIRSA_OAEP_MGFP1, "RSA", 0, ALGTYPE_KEYENCRYPT);
+#ifdef XMLTOOLING_XSEC_OAEP11
+    registerXMLAlgorithm(DSIGConstants::s_unicodeStrURIRSA_OAEP, "RSA", 0, ALGTYPE_KEYENCRYPT);
+#endif
 
     registerXMLAlgorithm(DSIGConstants::s_unicodeStrURI3DES_CBC, "DESede", 192, ALGTYPE_ENCRYPT);
     registerXMLAlgorithm(DSIGConstants::s_unicodeStrURIKW_3DES, "DESede", 192, ALGTYPE_KEYENCRYPT);

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=984&r1=983&r2=984&view=diff
==============================================================================
--- branches/REL_1/xmltooling/config_pub.h.in (original)
+++ branches/REL_1/xmltooling/config_pub.h.in Tue Jul  3 16:41:13 2012
@@ -32,3 +32,6 @@
 
 /* Define to 1 if you have the `xsecsize_t' type. */
 #undef HAVE_XSECSIZE_T
+
+/* Define to 1 if XML-Security-C includes MGF-pluggable RSA-OAEP support. */
+#undef XMLTOOLING_XMLSEC_OAEP11

Modified: branches/REL_1/xmltooling/config_pub_win32.h
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/config_pub_win32.h?rev=984&r1=983&r2=984&view=diff
==============================================================================
--- branches/REL_1/xmltooling/config_pub_win32.h (original)
+++ branches/REL_1/xmltooling/config_pub_win32.h Tue Jul  3 16:41:13 2012
@@ -56,3 +56,20 @@
 
 /* Define to 1 if you have the `xsecsize_t' type. */
 #define HAVE_XSECSIZE_T 1
+
+#ifndef XMLTOOLING_NO_XMLSEC
+# include <xsec/framework/XSECDefs.hpp>
+# if (_XSEC_VERSION_FULL >= 10500)
+#  define XMLTOOLING_XMLSEC_C14N11 1
+# endif
+# if (_XSEC_VERSION_FULL >= 10600)
+#  define XMLTOOLING_XMLSEC_MULTIPLECRL 1
+#  define XMLTOOLING_XMLSEC_SIGALGORITHM 1
+#  define XMLTOOLING_XMLSEC_ECC 1
+#  define XMLTOOLING_XMLSEC_DEBUGLOGGING 1
+# endif
+# if (_XSEC_VERSION_FULL >= 10700)
+#  define XMLTOOLING_XMLSEC_OAEP11 1
+# endif
+#endif
+



More information about the commits mailing list