Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 016f944

Browse files
committed
Merge commit 'efdd567a1ba1f421696b60260551b02243bdf65d'
2 parents 98f320d + efdd567 commit 016f944

96 files changed

Lines changed: 5908 additions & 2736 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitlab-ci.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,25 @@ fedora/openssl_1.1.x/x86-64:
2828
script:
2929
- mkdir -p obj && cd obj && cmake -DCMAKE_BUILD_TYPE=Debug
3030
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
31+
-DPICKY_DEVELOPER=ON
32+
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON .. &&
33+
make -j$(nproc) && ctest --output-on-failure
34+
tags:
35+
- shared
36+
except:
37+
- tags
38+
artifacts:
39+
expire_in: 1 week
40+
when: on_failure
41+
paths:
42+
- obj/
43+
44+
fedora/openssl_1.1.x/x86-64/release:
45+
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
46+
script:
47+
- mkdir -p obj && cd obj && cmake -DCMAKE_BUILD_TYPE=Release
48+
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
49+
-DPICKY_DEVELOPER=ON
3150
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON .. &&
3251
make -j$(nproc) && ctest --output-on-failure
3352
tags:
@@ -105,6 +124,7 @@ freebsd/x86-64:
105124
script:
106125
- mkdir -p obj && cd obj && cmake -DCMAKE_BUILD_TYPE=Debug
107126
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
127+
-DPICKY_DEVELOPER=ON
108128
-DUNIT_TESTING=ON .. &&
109129
make && ctest --output-on-failure
110130
tags:
@@ -144,6 +164,7 @@ fedora/mbedtls/x86-64:
144164
- mkdir -p obj && cd obj && cmake -DCMAKE_BUILD_TYPE=Debug
145165
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
146166
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON
167+
-DPICKY_DEVELOPER=ON
147168
-DWITH_MBEDTLS=ON .. &&
148169
make -j$(nproc) && ctest --output-on-failure
149170
tags:
@@ -162,6 +183,7 @@ tumbleweed/openssl_1.1.x/x86-64:
162183
- mkdir -p obj && cd obj && cmake -DCMAKE_BUILD_TYPE=Debug
163184
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
164185
-DKRB5_CONFIG=/usr/lib/mit/bin/krb5-config
186+
-DPICKY_DEVELOPER=ON
165187
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON .. &&
166188
make -j$(nproc) && ctest --output-on-failure
167189
tags:
@@ -174,11 +196,45 @@ tumbleweed/openssl_1.1.x/x86-64:
174196
paths:
175197
- obj/
176198

199+
tumbleweed/openssl_1.1.x/x86-64/release:
200+
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
201+
script:
202+
- mkdir -p obj && cd obj && cmake -DCMAKE_BUILD_TYPE=Release
203+
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
204+
-DKRB5_CONFIG=/usr/lib/mit/bin/krb5-config
205+
-DPICKY_DEVELOPER=ON
206+
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON .. &&
207+
make -j$(nproc) && ctest --output-on-failure
208+
tags:
209+
- shared
210+
except:
211+
- tags
212+
artifacts:
213+
expire_in: 1 week
214+
when: on_failure
215+
paths:
216+
- obj/
217+
218+
tumbleweed/docs:
219+
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
220+
script:
221+
- mkdir -p obj && cd obj && cmake .. && make docs
222+
tags:
223+
- shared
224+
except:
225+
- tags
226+
artifacts:
227+
expire_in: 1 week
228+
when: on_failure
229+
paths:
230+
- obj/
231+
177232
tumbleweed/openssl_1.1.x/x86:
178233
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
179234
script:
180235
- mkdir -p obj && cd obj && cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-cross-m32.cmake
181236
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
237+
-DPICKY_DEVELOPER=ON
182238
-DUNIT_TESTING=ON .. &&
183239
make -j$(nproc) && ctest --output-on-failure
184240
tags:
@@ -238,6 +294,7 @@ mingw64:
238294
- export DISPLAY=:1
239295
- mkdir -p obj && cd obj && mingw64-cmake -DCMAKE_BUILD_TYPE=Debug
240296
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
297+
-DPICKY_DEVELOPER=ON
241298
-DUNIT_TESTING=ON .. &&
242299
make -j$(nproc)
243300
- export WINEPATH=/usr/x86_64-w64-mingw32/sys-root/mingw/bin
@@ -261,6 +318,7 @@ mingw32:
261318
- export DISPLAY=:1
262319
- mkdir -p obj && cd obj && mingw32-cmake -DCMAKE_BUILD_TYPE=Debug
263320
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
321+
-DPICKY_DEVELOPER=ON
264322
-DUNIT_TESTING=ON .. &&
265323
make -j$(nproc)
266324
- export WINEPATH=/usr/i686-w64-mingw32/sys-root/mingw/bin

CMakeLists.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
cmake_minimum_required(VERSION 3.2.0)
1+
cmake_minimum_required(VERSION 3.3.0)
22
cmake_policy(SET CMP0048 NEW)
33

4-
project(libssh VERSION 0.8.1 LANGUAGES C)
4+
project(libssh VERSION 0.8.2 LANGUAGES C)
55

66
# global needed variable
77
set(APPLICATION_NAME ${PROJECT_NAME})
@@ -13,7 +13,7 @@ set(APPLICATION_NAME ${PROJECT_NAME})
1313
# Increment AGE. Set REVISION to 0
1414
# If the source code was changed, but there were no interface changes:
1515
# Increment REVISION.
16-
set(LIBRARY_VERSION "4.5.1")
16+
set(LIBRARY_VERSION "4.6.0")
1717
set(LIBRARY_SOVERSION "4")
1818

1919
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
@@ -24,11 +24,12 @@ set(CMAKE_MODULE_PATH
2424
# add definitions
2525
include(DefineCMakeDefaults)
2626
include(DefinePlatformDefaults)
27-
include(DefineCompilerFlags)
2827
include(DefineInstallationPaths)
2928
include(DefineOptions.cmake)
3029
include(CPackConfig.cmake)
3130

31+
include(CompilerChecks.cmake)
32+
3233
# disallow in-source build
3334
include(MacroEnsureOutOfSourceBuild)
3435
macro_ensure_out_of_source_build("${PROJECT_NAME} requires an out of source build. Please create a separate build directory and run 'cmake /path/to/${PROJECT_NAME} [options]' there.")
@@ -83,7 +84,7 @@ endif (BSD OR SOLARIS OR OSX)
8384

8485
# Disable symbol versioning in non UNIX platforms
8586
if (UNIX)
86-
find_package(ABIMap)
87+
find_package(ABIMap 0.3.1)
8788
else (UNIX)
8889
set(WITH_SYMBOL_VERSIONING OFF)
8990
endif (UNIX)
@@ -158,13 +159,13 @@ if (WITH_SYMBOL_VERSIONING AND ABIMAP_FOUND)
158159
message(STATUS "Library version bumped to ${LIBRARY_VERSION}: Updating ABI")
159160

160161
# Get the list of header files
161-
get_file_list("${PROJECT_NAME}_header_list"
162+
get_file_list(${PROJECT_NAME}_header_list
162163
DIRECTORIES "${CMAKE_SOURCE_DIR}/include/libssh"
163164
FILES_PATTERNS "*.h")
164165

165166
# Extract the symbols marked as "LIBSSH_API" from the header files
166167
extract_symbols(${PROJECT_NAME}.symbols
167-
HEADERS_LIST_FILE "${PROJECT_NAME}_header_list"
168+
HEADERS_LIST ${PROJECT_NAME}_header_list
168169
FILTER_PATTERN "LIBSSH_API"
169170
COPY_TO "${CMAKE_SOURCE_DIR}/src/ABI/${PROJECT_NAME}-${LIBRARY_VERSION}.symbols")
170171

@@ -180,7 +181,7 @@ if (WITH_SYMBOL_VERSIONING AND ABIMAP_FOUND)
180181

181182
# Generate the symbol version map file
182183
generate_map_file(${_SYMBOL_TARGET}
183-
SYMBOLS "${PROJECT_NAME}.symbols"
184+
SYMBOLS ${PROJECT_NAME}.symbols
184185
RELEASE_NAME_VERSION ${PROJECT_NAME}_${LIBRARY_VERSION}
185186
CURRENT_MAP ${MAP_PATH}
186187
COPY_TO ${MAP_PATH}

ChangeLog

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
ChangeLog
22
==========
33

4+
version 0.8.2 (released 2018-08-30)
5+
* Added sha256 fingerprints for pubkeys
6+
* Improved compiler flag detection
7+
* Fixed race condition in reading sftp messages
8+
* Fixed doxygen generation and added modern style
9+
* Fixed library initialization on Windows
10+
* Fixed __bounded__ attribute detection
11+
* Fixed a bug in the options parser
12+
* Fixed documentation for new knwon_hosts API
13+
414
version 0.8.1 (released 2018-08-13)
515
* Fixed version number in the header
616
* Fixed version number in pkg-config and cmake config

CompilerChecks.cmake

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
include(AddCCompilerFlag)
2+
include(CheckCCompilerFlagSSP)
3+
4+
if (UNIX)
5+
#
6+
# Check for -Werror turned on if possible
7+
#
8+
# This will prevent that compiler flags are detected incorrectly.
9+
#
10+
check_c_compiler_flag("-Werror" REQUIRED_FLAGS_WERROR)
11+
if (REQUIRED_FLAGS_WERROR)
12+
set(CMAKE_REQUIRED_FLAGS "-Werror")
13+
14+
if (PICKY_DEVELOPER)
15+
list(APPEND SUPPORTED_COMPILER_FLAGS "-Werror")
16+
endif()
17+
endif()
18+
19+
add_c_compiler_flag("-std=gnu99" SUPPORTED_COMPILER_FLAGS)
20+
add_c_compiler_flag("-pedantic" SUPPORTED_COMPILER_FLAGS)
21+
add_c_compiler_flag("-pedantic-errors" SUPPORTED_COMPILER_FLAGS)
22+
add_c_compiler_flag("-Wall" SUPPORTED_COMPILER_FLAGS)
23+
add_c_compiler_flag("-Wshadow" SUPPORTED_COMPILER_FLAGS)
24+
add_c_compiler_flag("-Wmissing-prototypes" SUPPORTED_COMPILER_FLAGS)
25+
add_c_compiler_flag("-Wcast-align" SUPPORTED_COMPILER_FLAGS)
26+
#add_c_compiler_flag("-Wcast-qual" SUPPORTED_COMPILER_FLAGS)
27+
add_c_compiler_flag("-Werror=address" SUPPORTED_COMPILER_FLAGS)
28+
add_c_compiler_flag("-Wstrict-prototypes" SUPPORTED_COMPILER_FLAGS)
29+
add_c_compiler_flag("-Werror=strict-prototypes" SUPPORTED_COMPILER_FLAGS)
30+
add_c_compiler_flag("-Wwrite-strings" SUPPORTED_COMPILER_FLAGS)
31+
add_c_compiler_flag("-Werror=write-strings" SUPPORTED_COMPILER_FLAGS)
32+
add_c_compiler_flag("-Werror-implicit-function-declaration" SUPPORTED_COMPILER_FLAGS)
33+
add_c_compiler_flag("-Wpointer-arith" SUPPORTED_COMPILER_FLAGS)
34+
add_c_compiler_flag("-Werror=pointer-arith" SUPPORTED_COMPILER_FLAGS)
35+
add_c_compiler_flag("-Wdeclaration-after-statement" SUPPORTED_COMPILER_FLAGS)
36+
add_c_compiler_flag("-Werror=declaration-after-statement" SUPPORTED_COMPILER_FLAGS)
37+
add_c_compiler_flag("-Wreturn-type" SUPPORTED_COMPILER_FLAGS)
38+
add_c_compiler_flag("-Werror=return-type" SUPPORTED_COMPILER_FLAGS)
39+
add_c_compiler_flag("-Wuninitialized" SUPPORTED_COMPILER_FLAGS)
40+
add_c_compiler_flag("-Werror=uninitialized" SUPPORTED_COMPILER_FLAGS)
41+
add_c_compiler_flag("-Wimplicit-fallthrough" SUPPORTED_COMPILER_FLAGS)
42+
add_c_compiler_flag("-Werror=strict-overflow" SUPPORTED_COMPILER_FLAGS)
43+
add_c_compiler_flag("-Wstrict-overflow=2" SUPPORTED_COMPILER_FLAGS)
44+
add_c_compiler_flag("-Wno-format-zero-length" SUPPORTED_COMPILER_FLAGS)
45+
46+
check_c_compiler_flag("-Wformat" REQUIRED_FLAGS_WFORMAT)
47+
if (REQUIRED_FLAGS_WFORMAT)
48+
list(APPEND SUPPORTED_COMPILER_FLAGS "-Wformat")
49+
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -Wformat")
50+
endif()
51+
add_c_compiler_flag("-Wformat-security" SUPPORTED_COMPILER_FLAGS)
52+
add_c_compiler_flag("-Werror=format-security" SUPPORTED_COMPILER_FLAGS)
53+
54+
# Allow zero for a variadic macro argument
55+
add_c_compiler_flag("-Wno-gnu-zero-variadic-macro-arguments" SUPPORTED_COMPILER_FLAGS)
56+
57+
add_c_compiler_flag("-fno-common" SUPPORTED_COMPILER_FLAGS)
58+
59+
if (CMAKE_BUILD_TYPE)
60+
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
61+
if (CMAKE_BUILD_TYPE_LOWER MATCHES (release|relwithdebinfo|minsizerel))
62+
add_c_compiler_flag("-Wp,-D_FORTIFY_SOURCE=2" SUPPORTED_COMPILER_FLAGS)
63+
endif()
64+
endif()
65+
66+
check_c_compiler_flag_ssp("-fstack-protector" WITH_STACK_PROTECTOR)
67+
if (WITH_STACK_PROTECTOR)
68+
list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-protector")
69+
endif()
70+
71+
if (PICKY_DEVELOPER)
72+
add_c_compiler_flag("-Wno-error=deprecated-declarations" SUPPORTED_COMPILER_FLAGS)
73+
add_c_compiler_flag("-Wno-error=tautological-compare" SUPPORTED_COMPILER_FLAGS)
74+
endif()
75+
76+
# Unset CMAKE_REQUIRED_FLAGS
77+
unset(CMAKE_REQUIRED_FLAGS)
78+
endif()
79+
80+
if (MSVC)
81+
add_c_compiler_flag("/D _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1" SUPPORTED_COMPILER_FLAGS)
82+
add_c_compiler_flag("/D _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT=1" SUPPORTED_COMPILER_FLAGS)
83+
add_c_compiler_flag("/D _CRT_NONSTDC_NO_WARNINGS=1" SUPPORTED_COMPILER_FLAGS)
84+
add_c_compiler_flag("/D _CRT_SECURE_NO_WARNINGS=1" SUPPORTED_COMPILER_FLAGS)
85+
endif()
86+
87+
# This removes this annoying warning
88+
# "warning: 'BN_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]"
89+
if (OSX)
90+
add_c_compiler_flag("-Wno-deprecated-declarations" SUPPORTED_COMPILER_FLAGS)
91+
endif()
92+
93+
set(DEFAULT_C_COMPILE_FLAGS ${SUPPORTED_COMPILER_FLAGS} CACHE INTERNAL "Default C Compiler Flags" FORCE)

ConfigureChecks.cmake

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ endif (NOT WITH_MBEDTLS)
150150

151151
check_function_exists(isblank HAVE_ISBLANK)
152152
check_function_exists(strncpy HAVE_STRNCPY)
153+
check_function_exists(strndup HAVE_STRNDUP)
153154
check_function_exists(strtoull HAVE_STRTOULL)
154155
check_function_exists(explicit_bzero HAVE_EXPLICIT_BZERO)
155156
check_function_exists(memset_s HAVE_MEMSET_S)
@@ -271,7 +272,10 @@ int main(void) {
271272
# For detecting attributes we need to treat warnings as
272273
# errors
273274
if (UNIX)
274-
set(CMAKE_REQUIRED_FLAGS "-Werror")
275+
check_c_compiler_flag("-Werror" REQUIRED_FLAGS_WERROR)
276+
if (REQUIRED_FLAGS_WERROR)
277+
set(CMAKE_REQUIRED_FLAGS "-Werror")
278+
endif()
275279
endif (UNIX)
276280

277281
check_c_source_compiles("
@@ -354,9 +358,6 @@ int main(void) {
354358
return 0;
355359
}" HAVE_COMPILER__FUNCTION__)
356360

357-
# Stop treating warnings as errors
358-
unset(CMAKE_REQUIRED_FLAGS)
359-
360361
check_c_source_compiles("
361362
#define ARRAY_LEN 16
362363
void test_attr(const unsigned char *k)
@@ -366,6 +367,23 @@ int main(void) {
366367
return 0;
367368
}" HAVE_GCC_BOUNDED_ATTRIBUTE)
368369

370+
# Stop treating warnings as errors
371+
unset(CMAKE_REQUIRED_FLAGS)
372+
373+
# Check for version script support
374+
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/conftest.map" "VERS_1 {
375+
global: sym;
376+
};
377+
VERS_2 {
378+
global: sym;
379+
} VERS_1;
380+
")
381+
382+
set(CMAKE_REQUIRED_FLAGS "-Wl,--version-script=\"${CMAKE_CURRENT_BINARY_DIR}/conftest.map\"")
383+
check_c_source_compiles("int main(void) { return 0; }" HAVE_LD_VERSION_SCRIPT)
384+
unset(CMAKE_REQUIRED_FLAGS)
385+
file(REMOVE "${CMAKE_CURRENT_BINARY_DIR}/conftest.map")
386+
369387
if (WITH_DEBUG_CRYPTO)
370388
set(DEBUG_CRYPTO 1)
371389
endif (WITH_DEBUG_CRYPTO)

DefineOptions.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ option(WITH_NACL "Build with libnacl (curve25519)" ON)
1919
option(WITH_SYMBOL_VERSIONING "Build with symbol versioning" ON)
2020
option(WITH_ABI_BREAK "Allow ABI break" OFF)
2121
option(FUZZ_TESTING "Build with fuzzer for the server" OFF)
22+
option(PICKY_DEVELOPER "Build with picky developer flags" OFF)
23+
2224
if (WITH_ZLIB)
2325
set(WITH_LIBZ ON)
2426
else (WITH_ZLIB)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#
2+
# add_c_compiler_flag("-Werror" SUPPORTED_CFLAGS)
3+
#
4+
# Copyright (c) 2018 Andreas Schneider <asn@cryptomilk.org>
5+
#
6+
# Redistribution and use is allowed according to the terms of the BSD license.
7+
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
8+
9+
include(CheckCCompilerFlag)
10+
11+
macro(add_c_compiler_flag _COMPILER_FLAG _OUTPUT_VARIABLE)
12+
string(TOUPPER ${_COMPILER_FLAG} _COMPILER_FLAG_NAME)
13+
string(REGEX REPLACE "^-" "" _COMPILER_FLAG_NAME "${_COMPILER_FLAG_NAME}")
14+
string(REGEX REPLACE "(-|=|\ )" "_" _COMPILER_FLAG_NAME "${_COMPILER_FLAG_NAME}")
15+
16+
check_c_compiler_flag("${_COMPILER_FLAG}" WITH_${_COMPILER_FLAG_NAME}_FLAG)
17+
if (WITH_${_COMPILER_FLAG_NAME}_FLAG)
18+
#string(APPEND ${_OUTPUT_VARIABLE} "${_COMPILER_FLAG} ")
19+
list(APPEND ${_OUTPUT_VARIABLE} ${_COMPILER_FLAG})
20+
endif()
21+
endmacro()

cmake/Modules/CheckCCompilerFlagSSP.cmake

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@
1515
# Redistribution and use is allowed according to the terms of the BSD license.
1616
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
1717

18-
18+
# Requires cmake 3.10
19+
#include_guard(GLOBAL)
1920
include(CheckCSourceCompiles)
2021

21-
function(CHECK_C_COMPILER_FLAG_SSP _FLAG _RESULT)
22-
set(SAFE_CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS}")
23-
set(CMAKE_REQUIRED_DEFINITIONS "${_FLAG}")
22+
macro(CHECK_C_COMPILER_FLAG_SSP _FLAG _RESULT)
23+
set(SAFE_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}")
24+
set(CMAKE_REQUIRED_FLAGS "${_FLAG}")
25+
2426
check_c_source_compiles("int main(int argc, char **argv) { char buffer[256]; return buffer[argc]=0;}" ${_RESULT})
25-
set(CMAKE_REQUIRED_DEFINITIONS "${SAFE_CMAKE_REQUIRED_DEFINITIONS}")
26-
endfunction(CHECK_C_COMPILER_FLAG_SSP)
27+
28+
set(CMAKE_REQUIRED_FLAGS "${SAFE_CMAKE_REQUIRED_FLAGS}")
29+
endmacro(CHECK_C_COMPILER_FLAG_SSP)

0 commit comments

Comments
 (0)