972 Commits

Author SHA1 Message Date
John Norrbin
3d989bc91e
Readme: Using LibreSSL with a CMake project 2019-02-11 20:54:30 +01:00
John Norrbin
1dd2d050e1
Add LibreSSL CMake Find Module
CMake has the find_package function which tries to find the library install paths, and if found, gives the user some "interfaces" to use when including the library in their project. There was no LibreSSL module so i wrote one 👍.

Placing this file in a new folder called CMake in the same folder as the root CMakeLists.txt file, and adding the following line to the top of it:

set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}")

Lets the user run the find_package like so:

find_package(LibreSSL REQUIRED)

If LibreSSL is installed and found, the user can then just include the library in their target like so:

target_link_libraries(test LibreSSL::TLS)

They are cascaded, TLS requires and sets SSL, which also requires and sets Crypto using INTERFACE_LINK_LIBRARIES.

Instead of setting the CMAKE_MODULE_PATH like above, the file can be placed in the CMake modules folder.

For linux CMake will look for LibreSSL in the default install location of "sudo make install", which was on Ubuntu /usr/local/

For Windows the user can set the paths to their library files and include folder manually using the CMake-GUI.
2019-02-11 20:30:17 +01:00
Brent Cook
535246269d add __dead__ annotation support 2019-02-09 09:09:36 -06:00
Brent Cook
5535242ec1 update manpage links 2019-02-09 07:41:00 -06:00
Brent Cook
4d6cfb10ed update tests 2019-02-09 07:40:14 -06:00
Brent Cook
79a66f1b5d update patch 2019-02-09 07:28:07 -06:00
Brent Cook
40c848316e add unimpl fallback for getprogname 2019-02-03 18:50:14 -06:00
Brent Cook
7f59976700 export getuid for libtls 2019-02-01 05:44:31 -06:00
Brent Cook
cc0a0e1299 add syslog to compat headers 2019-02-01 05:14:57 -06:00
Brent Cook
5269dbb279 update cmake 2019-01-31 13:56:56 -06:00
Brent Cook
a6d7ea9562 update autoconf for latest compat functions 2019-01-31 13:56:56 -06:00
Brent Cook
495a1b6316 more masm fixes, but disable for now 2019-01-21 20:15:30 -06:00
Brent Cook
501d61c681 valid_handshakes_terminate uses private API 2019-01-21 16:21:32 -06:00
Brent Cook
aa85c64caf add tls13_client 2019-01-21 16:06:45 -06:00
Brent Cook
1b2e3576e0 a couple of fixes to get MSVC Win64 going again 2019-01-21 15:26:32 -06:00
Brent Cook
6c6b58f610 use generator to determine if we're building 64-bit code on Windows 2019-01-21 11:19:11 -06:00
Brent Cook
d649daf41d add new files 2019-01-21 06:14:21 -06:00
Brent Cook
64d9c5d678 fixes to build asm on MSVS 2019-01-21 05:24:11 -06:00
Brent Cook
0ec8c536b9 update .gitignore 2019-01-20 23:39:15 -06:00
Brent Cook
cc08f8eae0 adjust asm exclusions 2019-01-20 23:38:22 -06:00
Brent Cook
73b371073e remove xcode annotations for windows 2019-01-20 23:37:44 -06:00
Brent Cook
e22fea70af reduce number of Windows configs needed to test 2019-01-20 22:00:59 -06:00
Brent Cook
ecc142702a disable 2017 builds for now, appveyor is taking too long 2019-01-20 21:57:40 -06:00
Brent Cook
f553a9fe63 consider masm/mingw assembly flavors from cmake 2019-01-20 21:18:34 -06:00
Brent Cook
3fc51459dd make keypairtest.sh runnable standalone 2019-01-20 21:18:17 -06:00
Brent Cook
a2c03cbb56 disable bn acceleration 2019-01-20 20:54:47 -06:00
Brent Cook
0492445a69 always stop the asm generators from calling the C compiler 2019-01-20 20:07:54 -06:00
Brent Cook
8730803401 enable asm for mingw64 2019-01-20 20:03:37 -06:00
Brent Cook
8475a5876d add _LP64 checks 2019-01-20 20:03:37 -06:00
Brent Cook
72bb1ed618 generate masm and mingw64 assembly 2019-01-20 20:03:37 -06:00
Brent Cook
74553e53aa recordtest needs private symbols 2019-01-20 16:33:47 -06:00
Brent Cook
f67724d084 add more tls13 files 2019-01-20 16:25:25 -06:00
Brent Cook
695919e059 add new files and tests 2019-01-20 15:28:46 -06:00
Brent Cook
26c8896c6b check for cc before gcc 2019-01-20 15:08:05 -06:00
Brent Cook
17ae1da6c9 rebase patches 2019-01-19 22:24:01 -06:00
Brent Cook
7c4d13138a fix build 2019-01-19 05:09:13 -06:00
Brent Cook
f1dfe95403 add ec to crypto private -I path for ec_lcl.h 2019-01-19 04:33:03 -06:00
Brent Cook
d8c05cedec account for differences in FAIL macros 2019-01-18 18:44:47 -06:00
Brent Cook
3ab11de0f1 adjust for latest upstream changes 2019-01-18 18:38:59 -06:00
Brent Cook
91d26602c9 check for more pthread functions that might not be in libc 2019-01-18 18:04:31 -06:00
Brent Cook
e59ea94f62 add tls13_[tlsext|buffer].* and buffertest 2019-01-18 17:13:36 -06:00
Brent Cook
7032d88bfd Land #488, Android build fixes 2019-01-17 18:34:44 -06:00
Brent Cook
7f063e116a Land #493, Add Android build for Travis-CI 2019-01-08 10:25:57 -06:00
kinichiro
c5fb18747e typo s/NAPI/NAL/ 2019-01-08 00:00:31 +09:00
Brent Cook
3247230d47 rename modes_lcl patch so it applies 2019-01-07 06:46:03 -06:00
Brent Cook
b6479e01f6 define in_port_t for Android 2019-01-07 06:46:03 -06:00
Brent Cook
3f189a24f2 check if we need to link pthread dynamically
On Linux, bionic and musl for instance do not need libpthread. With
bionic, there is not even a stub library for compatibility.
2019-01-07 06:46:03 -06:00
Brent Cook
4eb8da3e07 Land #496, add configure-time check for timespecsub 2019-01-07 06:28:29 -06:00
Brent Cook
c1a44d2220 we don't need to pass this to automake 2019-01-06 15:49:28 -06:00
Brent Cook
7af3ba340d add configure-time check for timespecsub 2019-01-06 15:47:55 -06:00