Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-26781

Add support for building with openssl 1.1.0

    • Fully Compatible
    • v3.4, v3.2
    • Platforms 2017-03-27

      Building of OpenSSL 1.1.0 fails.

      rc/mongo/crypto/crypto_openssl.cpp:48:16: error: aggregate 'EVP_MD_CTX digestCtx' has incomplete type and cannot be defined
           EVP_MD_CTX digestCtx;
                      ^~~~~~~~~
      src/mongo/crypto/crypto_openssl.cpp:50:19: error: 'EVP_MD_CTX_cleanup' was not declared in this scope
           ON_BLOCK_EXIT(EVP_MD_CTX_cleanup, &digestCtx);
                         ^~~~~~~~~~~~~~~~~~
      scons: *** [build/opt/mongo/crypto/crypto_openssl.o] Error 1
      

      (example full log https://kojipkgs.fedoraproject.org//work/tasks/4184/16104184/build.log)

      Also asio have to be updated to latest master to support openssl 1.1.0.

      Patch for fixing openssl issues in mongodb attached. (does not include asio update)

      Should I create github pull request? (it is not problem for me, but I don't know what is your workflow)

        1. openssl-1.1.0.patch
          3 kB
          Marek Skalický
        2. openssl-1.1.0.patch
          2 kB
          Marek Skalický

            Assignee:
            spencer.jackson@mongodb.com Spencer Jackson
            Reporter:
            mskalick Marek Skalický
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: