File tree Expand file tree Collapse file tree 3 files changed +15
-8
lines changed Expand file tree Collapse file tree 3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,16 @@ install_openssl_fips() {
46
46
SSL=${SSL% -fips}
47
47
}
48
48
install_openssl () {
49
- curl --retry 5 -o ssl.tar.gz https://www.openssl.org/source/$SSL .tar.gz
49
+ SSL_VERSION=${SSL## openssl-}
50
+ tmp=$( echo $SSL_VERSION | tr . _)
51
+ curl -L --retry 5 -o ssl.tar.gz https://github.com/openssl/openssl/archive/OpenSSL_${tmp} .tar.gz
50
52
tar zxvf ssl.tar.gz
51
- cd $SSL
53
+ cd openssl-OpenSSL_ $tmp
52
54
./config --prefix=$INSTALL_DIR $SSL_EXTRA_FLAGS shared -fPIC
53
55
cpus=$( grep -c ' ^processor' /proc/cpuinfo)
56
+ make -j32 || true
54
57
make -j${cpus} || true
55
- make install_sw install_ssldirs || true
58
+ make install || true
56
59
cd ..
57
60
58
61
# x505_vfy.h has issues in 1.1.0e
@@ -63,6 +66,7 @@ install_openssl () {
63
66
}
64
67
65
68
install_libressl () {
69
+ SSL_VERSION=${SSL## libressl-}
66
70
curl --retry 5 -o ssl.tar.gz https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/$SSL .tar.gz
67
71
tar zxvf ssl.tar.gz
68
72
cd $SSL
@@ -247,6 +251,9 @@ $SCAN_BUILD $CONFIGURE_SCRIPT $CONFIGURE_FLAGS
247
251
export LD_LIBRARY_PATH=$EXTRA_LIB_PATH :$LD_LIBRARY_PATH
248
252
export DYLD_LIBRARY_PATH=$EXTRA_LIB_PATH :$DYLD_LIBRARY_PATH
249
253
openssl version
254
+ if [ -n " $SSL_VERSION " ]; then
255
+ openssl version | grep -q $SSL_VERSION
256
+ fi
250
257
# This should fail when using fips capable OpenSSL when fips mode is enabled
251
258
openssl md5 README.rst || true
252
259
$SCAN_BUILD make all
Original file line number Diff line number Diff line change @@ -6320,7 +6320,7 @@ tasks:
6320
6320
script : |
6321
6321
set -o errexit
6322
6322
set -o xtrace
6323
- DEBUG=yes CC='${CC}' MARCH='${MARCH}' SASL=no SSL=openssl-1.0.2k sh .evergreen/compile.sh
6323
+ DEBUG=yes CC='${CC}' MARCH='${MARCH}' SASL=no SSL=openssl-1.0.2l sh .evergreen/compile.sh
6324
6324
- func : " run auth tests"
6325
6325
- func : " upload build"
6326
6326
@@ -6333,7 +6333,7 @@ tasks:
6333
6333
script : |
6334
6334
set -o errexit
6335
6335
set -o xtrace
6336
- DEBUG=yes CC='${CC}' MARCH='${MARCH}' SASL=no SSL=openssl-1.1.0e sh .evergreen/compile.sh
6336
+ DEBUG=yes CC='${CC}' MARCH='${MARCH}' SASL=no SSL=openssl-1.1.0f sh .evergreen/compile.sh
6337
6337
- func : " run auth tests"
6338
6338
- func : " upload build"
6339
6339
Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ test_mongoc_tls_ip (void)
364
364
365
365
366
366
#if !defined(__APPLE__ ) && !defined(_WIN32 ) && \
367
- defined(MONGOC_ENABLE_SSL_OPENSSL )
367
+ defined(MONGOC_ENABLE_SSL_OPENSSL ) && OPENSSL_VERSION_NUMBER >= 0x10000000L
368
368
static void
369
369
test_mongoc_tls_trust_dir (void )
370
370
{
@@ -374,7 +374,7 @@ test_mongoc_tls_trust_dir (void)
374
374
ssl_test_result_t cr ;
375
375
376
376
sopt .pem_file = CERT_SERVER ;
377
- sopt .ca_dir = CERT_CA ;
377
+ sopt .ca_file = CERT_CA ;
378
378
379
379
copt .ca_dir = CERT_TEST_DIR ;
380
380
@@ -415,7 +415,7 @@ test_stream_tls_install (TestSuite *suite)
415
415
#endif
416
416
417
417
#if !defined(__APPLE__ ) && !defined(_WIN32 ) && \
418
- defined(MONGOC_ENABLE_SSL_OPENSSL )
418
+ defined(MONGOC_ENABLE_SSL_OPENSSL ) && OPENSSL_VERSION_NUMBER >= 0x10000000L
419
419
TestSuite_Add (suite , "/TLS/trust_dir" , test_mongoc_tls_trust_dir );
420
420
#endif
421
421
#endif
You can’t perform that action at this time.
0 commit comments