1.1 --- a/src/login-common/ssl-proxy-openssl.c Tue Sep 29 10:14:56 2009 -0400
1.2 +++ b/src/login-common/ssl-proxy-openssl.c Tue Oct 06 10:53:34 2009 -0400
1.3 @@ -635,7 +635,9 @@
1.4 const char *ssl_proxy_get_security_string(struct ssl_proxy *proxy)
1.5 {
1.6 SSL_CIPHER *cipher;
1.7 +#ifdef HAVE_SSL_COMPRESSION
1.8 const COMP_METHOD *comp;
1.9 +#endif
1.10 int bits, alg_bits;
1.11 const char *comp_str;
1.12
1.13 @@ -644,9 +646,13 @@
1.14
1.15 cipher = SSL_get_current_cipher(proxy->ssl);
1.16 bits = SSL_CIPHER_get_bits(cipher, &alg_bits);
1.17 +#ifdef HAVE_SSL_COMPRESSION
1.18 comp = SSL_get_current_compression(proxy->ssl);
1.19 comp_str = comp == NULL ? "" :
1.20 t_strconcat(" ", SSL_COMP_get_name(comp), NULL);
1.21 +#else
1.22 + comp_str = NULL;
1.23 +#endif
1.24 return t_strdup_printf("%s with cipher %s (%d/%d bits)%s",
1.25 SSL_get_version(proxy->ssl),
1.26 SSL_CIPHER_get_name(cipher),