Switch to BoringSSL by default

This commit is contained in:
Russell Sears 2020-12-09 13:37:48 -08:00
parent b62406fb48
commit 589eaf54d7
2 changed files with 3 additions and 7 deletions

View File

@ -79,7 +79,7 @@ RUN cd /opt/ && curl -L https://github.com/facebook/rocksdb/archive/v6.10.1.tar.
RUN cd /opt/ && curl -L https://github.com/manticoresoftware/manticoresearch/raw/master/misc/junit/ctest2junit.xsl -o ctest2junit.xsl
# Setting this environment variable switches from OpenSSL to BoringSSL
#ENV OPENSSL_ROOT_DIR=/opt/boringssl
ENV OPENSSL_ROOT_DIR=/opt/boringssl
# install BoringSSL: TODO: They don't seem to have releases(?) I picked today's master SHA.
RUN cd /opt &&\

View File

@ -28,9 +28,7 @@ TLSPolicy::~TLSPolicy() {}
namespace TLS {
void DisableOpenSSLAtExitHandler() {
#ifdef TLS_DISABLED
return;
#else
#ifdef HAVE_OPENSSL_INIT_NO_ATEXIT
static bool once = false;
if (!once) {
once = true;
@ -43,9 +41,7 @@ void DisableOpenSSLAtExitHandler() {
}
void DestroyOpenSSLGlobalState() {
#ifdef TLS_DISABLED
return;
#else
#ifdef HAVE_OPENSSL_INIT_NO_ATEXIT
OPENSSL_cleanup();
#endif
}