You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by bl...@apache.org on 2006/01/15 10:16:04 UTC
svn commit: r369192 - /xml/security/trunk/c/src/utils/XSECPlatformUtils.cpp
Author: blautenb
Date: Sun Jan 15 01:15:59 2006
New Revision: 369192
URL: http://svn.apache.org/viewcvs?rev=369192&view=rev
Log:
Allow NSS as a default provider
Modified:
xml/security/trunk/c/src/utils/XSECPlatformUtils.cpp
Modified: xml/security/trunk/c/src/utils/XSECPlatformUtils.cpp
URL: http://svn.apache.org/viewcvs/xml/security/trunk/c/src/utils/XSECPlatformUtils.cpp?rev=369192&r1=369191&r2=369192&view=diff
==============================================================================
--- xml/security/trunk/c/src/utils/XSECPlatformUtils.cpp (original)
+++ xml/security/trunk/c/src/utils/XSECPlatformUtils.cpp Sun Jan 15 01:15:59 2006
@@ -48,6 +48,10 @@
# include <xsec/enc/WinCAPI/WinCAPICryptoProvider.hpp>
#endif
+#if defined (HAVE_NSS)
+# include <xsec/enc/NSS/NSSCryptoProvider.hpp>
+#endif
+
// Static data used by all of XSEC
int XSECPlatformUtils::initCount = 0;
XSECCryptoProvider * XSECPlatformUtils::g_cryptoProvider = NULL;
@@ -64,6 +68,10 @@
#else
# if defined (HAVE_WINCAPI)
# define XSEC_DEFAULT_PROVIDER WinCAPICryptoProvider()
+# else
+# if defined (HAVE_NSS)
+# define XSEC_DEFAULT_PROVIDER NSSCryptoProvider()
+# endif
# endif
#endif