--- mysql-5.1.71/vio/viossl.c.macosx 2013-07-11 22:39:36.000000000 +0900 +++ mysql-5.1.71/vio/viossl.c 2013-11-30 07:28:10.000000000 +0900 @@ -199,7 +199,11 @@ SSL_SESSION_set_timeout(SSL_get_session(ssl), timeout); SSL_set_fd(ssl, vio->sd); #ifndef HAVE_YASSL +#ifdef SSL_OP_NO_COMPRESSION SSL_set_options(ssl, SSL_OP_NO_COMPRESSION); +#elif OPENSSL_VERSION_NUMBER >= 0x00908000L /* workaround for OpenSSL 0.9.8 */ + sk_SSL_COMP_zero(SSL_COMP_get_compression_methods()); +#endif #endif if (connect_accept_func(ssl) < 1)