I got it running. But not using MSVC 2005.
Binary distribution from zlatkovic.com is built by MS Win DDK. This
build links with msvcrt.dll and I was not able to link with same runtime
using MSVC 2005. Dynamic linkage of MT runtime with MSVC 2005 results in
msvcr80.dll. And mixing both runtime libs results in processing errors.
The only way I got it working is to compile samples by Win DDK.
I guess rebuilding all depended libraries by MSVC 2005 should work too
but I haven't checked this. As well using VC6 should work.
@Iulia
Thanks for your help!
Michael
Aleksey Sanin wrote:
And this is what I'm trying to do:
c:>encrypt1 encrypt1-tmpl.xml deskey.bin
I have no idea why it does not work for you if you are using
*unmodified* examples files from the xmlsec distribution.
D:\misc\xmlsec\examples>build\encrypt1 encrypt1-tmpl.xml deskey.bin
<?xml version="1.0"?>
<!--
XML Security Library example: Simple encryption template file for
encrypt1 examp
le.
-->
<EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"
/>
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<KeyName>deskey.bin</KeyName>
</KeyInfo>
<CipherData>
<CipherValue>0FWXHSWkbr3v7hoJTGj4L0YSuWAlwI4F</CipherValue>
</CipherData>
</EncryptedData>
D:\misc\xmlsec\examples>build\encrypt2.exe encrypt2-doc.xml deskey.bin
<?xml version="1.0" encoding="UTF-8"?>
<!--
XML Security Library example: Original XML doc file before encryption
(encrypt2
example).
-->
<EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#"
Type="http://www.w3.org
/2001/04/xmlenc#Element">
<EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<KeyName>deskey.bin</KeyName>
</KeyInfo>
<CipherData>
<CipherValue>ApoTbBtHqHleIvTrNTWTbDN/WwdN8ac/Ak9V8fOTXE/HL0YTH5kX51UYu6dzePK1
XTihcd7sldGLaTYcml/B3egY7DrSk6lfoOBOB2SJY4oer9iY2Qd3xQ==</CipherValue>
</CipherData>
</EncryptedData>
_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec