Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
103 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -123,7 +123,6 @@ | ||
init.c | ||
@@ -134,7 +134,6 @@ | ||
kex.c | ||
known_hosts.c | ||
knownhosts.c | ||
- legacy.c | ||
libcrypto.c | ||
log.c | ||
match.c | ||
messages.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -224,6 +224,7 @@ | ||
${LIBSSH_PRIVATE_INCLUDE_DIRS} | ||
) | ||
@@ -293,6 +293,7 @@ | ||
) | ||
endif (WITH_SYMBOL_VERSIONING AND ABIMAP_FOUND) | ||
|
||
+if(OFF) | ||
add_library(${LIBSSH_SHARED_LIBRARY} SHARED ${libssh_SRCS}) | ||
|
||
target_link_libraries(${LIBSSH_SHARED_LIBRARY} ${LIBSSH_LINK_LIBRARIES}) | ||
@@ -258,6 +259,7 @@ | ||
@@ -338,6 +339,7 @@ | ||
ARCHIVE DESTINATION ${LIB_INSTALL_DIR} | ||
COMPONENT libraries | ||
) | ||
+endif() | ||
|
||
if (WITH_STATIC_LIB) | ||
if (BUILD_STATIC_LIB) | ||
add_library(${LIBSSH_STATIC_LIBRARY} STATIC ${libssh_SRCS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- a/src/libcrypto-compat.c | ||
+++ b/src/libcrypto-compat.c | ||
@@ -319,7 +319,7 @@ | ||
return 1; | ||
} | ||
|
||
-#ifndef HAVE_OPENSSL_EVP_CIPHER_CTX_NEW | ||
+#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x009080bfL | ||
EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void) | ||
{ | ||
return OPENSSL_zalloc(sizeof(EVP_CIPHER_CTX)); | ||
--- a/src/libcrypto.c | ||
+++ b/src/libcrypto.c | ||
@@ -630,11 +630,11 @@ | ||
* Same for num, which is being used to store the current offset in blocksize in CTR | ||
* function. | ||
*/ | ||
-#ifdef HAVE_OPENSSL_CRYPTO_CTR128_ENCRYPT | ||
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L | ||
CRYPTO_ctr128_encrypt(in, out, len, &cipher->aes_key->key, cipher->aes_key->IV, tmp_buffer, &num, (block128_f)AES_encrypt); | ||
#else | ||
AES_ctr128_encrypt(in, out, len, &cipher->aes_key->key, cipher->aes_key->IV, tmp_buffer, &num); | ||
-#endif /* HAVE_OPENSSL_CRYPTO_CTR128_ENCRYPT */ | ||
+#endif /* OPENSSL_VERSION_NUMBER >= 0x10100000L */ | ||
} | ||
|
||
static void aes_ctr_cleanup(struct ssh_cipher_struct *cipher){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
54e86dd5dc20e5367e58f3caab337ce37675f863f80df85b6b1614966a337095 | ||
d17f1267b4a5e46c0fbe66d39a3e702b8cefe788928f2eb6e339a18bb00b1924 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
libssh http://mirrors.kodi.tv/build-deps/sources/libssh-0.7.5.tar.xz | ||
libssh http://mirrors.kodi.tv/build-deps/sources/libssh-0.8.1.tar.xz |