Add samlsign to project.
authorcantor <cantor@fb386ef7-a10c-0410-8ebf-fd3f8e989ab0>
Mon, 10 Sep 2007 01:33:36 +0000 (01:33 +0000)
committercantor <cantor@fb386ef7-a10c-0410-8ebf-fd3f8e989ab0>
Mon, 10 Sep 2007 01:33:36 +0000 (01:33 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-opensaml2/trunk@301 fb386ef7-a10c-0410-8ebf-fd3f8e989ab0

.cproject
Makefile.am
configure.ac
cpp-opensaml2.sln
opensaml.spec.in
samlsign/Makefile.am [new file with mode: 0644]
samlsign/samlsign.cpp [new file with mode: 0644]
samlsign/samlsign.vcproj [new file with mode: 0644]
samltest/samltest.vcproj

index af0d7b1..af2ae06 100644 (file)
--- a/.cproject
+++ b/.cproject
 </scannerInfoProvider>\r
 </profile>\r
 </storageModule>\r
+\r
+<storageModule buildSystemId="org.eclipse.cdt.core.defaultConfigDataProvider" id="converted.config.2133715230" moduleId="org.eclipse.cdt.core.settings" name="convertedConfig">\r
+<externalSettings/>\r
+<extensions>\r
+<extension id="org.eclipse.cdt.core.nullindexer" point="org.eclipse.cdt.core.CIndexer"/>\r
+<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>\r
+</extensions>\r
+</storageModule>\r
+<storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>\r
 <storageModule moduleId="org.eclipse.cdt.core.pathentry">\r
 <pathentry kind="out" path=""/>\r
 <pathentry kind="out" path="debug"/>\r
 <pathentry include="C:/log4cpp-0.3.5rc1/include" kind="inc" path="" system="true"/>\r
 <pathentry include="C:/cxxtest" kind="inc" path="" system="true"/>\r
 <pathentry kind="src" path="samltest/encryption"/>\r
+<pathentry kind="src" path="samlsign"/>\r
 </storageModule>\r
-<storageModule buildSystemId="org.eclipse.cdt.core.defaultConfigDataProvider" id="converted.config.2133715230" moduleId="org.eclipse.cdt.core.settings" name="convertedConfig">\r
-<externalSettings/>\r
-<extensions>\r
-<extension id="org.eclipse.cdt.core.nullindexer" point="org.eclipse.cdt.core.CIndexer"/>\r
-<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>\r
-</extensions>\r
-</storageModule>\r
+<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>\r
 </cconfiguration>\r
 </storageModule>\r
 </cproject>\r
index 6a184b1..3dbc715 100644 (file)
@@ -10,7 +10,7 @@ dist-hook:
        rm -rf `find $(distdir)/samltest/data -name .svn`
 
 
-SUBDIRS = doc schemas saml samltest
+SUBDIRS = doc schemas saml samltest samlsign
 
 if DX_COND_doc
 all-local: opensaml.spec pkginfo doxygen-doc
index 16ef22f..2f13bbc 100644 (file)
@@ -269,4 +269,4 @@ AC_SUBST(DX_INCLUDE)
 LIBTOOL="$LIBTOOL --silent"
 
 # output makefiles
-AC_OUTPUT(Makefile saml/Makefile samltest/Makefile schemas/Makefile doc/Makefile)
+AC_OUTPUT(Makefile saml/Makefile samltest/Makefile samlsign/Makefile schemas/Makefile doc/Makefile)
index 19f31bb..30d3cc9 100644 (file)
@@ -2,8 +2,25 @@
 Microsoft Visual Studio Solution File, Format Version 9.00\r
 # Visual Studio 2005\r
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "saml", "saml\saml.vcproj", "{34DE3EA5-EA05-4261-8B63-A850FFB91768}"\r
+       ProjectSection(WebsiteProperties) = preProject\r
+               Debug.AspNetCompiler.Debug = "True"\r
+               Release.AspNetCompiler.Debug = "False"\r
+       EndProjectSection\r
 EndProject\r
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "samltest", "samltest\samltest.vcproj", "{8BBB3B12-DBA1-4533-9C36-2CA95F1F1659}"\r
+       ProjectSection(WebsiteProperties) = preProject\r
+               Debug.AspNetCompiler.Debug = "True"\r
+               Release.AspNetCompiler.Debug = "False"\r
+       EndProjectSection\r
+       ProjectSection(ProjectDependencies) = postProject\r
+               {34DE3EA5-EA05-4261-8B63-A850FFB91768} = {34DE3EA5-EA05-4261-8B63-A850FFB91768}\r
+       EndProjectSection\r
+EndProject\r
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "samlsign", "samlsign\samlsign.vcproj", "{C4E58F5A-AF7E-4060-89E7-5F690682E662}"\r
+       ProjectSection(WebsiteProperties) = preProject\r
+               Debug.AspNetCompiler.Debug = "True"\r
+               Release.AspNetCompiler.Debug = "False"\r
+       EndProjectSection\r
        ProjectSection(ProjectDependencies) = postProject\r
                {34DE3EA5-EA05-4261-8B63-A850FFB91768} = {34DE3EA5-EA05-4261-8B63-A850FFB91768}\r
        EndProjectSection\r
@@ -22,6 +39,10 @@ Global
                {8BBB3B12-DBA1-4533-9C36-2CA95F1F1659}.Debug|Win32.Build.0 = Debug|Win32\r
                {8BBB3B12-DBA1-4533-9C36-2CA95F1F1659}.Release|Win32.ActiveCfg = Release|Win32\r
                {8BBB3B12-DBA1-4533-9C36-2CA95F1F1659}.Release|Win32.Build.0 = Release|Win32\r
+               {C4E58F5A-AF7E-4060-89E7-5F690682E662}.Debug|Win32.ActiveCfg = Debug|Win32\r
+               {C4E58F5A-AF7E-4060-89E7-5F690682E662}.Debug|Win32.Build.0 = Debug|Win32\r
+               {C4E58F5A-AF7E-4060-89E7-5F690682E662}.Release|Win32.ActiveCfg = Release|Win32\r
+               {C4E58F5A-AF7E-4060-89E7-5F690682E662}.Release|Win32.Build.0 = Release|Win32\r
        EndGlobalSection\r
        GlobalSection(SolutionProperties) = preSolution\r
                HideSolutionNode = FALSE\r
index ceaa57a..1dd9312 100644 (file)
@@ -70,6 +70,7 @@ make check
 %files
 %defattr(-,root,root,-)
 %doc _docs/LICENSE.txt _docs/NOTICE.txt
+%{_bindir}/samlsign
 %{_libdir}/libsaml.so.*
 %dir %{_datadir}/xml/%{name}
 %{_datadir}/xml/%{name}
diff --git a/samlsign/Makefile.am b/samlsign/Makefile.am
new file mode 100644 (file)
index 0000000..9df6f98
--- /dev/null
@@ -0,0 +1,9 @@
+AUTOMAKE_OPTIONS = foreign
+
+bin_PROGRAMS = samlsign
+
+samlsign_SOURCES = samlsign.cpp
+
+samlsign_LDADD = $(top_builddir)/saml/libsaml.la
+
+EXTRA_DIST = samlsign.vcproj
diff --git a/samlsign/samlsign.cpp b/samlsign/samlsign.cpp
new file mode 100644 (file)
index 0000000..ed8c149
--- /dev/null
@@ -0,0 +1,243 @@
+/*\r
+ *  Copyright 2001-2007 Internet2\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+/* siterefresh.cpp - command-line tool to refresh and verify metadata\r
+\r
+   Scott Cantor\r
+   5/12/03\r
+\r
+   $Id:siterefresh.cpp 2252 2007-05-20 20:20:57Z cantor $\r
+*/\r
+\r
+#if defined (_MSC_VER) || defined(__BORLANDC__)\r
+# include "config_win32.h"\r
+#else\r
+# include "config.h"\r
+#endif\r
+\r
+#ifdef WIN32\r
+# define _CRT_NONSTDC_NO_DEPRECATE 1\r
+# define _CRT_SECURE_NO_DEPRECATE 1\r
+#endif\r
+\r
+#include <saml/SAMLConfig.h>\r
+#include <saml/saml2/metadata/Metadata.h>\r
+#include <saml/util/SAMLConstants.h>\r
+#include <xmltooling/logging.h>\r
+#include <xmltooling/XMLToolingConfig.h>\r
+#include <xmltooling/signature/Signature.h>\r
+#include <xmltooling/util/XMLHelper.h>\r
+\r
+#include <fstream>\r
+#include <xercesc/framework/LocalFileInputSource.hpp>\r
+#include <xercesc/framework/URLInputSource.hpp>\r
+#include <xercesc/framework/StdInInputSource.hpp>\r
+#include <xercesc/framework/Wrapper4InputSource.hpp>\r
+\r
+using namespace xmlsignature;\r
+using namespace xmlconstants;\r
+using namespace xmltooling::logging;\r
+using namespace xmltooling;\r
+using namespace samlconstants;\r
+using namespace opensaml::saml2md;\r
+using namespace opensaml;\r
+using namespace xercesc;\r
+using namespace std;\r
+\r
+template<class T> T* buildPlugin(const char* path, PluginManager<T,string,const DOMElement*>& mgr)\r
+{\r
+    ifstream in(path);
+    DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(in);
+    XercesJanitor<DOMDocument> janitor(doc);
+    
+    static const XMLCh _type[] = UNICODE_LITERAL_4(t,y,p,e);
+    auto_ptr_char type(doc->getDocumentElement()->getAttributeNS(NULL,_type));
+    if (type.get() && *type.get())
+        return mgr.newPlugin(type.get(), doc->getDocumentElement());
+    throw XMLToolingException("Missing type in plugin configuration.");
+}\r
+\r
+CredentialResolver* buildSimpleResolver(const char* key, const char* cert)\r
+{\r
+    static const XMLCh _CredentialResolver[] =  UNICODE_LITERAL_18(C,r,e,d,e,n,t,i,a,l,R,e,s,o,l,v,e,r);\r
+    static const XMLCh _certificate[] =     UNICODE_LITERAL_11(c,e,r,t,i,f,i,c,a,t,e);\r
+    static const XMLCh _key[] =             UNICODE_LITERAL_3(k,e,y);\r
+\r
+    DOMDocument* doc = XMLToolingConfig::getConfig().getParser().newDocument();\r
+    XercesJanitor<DOMDocument> janitor(doc);\r
+    DOMElement* root = doc->createElementNS(NULL, _CredentialResolver);\r
+    if (key) {\r
+        auto_ptr_XMLCh widenit(key);\r
+        root->setAttributeNS(NULL, _key, widenit.get());\r
+    }\r
+    if (cert) {\r
+        auto_ptr_XMLCh widenit(cert);\r
+        root->setAttributeNS(NULL, _certificate, widenit.get());\r
+    }\r
+\r
+    return XMLToolingConfig::getConfig().CredentialResolverManager.newPlugin(FILESYSTEM_CREDENTIAL_RESOLVER, root);\r
+}\r
+\r
+int main(int argc,char* argv[])\r
+{\r
+    bool verify=true;\r
+    char* url_param=NULL;\r
+    char* path_param=NULL;\r
+    char* key_param=NULL;\r
+    char* cert_param=NULL;\r
+    char* cr_param=NULL;\r
+    char* t_param=NULL;\r
+    char* id_param=NULL;\r
+\r
+    // metadata lookup options\r
+    char* m_param=NULL;\r
+    char* issuer=NULL;\r
+    char* prot = NULL;\r
+    const XMLCh* protocol = NULL;\r
+    char* rname = NULL;\r
+    char* rns = NULL;\r
+\r
+    for (int i=1; i<argc; i++) {\r
+        if (!strcmp(argv[i],"-u") && i+1<argc)\r
+            url_param=argv[++i];\r
+        else if (!strcmp(argv[i],"-f") && i+1<argc)\r
+            path_param=argv[++i];\r
+        else if (!strcmp(argv[i],"-id") && i+1<argc)\r
+            id_param=argv[++i];\r
+        else if (!strcmp(argv[i],"-s"))\r
+            verify=false;\r
+        else if (!strcmp(argv[i],"-k") && i+1<argc)\r
+            key_param=argv[++i];\r
+        else if (!strcmp(argv[i],"-c") && i+1<argc)\r
+            cert_param=argv[++i];\r
+        else if (!strcmp(argv[i],"-R") && i+1<argc)\r
+            cr_param=argv[++i];\r
+        else if (!strcmp(argv[i],"-T") && i+1<argc)\r
+            t_param=argv[++i];\r
+        else if (!strcmp(argv[i],"-M") && i+1<argc)\r
+            m_param=argv[++i];\r
+        else if (!strcmp(argv[i],"-i") && i+1<argc)\r
+            issuer=argv[++i];\r
+        else if (!strcmp(argv[i],"-p") && i+1<argc)\r
+            prot=argv[++i];\r
+        else if (!strcmp(argv[i],"-r") && i+1<argc)\r
+            rname=argv[++i];\r
+        else if (!strcmp(argv[i],"-ns") && i+1<argc)\r
+            rns=argv[++i];\r
+        else if (!strcmp(argv[i],"-saml10"))\r
+            protocol=samlconstants::SAML10_PROTOCOL_ENUM;\r
+        else if (!strcmp(argv[i],"-saml11"))\r
+            protocol=samlconstants::SAML11_PROTOCOL_ENUM;\r
+        else if (!strcmp(argv[i],"-saml2"))\r
+            protocol=samlconstants::SAML20P_NS;\r
+        else if (!strcmp(argv[i],"-idp"))\r
+            rname="IDPSSODescriptor";\r
+        else if (!strcmp(argv[i],"-aa"))\r
+            rname="AttributeAuthorityDescriptor";\r
+        else if (!strcmp(argv[i],"-pdp"))\r
+            rname="PDPDescriptor";\r
+        else if (!strcmp(argv[i],"-sp"))\r
+            rname="SPSSODescriptor";\r
+    }\r
+\r
+    if (!verify && !key_param && !cr_param) {\r
+        cerr << "either -k or -R option required when signing, see documentation for usage" << endl;\r
+        return -1;\r
+    }\r
+\r
+    SAMLConfig& conf=SAMLConfig::getConfig();\r
+    if (!conf.init())\r
+        return -2;\r
+    XMLToolingConfig& xmlconf = XMLToolingConfig::getConfig();\r
+    Category& log = Category::getInstance("OpenSAML.Utility.SAMLSign");\r
+\r
+    int ret = 0;\r
+\r
+    try {\r
+        // Parse the specified document.\r
+        static XMLCh base[]={chLatin_f, chLatin_i, chLatin_l, chLatin_e, chColon, chForwardSlash, chForwardSlash, chForwardSlash, chNull};\r
+        DOMDocument* doc=NULL;\r
+        if (url_param) {\r
+            URLInputSource src(base,url_param);\r
+            Wrapper4InputSource dsrc(&src,false);\r
+            doc=xmlconf.getParser().parse(dsrc);\r
+        }\r
+        else if (path_param) {\r
+            auto_ptr_XMLCh widenit(path_param);\r
+            LocalFileInputSource src(base,widenit.get());\r
+            Wrapper4InputSource dsrc(&src,false);\r
+            doc=xmlconf.getParser().parse(dsrc);\r
+        }\r
+        else {\r
+            StdInInputSource src;\r
+            Wrapper4InputSource dsrc(&src,false);\r
+            doc=xmlconf.getParser().parse(dsrc);\r
+        }\r
+    \r
+        // Unmarshall it.\r
+        XercesJanitor<DOMDocument> jan(doc);\r
+        auto_ptr<XMLObject> sourcewrapper(XMLObjectBuilder::buildOneFromElement(doc->getDocumentElement(), true));\r
+        jan.release();\r
+\r
+        // Navigate to the selected node, or use the root if no ID specified.\r
+        // Then make sure it's a SignableSAMLObject.\r
+        XMLObject* source = sourcewrapper.get();\r
+        if (id_param) {\r
+            auto_ptr_XMLCh widenit(id_param);\r
+            source = XMLHelper::getXMLObjectById(*source, widenit.get());\r
+            if (!source)\r
+                throw XMLToolingException("Element with ID ($1) not found.", params(1,id_param));\r
+        }\r
+        SignableObject* signable = dynamic_cast<SignableObject*>(source);\r
+        if (!signable)\r
+            throw XMLToolingException("Input is not a signable SAML object.");\r
+\r
+        if (verify) {\r
+        }\r
+        else {\r
+            // Build a resolver to supply a credential.\r
+            auto_ptr<CredentialResolver> cr(\r
+                cr_param ? buildPlugin(cr_param, xmlconf.CredentialResolverManager) : buildSimpleResolver(key_param, cert_param)\r
+                );\r
+            cr->lock();\r
+            CredentialCriteria cc;\r
+            cc.setUsage(CredentialCriteria::SIGNING_CREDENTIAL);\r
+            const Credential* cred = cr->resolve(&cc);\r
+            if (!cred)\r
+                throw XMLSecurityException("Unable to resolve a signing credential.");\r
+\r
+            // Attach new signature.\r
+            Signature* sig = SignatureBuilder::buildSignature();
+            signable->setSignature(sig);
+
+            // Sign response while re-marshalling.
+            vector<Signature*> sigs(1,sig);
+            XMLHelper::serialize(signable->marshall((DOMDocument*)NULL,&sigs,cred), cout);
+        }\r
+    }\r
+    catch(exception& e) {\r
+        log.errorStream() << "caught an exception: " << e.what() << CategoryStream::ENDLINE;\r
+        ret=-10;\r
+    }\r
+    catch(XMLException& e) {\r
+        auto_ptr_char temp(e.getMessage());\r
+        log.errorStream() << "caught a Xerces exception: " << temp.get() << CategoryStream::ENDLINE;\r
+        ret=-20;\r
+    }\r
+\r
+    conf.term();\r
+    return ret;\r
+}\r
diff --git a/samlsign/samlsign.vcproj b/samlsign/samlsign.vcproj
new file mode 100644 (file)
index 0000000..a8f5c0e
--- /dev/null
@@ -0,0 +1,184 @@
+<?xml version="1.0" encoding="Windows-1252"?>\r
+<VisualStudioProject\r
+       ProjectType="Visual C++"\r
+       Version="8.00"\r
+       Name="samlsign"\r
+       ProjectGUID="{C4E58F5A-AF7E-4060-89E7-5F690682E662}"\r
+       RootNamespace="samlsign"\r
+       Keyword="Win32Proj"\r
+       >\r
+       <Platforms>\r
+               <Platform\r
+                       Name="Win32"\r
+               />\r
+       </Platforms>\r
+       <ToolFiles>\r
+       </ToolFiles>\r
+       <Configurations>\r
+               <Configuration\r
+                       Name="Debug|Win32"\r
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="1"\r
+                       CharacterSet="1"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="0"\r
+                               AdditionalIncludeDirectories="&quot;$(SolutionDir)&quot;;&quot;$(ProjectDir)&quot;;&quot;..\..\cpp-xmltooling&quot;"\r
+                               PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"\r
+                               MinimalRebuild="true"\r
+                               BasicRuntimeChecks="3"\r
+                               RuntimeLibrary="3"\r
+                               UsePrecompiledHeader="0"\r
+                               BrowseInformation="1"\r
+                               WarningLevel="3"\r
+                               Detect64BitPortabilityProblems="true"\r
+                               DebugInformationFormat="4"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               AdditionalDependencies="..\..\cpp-xmltooling\$(ConfigurationName)\xmltooling1D.lib xerces-c_2D.lib xsec_1D.lib log4shib1D.lib"\r
+                               LinkIncremental="2"\r
+                               GenerateDebugInformation="true"\r
+                               SubSystem="1"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebDeploymentTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+               <Configuration\r
+                       Name="Release|Win32"\r
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="1"\r
+                       CharacterSet="1"\r
+                       WholeProgramOptimization="1"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               AdditionalIncludeDirectories="&quot;$(SolutionDir)&quot;;&quot;$(ProjectDir)&quot;;&quot;..\..\cpp-xmltooling&quot;"\r
+                               PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"\r
+                               RuntimeLibrary="2"\r
+                               UsePrecompiledHeader="0"\r
+                               WarningLevel="3"\r
+                               Detect64BitPortabilityProblems="true"\r
+                               DebugInformationFormat="3"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               AdditionalDependencies="..\..\cpp-xmltooling\$(ConfigurationName)\xmltooling1.lib xerces-c_2.lib xsec_1.lib log4shib1.lib"\r
+                               LinkIncremental="1"\r
+                               GenerateDebugInformation="true"\r
+                               SubSystem="1"\r
+                               OptimizeReferences="2"\r
+                               EnableCOMDATFolding="2"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebDeploymentTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+       </Configurations>\r
+       <References>\r
+       </References>\r
+       <Files>\r
+               <File\r
+                       RelativePath=".\samlsign.cpp"\r
+                       >\r
+               </File>\r
+       </Files>\r
+       <Globals>\r
+       </Globals>\r
+</VisualStudioProject>\r
index 1907533..f247932 100644 (file)
@@ -61,7 +61,7 @@
                        />\r
                        <Tool\r
                                Name="VCLinkerTool"\r
-                               AdditionalDependencies="..\..\cpp-xmltooling\Debug\xmltooling1D.lib xerces-c_2D.lib xsec_1D.lib"\r
+                               AdditionalDependencies="..\..\cpp-xmltooling\$(ConfigurationName)\xmltooling1D.lib xerces-c_2D.lib xsec_1D.lib"\r
                                LinkIncremental="2"\r
                                GenerateDebugInformation="true"\r
                                SubSystem="1"\r
                        />\r
                        <Tool\r
                                Name="VCLinkerTool"\r
-                               AdditionalDependencies="..\..\cpp-xmltooling\Release\xmltooling1.lib xerces-c_2.lib xsec_1.lib"\r
+                               AdditionalDependencies="..\..\cpp-xmltooling\$(ConfigurationName)\xmltooling1.lib xerces-c_2.lib xsec_1.lib"\r
                                LinkIncremental="1"\r
                                GenerateDebugInformation="true"\r
                                SubSystem="1"\r
                                                >\r
                                                <Tool\r
                                                        Name="VCCustomBuildTool"\r
-                                                       CommandLine="perl.exe -w \cxxtest\cxxtestgen.pl --part --have-eh --have-std --abort-on-fail -o &quot;$(InputDir)$(InputName)&quot;.cpp &quot;$(InputPath)&quot;"\r
+                                                       CommandLine="perl.exe -w \cxxtest\cxxtestgen.pl --part --have-eh --have-std --abort-on-fail -o &quot;$(InputDir)$(InputName)&quot;.cpp &quot;$(InputPath)&quot;&#x0D;&#x0A;"\r
                                                        Outputs="&quot;$(InputDir)$(InputName)&quot;.cpp"\r
                                                />\r
                                        </FileConfiguration>\r
                                                >\r
                                                <Tool\r
                                                        Name="VCCustomBuildTool"\r
-                                                       CommandLine="perl.exe -w \cxxtest\cxxtestgen.pl --part --have-eh --have-std --abort-on-fail -o &quot;$(InputDir)$(InputName)&quot;.cpp &quot;$(InputPath)&quot;"\r
+                                                       CommandLine="perl.exe -w \cxxtest\cxxtestgen.pl --part --have-eh --have-std --abort-on-fail -o &quot;$(InputDir)$(InputName)&quot;.cpp &quot;$(InputPath)&quot;&#x0D;&#x0A;"\r
                                                        Outputs="&quot;$(InputDir)$(InputName)&quot;.cpp"\r
                                                />\r
                                        </FileConfiguration>\r