On Fri, 2009-10-16 at 17:56 -0500, Jose Luis Marin Perez wrote: > Hi Timo, > > When you compile dovecot with the option --without-vpopmail I get this > error: > > ../login-common/liblogin-common.a(ssl-proxy-openssl.o)(.text > +0x7a2):/usr/local/src/dovecot/dovecot-1.2.6/src/login-common/ssl-proxy-openssl.c:648: > undefined reference to `SSL_COMP_get_name'
This happens with old OpenSSL versions. You can fix it with attached patch.
diff -r 5c5fc2aa299a src/login-common/ssl-proxy-openssl.c --- a/src/login-common/ssl-proxy-openssl.c Mon Oct 05 19:52:03 2009 -0400 +++ b/src/login-common/ssl-proxy-openssl.c Fri Oct 16 18:57:55 2009 -0400 @@ -635,7 +635,9 @@ const char *ssl_proxy_get_security_string(struct ssl_proxy *proxy) { SSL_CIPHER *cipher; +#ifdef HAVE_SSL_COMPRESSION const COMP_METHOD *comp; +#endif int bits, alg_bits; const char *comp_str; @@ -644,9 +646,13 @@ cipher = SSL_get_current_cipher(proxy->ssl); bits = SSL_CIPHER_get_bits(cipher, &alg_bits); +#ifdef HAVE_SSL_COMPRESSION comp = SSL_get_current_compression(proxy->ssl); comp_str = comp == NULL ? "" : t_strconcat(" ", SSL_COMP_get_name(comp), NULL); +#else + comp_str = ""; +#endif return t_strdup_printf("%s with cipher %s (%d/%d bits)%s", SSL_get_version(proxy->ssl), SSL_CIPHER_get_name(cipher),
signature.asc
Description: This is a digitally signed message part