Fixed #4058 -- use the thread-safe API from OpenSSL, not the danger one (#4059)

3 files changed