[xmlsec] xmlDocDump crashes on Windows [SEC=UNCLASSIFIED]

Cartland, Bruce Bruce.Cartland at ato.gov.au
Tue Mar 1 16:17:06 PST 2011


 
(Haven't checked Ubuntu yet.)

Ok. Worked it out. 

With the args I use (--sign --print-debug --privkey-der pk.der --output sign.xml vstsout.xml)

the sign function calls xmlDocDump. In 1.2.16 this crashes. I've seen this in some of my other test programs.

I modified the xmlsec.c source to replace it with xmlDocDumpMemory and saved the contents myself to the file with fwrite. 

It all works. Now I can get back to my original work of figuring out why the sign1.c example code fails to sign (by debugging through this :)

cheers
Bruce 


-----Original Message-----
From: Cartland, Bruce 
Sent: Wednesday, 2 March 2011 10:57
To: 'Igor Zlatkovic'
Subject: RE: unresolved external symbol _EVP_CIPHER_key_length in libxmlsec-openssl [SEC=UNCLASSIFIED]

 
I was using a newer set of openssl include files. I changed to use yours and it now builds. However, I built libxmlsec, libxmlsec_openssl, and xmlsec (exe) using the version 1.2.16 source.

It crashes with a memory access error. As I'm using your DLLs and the settings below, I can't see that it is an incorrect DLL issue??

So I got hold of the 1.2.13 source but I get loads of "missing" errors. For example "LTDL_SHLIB_EXT" is not defined. The LTDL package is not available from your site???

thanks
Bruce 


-----Original Message-----
From: Cartland, Bruce
Sent: Wednesday, 2 March 2011 09:41
To: 'Igor Zlatkovic'
Subject: RE: unresolved external symbol _EVP_CIPHER_key_length in libxmlsec-openssl [SEC=UNCLASSIFIED]


I have a visual studio project for builiding libxmlsec-openssl with the settings indicated below. The libs I link against are yours: iconv.lib, libxml2.lib ssleay32.lib zdll.lib.

But I'm getting the following unresolved symbols during linking. I'm thinking I'm missing a define maybe?

Error	6	error LNK2019: unresolved external symbol _EVP_CIPHER_key_length referenced in function _xmlSecOpenSSLEvpBlockCipherSetKeyReq	ciphers.obj	libxmlsec-openssl
Error	7	error LNK2001: unresolved external symbol _EVP_CIPHER_key_length	kw_des.obj	libxmlsec-openssl
Error	8	error LNK2019: unresolved external symbol _EVP_CIPHER_iv_length referenced in function _xmlSecOpenSSLEvpBlockCipherCtxInit	ciphers.obj	libxmlsec-openssl
Error	9	error LNK2001: unresolved external symbol _EVP_CIPHER_iv_length	kw_des.obj	libxmlsec-openssl
Error	10	error LNK2019: unresolved external symbol _EVP_CIPHER_block_size referenced in function _xmlSecOpenSSLEvpBlockCipherCtxUpdate	ciphers.obj	libxmlsec-openssl
Error	11	error LNK2019: unresolved external symbol _EVP_MD_size referenced in function _xmlSecOpenSSLEvpDigestExecute	digests.obj	libxmlsec-openssl 

thanks
Bruce


-----Original Message-----
From: Igor Zlatković [mailto:igor at zlatkovic.com]
Sent: Wednesday, 2 March 2011 06:21
To: Cartland, Bruce
Subject: Re: unresolved external symbol _EVP_CIPHER_key_length in libxmlsec-openssl [SEC=UNCLASSIFIED]

Hi Bruce,

I am not quite sure what you mean. Does the build fail? If so, which errors are you seing?

Ciao,
Igor


On 01/03/11 08:38, Cartland, Bruce wrote:
> 
> Hi Igor
> 
> Thanks for your compilations of the libraries. I have found them very 
> usefull.
> 
> The only library that is giving me problems is xmlsec. I've been at 
> this for a couple of days. I am linking against your compilations but 
> trying to build my own versions of the xmlsec libs.
> 
> I believe I am using all the correct settings as below. Any pointers?
> 
> libxmlsec-openssl
> 
> Multi-threaded DLL (/MD)
> 
> WIN32
> _DEBUG
> _CRT_SECURE_NO_WARNINGS
> XMLSEC_NO_XSLT
> XMLSEC_CRYPTO_OPENSSL
> PACKAGE=\"xmlsec\"
> _WINDLL
> _UNICODE
> UNICODE
> 
> thanks
> Bruce
> 
> **********************************************************************
> IMPORTANT
> 	The information transmitted is for the use of the intended recipient 
> only and may contain confidential and/or legally privileged material.
> Any review, re-transmission, disclosure, dissemination or other use 
> of, or taking of any action in reliance upon, this information by 
> persons or entities other than the intended recipient is prohibited 
> and may result in severe penalties. If you have received this e-mail 
> in error please notify the Privacy Hotline of the Australian Taxation 
> Office, telephone 13 2869 and delete all copies of this transmission 
> together with any attachments.
> **********************************************************************

**********************************************************************
IMPORTANT
	The information transmitted is for the use of the intended
recipient only and may contain confidential and/or legally
privileged material. Any review, re-transmission, disclosure,
dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other
than the intended recipient is prohibited and may result in
severe penalties. If you have received this e-mail in error
please notify the Privacy Hotline of the Australian Taxation
Office, telephone 13 2869 and delete all copies of this
transmission together with any attachments.
**********************************************************************



More information about the xmlsec mailing list