aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt10
-rw-r--r--ChangeLog27
-rw-r--r--appveyor.yml29
-rw-r--r--crypto/CMakeLists.txt1
-rw-r--r--crypto/compat/posix_win.c6
-rw-r--r--include/compat/unistd.h9
-rw-r--r--tests/CMakeLists.txt7
-rw-r--r--tests/Makefile.am5
8 files changed, 73 insertions, 21 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e198f7c..515b3fc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,9 @@
1if(MSVC)
2cmake_minimum_required (VERSION 3.16.4)
3cmake_policy(SET CMP0091 NEW)
4else()
1cmake_minimum_required (VERSION 3.0) 5cmake_minimum_required (VERSION 3.0)
6endif()
2include(CheckFunctionExists) 7include(CheckFunctionExists)
3include(CheckSymbolExists) 8include(CheckSymbolExists)
4include(CheckLibraryExists) 9include(CheckLibraryExists)
@@ -36,6 +41,11 @@ option(ENABLE_EXTRATESTS "Enable extra tests that may be unreliable on some plat
36option(ENABLE_NC "Enable installing TLS-enabled nc(1)" OFF) 41option(ENABLE_NC "Enable installing TLS-enabled nc(1)" OFF)
37set(OPENSSLDIR ${OPENSSLDIR} CACHE PATH "Set the default openssl directory" FORCE) 42set(OPENSSLDIR ${OPENSSLDIR} CACHE PATH "Set the default openssl directory" FORCE)
38 43
44option(USE_STATIC_MSVC_RUNTIMES "Use /MT instead of /MD in MSVC" OFF)
45if(USE_STATIC_MSVC_RUNTIMES)
46 set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
47endif()
48
39if(NOT LIBRESSL_SKIP_INSTALL) 49if(NOT LIBRESSL_SKIP_INSTALL)
40 set( ENABLE_LIBRESSL_INSTALL ON ) 50 set( ENABLE_LIBRESSL_INSTALL ON )
41endif(NOT LIBRESSL_SKIP_INSTALL) 51endif(NOT LIBRESSL_SKIP_INSTALL)
diff --git a/ChangeLog b/ChangeLog
index 6a56c95..8c36911 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -28,6 +28,33 @@ history is also available from Git.
28 28
29LibreSSL Portable Release Notes: 29LibreSSL Portable Release Notes:
30 30
313.1.1 - Stable release
32
33 * Improved SSL_CTX_set_cipher_list(3) and SSL_set_cipher_list(3) to
34 include TLSv1.3 cipher suites even if cipher string does not
35 indicate it.
36
37 * Improved to handle TLSv1.3 HelloRetryRequest.
38
39 * Provided TLSv1.3 cipher suite aliases to match the names used
40 in RFC 8446.
41
42 * Improved to allow using any of the groups in our NID list to
43 generate a client key share.
44
45 * Fixed printing the serialNumber with X509_print_ex() fall back to
46 the colon separated hex bytes in case greater than int value.
47
48 * Fixed to disallow setting the AES-GCM IV length to zero.
49
50 * Added -groups option to openssl(1) s_server subcommand.
51
52 * Fixed to show TLSv1.3 extension type with openssl(1) -tlsextdebug.
53
54 * Improved portable builds to support for use of static MSVC runtimes.
55
56 * Fixed portable builds to avoid exporting a sleep() symbol.
57
313.1.0 - Development release 583.1.0 - Development release
32 59
33 * Completed initial TLS 1.3 implementation with a completely new state 60 * Completed initial TLS 1.3 implementation with a completely new state
diff --git a/appveyor.yml b/appveyor.yml
index 8ac2045..4e0b488 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,25 +1,28 @@
1image: 1image:
2 - Visual Studio 2015 2 - Visual Studio 2019
3 #- Visual Studio 2017
4 3
5environment: 4environment:
6 PATH: C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\Windows\System32;C:\Windows;%PATH% 5 PATH: C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\Windows\System32;C:\Windows;%PATH%
7 6
8 matrix: 7 matrix:
9 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 8 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
10 GENERATOR: Visual Studio 14 2015 Win64 9 GENERATOR: Visual Studio 16 2019
10 ARCHITECTURE: Win32
11 CONFIG: Release 11 CONFIG: Release
12 SHARED_LIBS: ON 12 SHARED_LIBS: ON
13 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 13 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
14 GENERATOR: Visual Studio 14 2015 14 GENERATOR: Visual Studio 16 2019
15 CONFIG: Release 15 ARCHITECTURE: Win32
16 SHARED_LIBS: ON
17 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
18 GENERATOR: Visual Studio 14 2015 Win64
19 CONFIG: Release 16 CONFIG: Release
20 SHARED_LIBS: OFF 17 SHARED_LIBS: OFF
21 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 18 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
22 GENERATOR: Visual Studio 14 2015 19 GENERATOR: Visual Studio 16 2019
20 ARCHITECTURE: x64
21 CONFIG: Release
22 SHARED_LIBS: ON
23 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
24 GENERATOR: Visual Studio 16 2019
25 ARCHITECTURE: x64
23 CONFIG: Release 26 CONFIG: Release
24 SHARED_LIBS: OFF 27 SHARED_LIBS: OFF
25 28
@@ -34,7 +37,7 @@ before_build:
34 - bash autogen.sh 37 - bash autogen.sh
35 - mkdir build 38 - mkdir build
36 - cd build 39 - cd build
37 - cmake .. -G "%GENERATOR%" -DBUILD_SHARED_LIBS=%SHARED_LIBS% -DCMAKE_INSTALL_PREFIX=../local 40 - cmake .. -G "%GENERATOR%" -A "%ARCHITECTURE%" -DBUILD_SHARED_LIBS=%SHARED_LIBS% -DCMAKE_INSTALL_PREFIX=../local
38 41
39build_script: 42build_script:
40 - cmake --build . --config %CONFIG% 43 - cmake --build . --config %CONFIG%
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt
index e6cfc65..01effbf 100644
--- a/crypto/CMakeLists.txt
+++ b/crypto/CMakeLists.txt
@@ -808,7 +808,6 @@ if(WIN32)
808 set(EXTRA_EXPORT ${EXTRA_EXPORT} posix_write) 808 set(EXTRA_EXPORT ${EXTRA_EXPORT} posix_write)
809 set(EXTRA_EXPORT ${EXTRA_EXPORT} posix_getsockopt) 809 set(EXTRA_EXPORT ${EXTRA_EXPORT} posix_getsockopt)
810 set(EXTRA_EXPORT ${EXTRA_EXPORT} posix_setsockopt) 810 set(EXTRA_EXPORT ${EXTRA_EXPORT} posix_setsockopt)
811 set(EXTRA_EXPORT ${EXTRA_EXPORT} sleep)
812endif() 811endif()
813 812
814if(NOT HAVE_ASPRINTF) 813if(NOT HAVE_ASPRINTF)
diff --git a/crypto/compat/posix_win.c b/crypto/compat/posix_win.c
index 4b4b5f5..30c93cd 100644
--- a/crypto/compat/posix_win.c
+++ b/crypto/compat/posix_win.c
@@ -242,10 +242,4 @@ int gettimeofday(struct timeval * tp, struct timezone * tzp)
242 return 0; 242 return 0;
243} 243}
244 244
245unsigned int sleep(unsigned int seconds)
246{
247 Sleep(seconds * 1000);
248 return seconds;
249}
250
251#endif 245#endif
diff --git a/include/compat/unistd.h b/include/compat/unistd.h
index f521b94..5e6ab1d 100644
--- a/include/compat/unistd.h
+++ b/include/compat/unistd.h
@@ -37,7 +37,14 @@ ssize_t pwrite(int d, const void *buf, size_t nbytes, off_t offset);
37 37
38#define access _access 38#define access _access
39 39
40unsigned int sleep(unsigned int seconds); 40#ifdef _MSC_VER
41#include <windows.h>
42static inline unsigned int sleep(unsigned int seconds)
43{
44 Sleep(seconds * 1000);
45 return seconds;
46}
47#endif
41 48
42int ftruncate(int fd, off_t length); 49int ftruncate(int fd, off_t length);
43uid_t getuid(void); 50uid_t getuid(void);
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 7f44862..80b785d 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -352,6 +352,13 @@ if(NOT BUILD_SHARED_LIBS)
352 add_test(recordtest recordtest) 352 add_test(recordtest recordtest)
353endif() 353endif()
354 354
355# record_layer_test
356if(NOT BUILD_SHARED_LIBS)
357 add_executable(record_layer_test record_layer_test.c)
358 target_link_libraries(record_layer_test ${OPENSSL_LIBS})
359 add_test(record_layer_test record_layer_test)
360endif()
361
355# rfc5280time 362# rfc5280time
356add_executable(rfc5280time rfc5280time.c) 363add_executable(rfc5280time rfc5280time.c)
357target_link_libraries(rfc5280time ${OPENSSL_LIBS}) 364target_link_libraries(rfc5280time ${OPENSSL_LIBS})
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 8e7a597..7463f26 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -342,6 +342,11 @@ TESTS += recordtest
342check_PROGRAMS += recordtest 342check_PROGRAMS += recordtest
343recordtest_SOURCES = recordtest.c 343recordtest_SOURCES = recordtest.c
344 344
345# record_layer_test
346TESTS += record_layer_test
347check_PROGRAMS += record_layer_test
348record_layer_test_SOURCES = record_layer_test.c
349
345# rfc5280time 350# rfc5280time
346check_PROGRAMS += rfc5280time 351check_PROGRAMS += rfc5280time
347rfc5280time_SOURCES = rfc5280time.c 352rfc5280time_SOURCES = rfc5280time.c