aboutsummaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
AgeCommit message (Collapse)AuthorFilesLines
2017-02-23cmake: Check for EVP_CIPHER_CTX_newAndreas Schneider1-0/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-11-07cmake: Use configure check for CRYPTO_ctr128_encryptAndreas Schneider1-0/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-11-07threads: Use new API call for OpenSSL CRYPTO THREADIDAndreas Schneider1-0/+3
BUG: https://red.libssh.org/issues/222 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-11-06cmake: Check for io.h on WindowsAndreas Schneider1-0/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-11-06cmake: Correctly check for sys/[u]time.hAndreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-11-06cmake: Always check for strtoullAndreas Schneider1-1/+1
This fixes building with different compilers on Windows BUG: https://red.libssh.org/issues/225 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-11-05cmake: Correctly check for *snprintf functions on WindowsAndreas Schneider1-7/+12
BUG: https://red.libssh.org/issues/205 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-11-03pki_gcrypt: Handle ECDSA keys and signaturesJustus Winter1-2/+2
* ConfigureChecks.cmake: Set 'HAVE_ECC' and 'HAVE_GCRYPT_ECC' if applicable. * include/libssh/pki.h (struct ssh_key_struct): Fix type of field 'ecdsa'. (struct ssh_signature_struct): Likewise for 'ecdsa_sig'. * src/pki.c (ssh_pki_key_ecdsa_name): Relax guard now that the used function is also provided by the gcrypt backend. (ssh_signature_free): Free ecdsa signature. * src/pki_gcrypt.c (ECDSA_HEADER_{BEGIN,END}): New macros. (privatekey_string_to_buffer): Handle ECDSA keys. (pki_key_ecdsa_to_nid): New function. (pki_key_ecdsa_nid_to_gcrypt_name): Likewise. (pki_key_ecdsa_nid_to_name): Likewise. (pki_key_ecdsa_nid_to_char): Likewise. (pki_key_ecdsa_nid_from_name): Implement. (asn1_oi_to_nid): New function. (b64decode_ecdsa_privatekey): Likewise. (pki_private_key_from_base64): Handle ECDSA keys. (pki_pubkey_build_ecdsa): Implement. (pki_key_dup): Handle ECDSA keys. (pki_key_generate): Likewise. (pki_key_generate_ecdsa): Implement. (pki_key_compare): Handle ECDSA keys. (pki_publickey_to_blob): Likewise. (pki_signature_from_blob): Likewise. (pki_signature_verify): Likewise. (pki_do_sign): Likewise. (pki_do_sign_sessionid): Likewise. Signed-off-by: Justus Winter <justus@g10code.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-03-17cmake: Try to fix FindArgp moduleAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-03-14cmake: detect argp.h on osxAris Adamantiadis1-0/+4
2015-12-30cmake: use check_symbol for (v)snprintfpouete1-2/+3
Updated how snprintf and vsnprintf are discovered by cmake. Visual studio 2015 now include it in the file stdio.h. More information here : https://msdn.microsoft.com/en-us/library/bb531344.aspx Reviewed-By: Aris Adamantiadis <aris@0xbadc0de.be>
2015-12-24CMake: include CheckIncludeFiles for calls to check_include_files.Sebastián Peyrott1-0/+1
2015-10-20agent: Fix agent auth on big endian machinesAndreas Schneider1-0/+1
BUG: https://red.libssh.org/issues/204 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-25cmake: fix EVP detection with gccAris Adamantiadis1-2/+2
2015-09-25crypto: old-fashioned aes_ctr when evp_aes_ctr is missingAris Adamantiadis1-0/+9
2015-07-03cmake: Fix OpenSSL detection in non-standard pathAndreas Schneider1-6/+6
This should fix the detection on Windows. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-07-03cmake: Fail if can't find OpenSSL aes and des headersAndreas Schneider1-17/+25
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-10cmake: Detect network function correctly on WindowsAndreas Schneider1-11/+17
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-10cmake: Check for sys/param.h header fileAndreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-10cmake: Check for arpa/inet.h header fileAndreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-02cmake: Detect __func__ and __FUNCTION__ during configure stepAndreas Schneider1-0/+15
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-08buffer: detect compilers not supporting __VA_ARGS__Aris Adamantiadis1-0/+12
2015-01-13cmake: Fix ntohll and htonll macro detection.Andreas Schneider1-2/+2
BUG: https://red.libssh.org/issues/164 Thanks to Ryan Schmidt! Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-12-17libcrypto: Fix Windows build with ssh_reseed().Andreas Schneider1-0/+1
gettimeofday() is not available on Windows and we need it only in case of forking. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-02-16examples: Add ssh_server_fork exampleAudrius Butkevicius1-0/+1
Signed-off-by: Audrius Butkevicius <audrius.butkevicius@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-02-14cmake: Check for libutil.h on FreeBSD.Andreas Schneider1-0/+1
2014-02-03ConfigureChecks: Stop checking for CMAKE_HAVE_THREADS_LIBRARY.Raphael Kubo da Costa1-5/+3
libssh is primarily interested in whether pthreads is present and can be used. Checking for CMAKE_HAVE_THREADS_LIBRARY is not the same thing, as there are cases where pthread exists but CMAKE_HAVE_THREADS_LIBRARY is not set (for example, FreeBSD passes -DTHREADS_HAVE_PTHREAD_ARG=1 to CMake by default as a way to skip the checks for -lpthread, -lpthreads and others and tell the build system that -pthread is the one expected to be used). Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-11-03examples: fix forktty() warning on OSXAris Adamantiadis1-0/+1
2013-10-30cmake: Check for isblank().Andreas Schneider1-0/+1
2013-07-27cmake: Fix configure check for ntohll and htonll.Andreas Schneider1-9/+14
2013-07-24cmake: Rewrote FindGSSAPI.cmake.Andreas Schneider1-2/+2
2013-07-24cmake: Set HAVE_GETADDRINFO if we have libsocket.Andreas Schneider1-1/+2
This fixes the build on Solaris.
2013-07-23cmake: Check for unistd.h.Andreas Schneider1-0/+1
2013-07-23cmake: If we don't have gssapi libs, disable it.Andreas Schneider1-0/+4
2013-07-23cmake: Check for HAVE_GCC_VOLATILE_MEMORY_PROTECTION.Andreas Schneider1-0/+12
This ensures that the memset call is not optimized out by the compiler (works works with gcc and clang).
2013-07-22cmake: Define HAVE_NTOHLL and HAVE_HTONLL on Windows.Andreas Schneider1-0/+2
2013-07-22cmake: Make sure we check some functions on all platforms.Andreas Schneider1-5/+3
2013-07-22cmake: Check for _strtoui64() on Windows.Andreas Schneider1-0/+2
2013-07-14cmake: Check if we have Thread Local Storage support.Andreas Schneider1-0/+14
2012-12-03BUG 97: Fix strtoull() detection on serveral platforms.Andreas Schneider1-0/+2
2012-12-03BUG 96: Guard ntohll() and htonll prototypes correctly.Andreas Schneider1-0/+1
2012-12-03BUG 97: Remove obsolete hsterror().Andreas Schneider1-6/+0
This function is pretty much obsolete on most platforms. The standard errno should be used. If it is not enough on Windows we should use WSAGetLastError() in future.
2012-10-14cmake: Add better check to detect -fvisibility=hidden.Andreas Schneider1-1/+6
2012-10-12cmake: Fix building with gcrypt support.Andreas Schneider1-6/+9
2012-09-21MSVC Windows and winsock2.hChristophe Baribaud1-2/+2
With Microsoft Visual Studio, winsock2.h shall be included before ws2tcpip.h Signed-off-by: Christophe Baribaud <christophe.baribaud@gmail.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-02-04cmake: Disable gcrypt ECC.Andreas Schneider1-2/+2
2012-02-04cmake: Enable ECC support for GCrypt 1.5.0 or newer.Andreas Schneider1-1/+5
2012-02-04cmake: Add a define to see if we have ecc support.Andreas Schneider1-0/+3
2011-09-23cmake: Fix library linking.Andreas Schneider1-1/+0
2011-09-18gzip: Fix zlib support.Andreas Schneider1-4/+0