[xmlsec] building xmlsec with disable-dsa fails

Bernd Becker bb at bernd-becker.de
Wed May 11 01:11:45 PDT 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nodsa.diff.gz
Type: application/x-gunzip
Size: 400 bytes
Desc: not available
Url : http://www.aleksey.com/pipermail/xmlsec/attachments/20050511/0bc41d86/nodsa.diff-0002.bin


More information about the xmlsec mailing list