Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3878

Compile error in TSSLSocket.cpp with new OpenSSL [CRYPTO_num_locks]

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.9.3, 0.10.0
    • 0.10.0
    • C++ - Library
    • None
    • VS2013
      Thrift from git repo, SHA-1: 5a3f855b4e6882184f13c698855c877241144a12 (master)
      OpenSSL from git repo (master).

    Description

      In TSSLSocket if use new OpenSSL library (downloaded and builded from git) will be compile error.
      That because CRYPTO_num_locks is now macro-call instead of function.
      THRIFT -also from git repo (master).

      So I simply fix that:

      #ifdef CRYPTO_num_locks
      mutexes = boost::shared_array<Mutex>(new Mutex[CRYPTO_num_locks()]);
      #else
      mutexes = boost::shared_array<Mutex>(new Mutex[ ::CRYPTO_num_locks()]);
      #endif

      Attachments

        Issue Links

          Activity

            People

              jking3 James E. King III
              faserg1 Sergey Fasman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: