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 2005/02/20 11:36:31 UTC
cvs commit: xml-security/c/src/tools/templatesign templatesign.cpp
blautenb 2005/02/20 02:36:31
Modified: c/src/tools/templatesign templatesign.cpp
Log:
Fix bug in provider handling
Revision Changes Path
1.24 +5 -4 xml-security/c/src/tools/templatesign/templatesign.cpp
Index: templatesign.cpp
===================================================================
RCS file: /home/cvs/xml-security/c/src/tools/templatesign/templatesign.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- templatesign.cpp 3 Feb 2005 13:40:36 -0000 1.23
+++ templatesign.cpp 20 Feb 2005 10:36:31 -0000 1.24
@@ -1110,8 +1110,8 @@
}
- XSECProvider prov;
- DSIGSignature * sig = prov.newSignatureFromDOM(theDOM, sigNode);
+ XSECProvider * prov = new XSECProvider;
+ DSIGSignature * sig = prov->newSignatureFromDOM(theDOM, sigNode);
// Use the internal URI resolver
#if defined(_WIN32)
@@ -1310,8 +1310,9 @@
CryptReleaseContext(win32RSACSP,0);
#endif
- prov.releaseSignature(sig);
+ prov->releaseSignature(sig);
delete parser;
+ delete prov;
XSECPlatformUtils::Terminate();
#ifndef XSEC_NO_XALAN