Ticket #12826: openssl_init.ipp.patch

File openssl_init.ipp.patch, 699 bytes (added by ecprodev@…, 6 years ago)

openssl_init.ipp patch

  • boost/asio/ssl/detail/impl/openssl_init.ipp

    old new  
    7979#elif (OPENSSL_VERSION_NUMBER < 0x10100000L)
    8080    ::ERR_remove_thread_state(NULL);
    8181#endif // (OPENSSL_VERSION_NUMBER < 0x10000000L)
    82 #if (OPENSSL_VERSION_NUMBER >= 0x10002000L) \
    83     && (OPENSSL_VERSION_NUMBER < 0x10100000L)
     82#if !defined(SSL_OP_NO_COMPRESSION) \
     83  && (OPENSSL_VERSION_NUMBER >= 0x10002000L) \
     84  && (OPENSSL_VERSION_NUMBER < 0x10100000L)
    8485    ::SSL_COMP_free_compression_methods();
    8586#endif // (OPENSSL_VERSION_NUMBER >= 0x10002000L)
    8687       // && (OPENSSL_VERSION_NUMBER < 0x10100000L)