FW: [xmlsec] Bug on hpux-ia64-64 ?

Aleksey Sanin aleksey at aleksey.com
Thu Sep 24 09:49:54 PDT 2009


Thanks for report!

Aleksey

Lenoir Herve wrote:
> Hi,
> my problem is similar to this old xmlsec case:
> http://archives.devshed.com/forums/xml-123/xmlsec-issue-on-linux-x86-64-xmlsec-no-size-t-2235176.html
>  
>  
> 1) so_, I modified the "*configure*" file and comments these lines_ :
>  
> *#if test "$ac_cv_sizeof_size_t" -ne "4" ; then
> #    XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_NO_SIZE_T"
> #fi*
> ==> now xmlSecSize is a *size_t* for my hpux 64 bits <==> unsigned long 
> (ac-c-sizeof_size_t == 8) and the problem is jump !!!
> But now, I have a new BUG :  *the size of digests and signatures are 
> null* !!!
>  
>  
> 2) _ I modified "*digests.c*" like this_ :
>  
> struct _xmlSecOpenSSLDigestCtx {
>     const EVP_MD*       digest;
>     EVP_MD_CTX          digestCtx;
>     xmlSecByte          dgst[EVP_MAX_MD_SIZE];
> *    /*xmlSecSize                dgstSize;*/
>     unsigned int                dgstSize;       /* dgst size in bytes */*
> };
> beceause EVP_DigestFinal(&(ctx->digestCtx), ctx->dgst, 
> *&ctx->dgstSize);* attempt to have a "unsigned int *" in parameter 3
> There are conflicts between the address "unsigned long *"  and "unsigned 
> int *" !
>  
>  
> 3) _I modified "*signatures.c*" like this_ :
>  
> xmlSecOpenSSLEvpSignatureExecute(xmlSecTransformPtr transform, int last, 
> xmlSecTransformCt
> xPtr transformCtx) {
>  
>    /* xmlSecSize inSize, *outSize; */*
>     xmlSecSize inSize;
>     *unsigned int outSize*;
>  
> it's the same problem:  EVP_SignFinal atempt to have "unsigned int *" 
> parameter !
>  ret = EVP_SignFinal(&(ctx->digestCtx), xmlSecBufferGetData(out), 
> *&outSize*, ctx->pKey);
>  
>  
> Now it works perfect on my 64 bits paltform !
>  
> But I use only signature with XMLSEC and be careful :  *I suppose you 
> have a similar problem with HMAC* !!!
>  
> Best regards,
> Hervé
>  
>  
> ------------------------------------------------------------------------
> *From:* xmlsec-bounces at aleksey.com [mailto:xmlsec-bounces at aleksey.com] 
> *On Behalf Of *Lenoir Herve
> *Sent:* mardi 22 septembre 2009 13:48
> *To:* xmlsec at aleksey.com
> *Subject:* [xmlsec] Bug on hpux-ia64-64 ?
> 
> Hi all,
>  
> on *hpux-ia64-64 (64 bits)* XMLSEC seems not to work properly ?
> To link XMLSEC librairies, I'm obliged to export *CFLAGS=+DD64* before 
> the configure...
> But the execution of XMLSEC failed  (many fields ar empty or not... very 
> difficult to debug this !)
> Perhaps ENDIAN representation conflicts ?
>  
> My question is: do you know if some people have managed to make it work 
> on this platform ?
>  
> Best regards,
> Hervé
>  
> 	
> *LENOIR HERVE*
> 26 rue des Pavillons
> FR92807 Puteaux Cedex
> Tél.: +33(0)1 47 17 24 60
> hlenoir at axway.com <mailto:hlenoir at axway.com> - www.axway.com
>   	 
> 
>  
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec


More information about the xmlsec mailing list