1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-10-30 12:05:34 +03:00
Commit Graph

5 Commits

Author SHA1 Message Date
Viktor Szakats
4c241d5c65 cmake: cleanup mbedTLS version detection more
- lowercase, underscored local variables.
- fix `find_library()` to use the multiple names passed.
- rely more on `find_package_handle_standard_args()`.
  Logic based on our `Findwolfssl.cmake`.
- delete ignored/unused `MBEDTLS_LIBRARY_DIR`.
- revert CI configuration to use `MBEDCRTYPO_LIBRARY`.
- clarify inputs/outputs in comment header.
- use variable for regex.
- formatting.

Follow-up to 4159467507 #1192

Closes #1196
2023-09-29 13:49:09 +00:00
Viktor Szakats
4159467507 cmake: improve/fix mbedTLS detection
- libssh2 needs the crypto lib only, stop dealing with the rest.

- simplify logic.

- drop hard-wired toolchain specific options that broke with e.g. MSVC.

  Reported by: AR Visions
  Fixes #1191

- add mbedTLS version detection for recent releases.

- merge custom detection results display into a single line.

- shorten mbedTLS configuration in macOS CI job.

Used the curl mbedTLS detection logic for ideas:
a8c773845f/CMake/FindMbedTLS.cmake

Closes #1192
2023-09-28 18:06:13 +00:00
Daniel Stenberg
f6aa31f48f provide SPDX identifiers
- All files have prominent copyright and SPDX identifier
- If not embedded in the file, in the .reuse/dep5 file
- All used licenses are in LICENSES/ (not shipped in tarballs)
- A new REUSE CI job verify that all files are OK

Assisted-by: Viktor Szakats

Closes #1084
2023-06-07 08:18:55 +02:00
Viktor Szakats
17801d2064 tidy-up: fix more nits
- fix indentation errors.
- reformat `cmake/FindmbedTLS.cmake`
- replace a macro with a variable in `example/sftp_RW_nonblock.c`.
- delete macOS macro `_DARWIN_USE_64_BIT_INODE` from the
  OS/400 config header, `os400/libssh2_config.h`.
- fix other minor nits.

Closes #983
2023-04-18 08:41:20 +00:00
wildart
186f1a2d75 crypto: add support for the mbedTLS backend
Closes #132
2016-09-27 08:06:29 +02:00