aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
AgeCommit message (Collapse)AuthorFilesLines
2018-11-06cmake: Refresh the CMake Config filesChristophe Giboudeaux1-7/+17
This commit fixes a couple issues in the CMake configuration files and uses native features from CMake: * libssh-build-tree-settings.cmake is deleted. There was a typo that made this file unusable, anyway. * use the macros available in CMakePackageConfigHelpers.cmake to generate the version file and check that the files exist * Remove the LIBSSH_THREADS_LIBRARY variable, it used the non-existent LIBSSH_THREADS_LIBRARY_NAME variable. * Fix the in tree build. libssh can be used uninstalled again. Test plan: The values were tested after installing the new files and also without running 'make install'. Signed-off-by: Christophe Giboudeaux <christophe@krop.fr>
2018-10-29Bump SO version to 4.7.2Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-10-16Bump ABI to 4.7.1Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-20cmake: Bump library versionAndreas Schneider1-1/+1
2018-09-05cmake: Move CompilerFlags to own fileAndreas Schneider1-0/+1
They need to be included before the project() call. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-05cmake: Update defaultsAndreas Schneider1-4/+8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-30cmake: Set version to 0.8.90Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-29Bump library version to 4.6.0Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-29cmake: Fix final map generationAndreas Schneider1-3/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-29cmake: Require at least abimap-0.3.1Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-22cmake: Use FindDoxygen package provided by cmakeAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-20cmake: Improve compiler flag detectionAndreas Schneider1-1/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-13cmake: Bump library version for releaseAndreas Schneider1-1/+1
2018-08-10cmake: Remove DESCRIPTION from projectAndreas Schneider1-1/+1
This is only available with cmake >= 3.9.0. It should fix oss-fuzz. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-08cmake: Introduce symbol versioningAnderson Toshiyuki Sasaki1-0/+64
This adds a cmake module, FindABIMap, which looks for abimap and provides functions to generate a symbol version linker script. The module can be included using find_package(ABIMap). This also adds the option to compile with symbol versioning. The symbol list is obtained from the header files by filtering those marked with the LIBSSH_API modifier. Such symbols are used as input to generate the version script used by the linker. The version script is automatically updated as new symbols marked with LIBSSH_API are added to the header files. If any symbol is removed, the build will fail due to break in the ABI. Symbol versioning is enabled by default if abimap has been found. It is disabled in non-UNIX platforms. It can be disabled by passing "-DWITH_SYMBOL_VERSIONING=OFF" option to cmake. Pair-Programmed-With: Andreas Schneider <asn@cryptomilk.org> Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-08cmake: Update cmake and cpack configAndreas Schneider1-10/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-03threads: Automatically call ssh_init on loadAnderson Toshiyuki Sasaki1-15/+1
This makes unnecessary to call ssh_init() when the library is dynamically loaded. Also removes the threads shared library. The used threads implementation is chosen in configuration time, changing the ssh_threads_get_default() depending on the available threads library. Internally, it is expected a threads implementation providing: - void ssh_mutex_lock(void **mutex); - void ssh_mutex_unlock(void **mutex); - struct ssh_threads_callbacks_struct *ssh_threads_get_default(void); and a crypto implementation providing: - int crypto_thread_init(struct ssh_threads_callbacks_struct *user_callbacks); - void crypto_thread_finalize(void); This adds internal threads implementation for pthreads and noop. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-03cmake: Require at least cmake 3.1Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-07-04cmake: Print if server testing is enabledAndreas Schneider1-1/+6
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-29Rest in Peace SSHv1Andreas Schneider1-1/+0
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2018-06-29cmake: Rename WITH_CLIENT_TESTING option to CLIENT_TESTINGAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-29cmake: Rename WITH_TESTING option to UNIT_TESTINGAndreas Schneider1-3/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-01-29libssh: Bump the version to 0.7.90Andreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2017-12-28add mbedtls crypto supportJuraj Vijtiuk1-1/+10
Summary: This patch adds support for mbedTLS as a crypto backend for libssh. mbedTLS is an SSL/TLS library that has been designed to mainly be used in embedded systems. It is loosely coupled and has a low memory footprint. mbedTLS also provides a cryptography library (libmbedcrypto) that can be used without the TLS modules. The patch is unfortunately quite big, since several new files had to be added. DSA is disabled at compile time, since mbedTLS doesn't support DSA Patch review and feedback would be appreciated, and if any issues or suggestions appear, I'm willing to work on them. Signed-off-by: Juraj Vijtiuk <juraj.vijtiuk@sartura.hr> Test Plan: * The patch has been tested with a Debug and MinSizeRel build, with libssh unit tests, client tests and the pkd tests. * All the tests have been run with valgrind's memcheck, drd and helgrind tools. * The examples/samplessh client works when built with the patch. Reviewers: asn, aris Subscribers: simonsj Differential Revision: https://bugs.libssh.org/D1
2017-09-12cmake: Bump version numbersAndreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-03-14cmake: detect argp.h on osxAris Adamantiadis1-0/+4
2015-09-07cmake: Handle libssh threas library correctlyAndreas Schneider1-1/+15
This should fix the build on Windows and would not install pkg files. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-06-24cmake: Do not use CMAKE_(SOURCE|BINARY)_DIRDouglas Heriot1-1/+1
2015-05-06Bump version to 0.7.0Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-10cmake: Require cmake 2.8.5Andreas Schneider1-1/+1
I've improved FindOpenSSL and FindZLIB in that version to work well with Windows and Linux. This was 2011 it should be old enough that most distributions have at least this version available. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-10cmake: Require cmake version 2.8.0Andreas Schneider1-1/+1
2014-12-17cmake: Fix config variable names.Andreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-05-22cmake: Fix libssh cmake-config files.Andreas Schneider1-5/+9
2014-05-20Set the correct version in CMakeLists.txtHani Benhabiles1-2/+2
Signed-off-by: Hani Benhabiles <hani@linux.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-04-16cmake: Install cmake config files to the correct directory.Andreas Schneider1-1/+1
2014-01-07cmake: Remove unused macro modules.Andreas Schneider1-4/+0
2013-11-03Compile libssh with nacl if possibleAris Adamantiadis1-0/+8
Conflicts: DefineOptions.cmake
2013-09-16cmake: Allow to build without examples.Andreas Schneider1-1/+3
BUG: https://red.libssh.org/issues/114
2013-07-13cmake: Don't make GSSAPI a hard requirement.Andreas Schneider1-1/+1
2013-07-13cmake: Make GSSAPI optional.Andreas Schneider1-4/+3
2013-07-13build: detect gssapi.hAris Adamantiadis1-0/+6
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-12cmake: Add cmake config files for new find_package() mode.Andreas Schneider1-0/+16
2012-10-15cmake: Add message if we build with static library.Andreas Schneider1-0/+1
2012-10-07test: Use cmocka instead of cmockery.Andreas Schneider1-2/+2
cmocka is the successor of cmockery. http://git.cryptomilk.org/projects/cmocka.git/
2012-02-04cmake: Enable ECC support for GCrypt 1.5.0 or newer.Andreas Schneider1-1/+1
2011-09-23cmake: Fix library linking.Andreas Schneider1-3/+3
2011-06-14cmake: Added pkg-config support for libssh_treads.Andreas Schneider1-0/+2
2011-05-30cmake: Set next version.Andreas Schneider1-1/+1
2011-03-01build: Set version to 0.5.90.Andreas Schneider1-2/+2
2011-02-10build: Increased version numbers.Andreas Schneider1-1/+1