Switch to BoringSSL by default
This commit is contained in:
parent
b62406fb48
commit
589eaf54d7
|
@ -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
|
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
|
# 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.
|
# install BoringSSL: TODO: They don't seem to have releases(?) I picked today's master SHA.
|
||||||
RUN cd /opt &&\
|
RUN cd /opt &&\
|
||||||
|
|
|
@ -28,9 +28,7 @@ TLSPolicy::~TLSPolicy() {}
|
||||||
namespace TLS {
|
namespace TLS {
|
||||||
|
|
||||||
void DisableOpenSSLAtExitHandler() {
|
void DisableOpenSSLAtExitHandler() {
|
||||||
#ifdef TLS_DISABLED
|
#ifdef HAVE_OPENSSL_INIT_NO_ATEXIT
|
||||||
return;
|
|
||||||
#else
|
|
||||||
static bool once = false;
|
static bool once = false;
|
||||||
if (!once) {
|
if (!once) {
|
||||||
once = true;
|
once = true;
|
||||||
|
@ -43,9 +41,7 @@ void DisableOpenSSLAtExitHandler() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void DestroyOpenSSLGlobalState() {
|
void DestroyOpenSSLGlobalState() {
|
||||||
#ifdef TLS_DISABLED
|
#ifdef HAVE_OPENSSL_INIT_NO_ATEXIT
|
||||||
return;
|
|
||||||
#else
|
|
||||||
OPENSSL_cleanup();
|
OPENSSL_cleanup();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue