Hi Aleksey,
building xmlsec with configure --disable-dsa --with-openssl leads to the following error:
signatures.c: In function `xmlSecOpenSSLEvpSignatureExecute': signatures.c:372: error: `XMLSEC_OPENSSL_DSA_SIGNATURE_SIZE' undeclared
The following patch (also attached) makes it compile and, since DSA signature
is not used in that case, outSize should be OK.
Index: src/openssl/signatures.c =================================================================== RCS file: /cvs/gnome/xmlsec/src/openssl/signatures.c,v retrieving revision 1.18 diff -u -u -r1.18 signatures.c --- src/openssl/signatures.c 21 Jul 2003 03:12:55 -0000 1.18 +++ src/openssl/signatures.c 11 May 2005 08:04:53 -0000 @@ -369,9 +369,11 @@ * we get size from EVP_PKEY_size(), * for dsa signature we use a fixed constant */ outSize = EVP_PKEY_size(ctx->pKey); +#ifndef XMLSEC_NO_DSA if(outSize < XMLSEC_OPENSSL_DSA_SIGNATURE_SIZE) { outSize = XMLSEC_OPENSSL_DSA_SIGNATURE_SIZE; } +#endif /* XMLSEC_NO_DSA */
ret = xmlSecBufferSetMaxSize(out, outSize);
if(ret < 0) {Regards, Bernd
nodsa.diff.gz
Description: application/gunzip
_______________________________________________ xmlsec mailing list [email protected] http://www.aleksey.com/mailman/listinfo/xmlsec
