Hi!

I'm trying to get started with the Example 2 (encrypting binary data with a template).
With some minor changes it compiles but crashes when it wants to print it to stdout.


I'm using the binaries provided by Zlatkovic and MS VC6 under Win2000.

It is only compiling (dynamic linking) when making the following changes:
casting key_file to unsigned char*
/* set key name to the file name, this is just an example! */
if(xmlSecKeySetName(encCtx->encKey,(unsigned char*) key_file) < 0) {
and
casting secret_data to char*
if(encrypt_file(argv[1],argv[2], secret_data, strlen((char*)secret_data)) < 0) {


The Program then works fine (reading template.xml and deskey.bin...; doc is builed with all nodes) until the line

xmlDocDump(stdout, doc);

any Ideas?

best regards,
Henry

_________________________________________________________________
Set yourself up for fun at home! Get tips on home entertainment equipment, video game reviews, and more here. http://special.msn.com/home/homeent.armx


_______________________________________________
xmlsec mailing list
[EMAIL PROTECTED]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to