build against GnuTLS with ATPS maybe broken

From: Hirohisa Yamaguchi <umq.461_at_gmail.com>
Date: Fri, 24 Feb 2012 14:32:27 +0900

Hi,

I got a build error when building 2.5.0.Beta14 with --with-gnutls --enable-atps
 # GnuTLS was 2.12.16

| clang -DHAVE_CONFIG_H -I. -I.. -I./../libopendkim
-I/usr/local/include -I/usr/local/include/db46
-I/usr/local/include/lua51 -I/usr/include
-DCONFIG_BASE=\"/usr/local/etc\" -pipe -g -MT
opendkim_atpszone-opendkim-atpszone.o -MD -MP -MF
.deps/opendkim_atpszone-opendkim-atpszone.Tpo -c -o
opendkim_atpszone-opendkim-atpszone.o `test -f 'opendkim-atpszone.c'
|| echo './'`opendkim-atpszone.c
| opendkim-atpszone.c:155:14: error: use of undeclared identifier
'SHA256_DIGEST_LENGTH'
| char shaout[SHA256_DIGEST_LENGTH];
| ^
| opendkim-atpszone.c:207:14: error: use of undeclared identifier
'SHA256_DIGEST_LENGTH'
| shalen = SHA256_DIGEST_LENGTH;
| ^

There isn't any header file in my env defining SHA256_DIGEST_LENGTH
but openssl/sha.h.
defining it in opendkim-atpszone.c might be necessary.


Regards,
-- 
	Hirohisa Yamaguchi
	  <umq.461_at_gmail.com>



Received on Fri Feb 24 2012 - 05:32:40 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:33:31 PST