Skip to content

Commit

Permalink
Fix libssh+openssl3 & s390x
Browse files Browse the repository at this point in the history
  • Loading branch information
bkuschel committed Sep 29, 2023
1 parent 4490217 commit 09c7af7
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 7 deletions.
3 changes: 0 additions & 3 deletions contrib/libssh-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ if (OS_LINUX)
elseif (ARCH_PPC64LE)
target_include_directories(_ssh PRIVATE "${ClickHouse_SOURCE_DIR}/contrib/libssh-cmake/linux/ppc64le")
elseif (ARCH_S390X)
# Like ppc64le but with HAVE_OPENSSL_FIPS_MODE undefined. This is because the OpenSSL used by s390x doesn't support
# FIPS_mode(). Besides that, the custom s390x/config.h only exists to make things compile without additional ifdefs.
# With high probability, libssl with OpenSSL on s390x is broken.
target_include_directories(_ssh PRIVATE "${ClickHouse_SOURCE_DIR}/contrib/libssh-cmake/linux/s390x")
elseif (ARCH_RISCV64)
target_include_directories(_ssh PRIVATE "${ClickHouse_SOURCE_DIR}/contrib/libssh-cmake/linux/riscv64")
Expand Down
2 changes: 2 additions & 0 deletions contrib/libssh-cmake/darwin/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@
/* #undef HAVE_OPENSSL_EVP_KDF_CTX_NEW_ID */

/* Define to 1 if you have the `FIPS_mode' function. */
#if USE_BORINGSSL
#define HAVE_OPENSSL_FIPS_MODE 1
#endif

/* Define to 1 if you have the `EVP_DigestSign' function. */
#define HAVE_OPENSSL_EVP_DIGESTSIGN 1
Expand Down
2 changes: 2 additions & 0 deletions contrib/libssh-cmake/freebsd/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@
/* #undef HAVE_OPENSSL_EVP_KDF_CTX_NEW_ID */

/* Define to 1 if you have the `FIPS_mode' function. */
#if USE_BORINGSSL
#define HAVE_OPENSSL_FIPS_MODE 1
#endif

/* Define to 1 if you have the `EVP_DigestSign' function. */
#define HAVE_OPENSSL_EVP_DIGESTSIGN 1
Expand Down
2 changes: 2 additions & 0 deletions contrib/libssh-cmake/linux/aarch64-musl/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@
/* #undef HAVE_OPENSSL_EVP_KDF_CTX_NEW_ID */

/* Define to 1 if you have the `FIPS_mode' function. */
#if USE_BORINGSSL
#define HAVE_OPENSSL_FIPS_MODE 1
#endif

/* Define to 1 if you have the `EVP_DigestSign' function. */
#define HAVE_OPENSSL_EVP_DIGESTSIGN 1
Expand Down
2 changes: 2 additions & 0 deletions contrib/libssh-cmake/linux/aarch64/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@
/* #undef HAVE_OPENSSL_EVP_KDF_CTX_NEW_ID */

/* Define to 1 if you have the `FIPS_mode' function. */
#if USE_BORINGSSL
#define HAVE_OPENSSL_FIPS_MODE 1
#endif

/* Define to 1 if you have the `EVP_DigestSign' function. */
#define HAVE_OPENSSL_EVP_DIGESTSIGN 1
Expand Down
2 changes: 2 additions & 0 deletions contrib/libssh-cmake/linux/ppc64le/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@
/* #undef HAVE_OPENSSL_EVP_KDF_CTX_NEW_ID */

/* Define to 1 if you have the `FIPS_mode' function. */
#if USE_BORINGSSL
#define HAVE_OPENSSL_FIPS_MODE 1
#endif

/* Define to 1 if you have the `EVP_DigestSign' function. */
#define HAVE_OPENSSL_EVP_DIGESTSIGN 1
Expand Down
4 changes: 3 additions & 1 deletion contrib/libssh-cmake/linux/riscv64/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@
/* #undef HAVE_OPENSSL_EVP_KDF_CTX_NEW_ID */

/* Define to 1 if you have the `FIPS_mode' function. */
/* #undef HAVE_OPENSSL_FIPS_MODE */
#if USE_BORINGSSL
#define HAVE_OPENSSL_FIPS_MODE 1
#endif

/* Define to 1 if you have the `EVP_DigestSign' function. */
#define HAVE_OPENSSL_EVP_DIGESTSIGN 1
Expand Down
8 changes: 5 additions & 3 deletions contrib/libssh-cmake/linux/s390x/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#define VERSION "0.9.7"

#define SYSCONFDIR "etc"
#define BINARYDIR "/home/ubuntu/workdir/ClickHouse/build/ppc64le"
#define BINARYDIR "/home/ubuntu/workdir/ClickHouse/build/s390x"
#define SOURCEDIR "/home/ubuntu/workdir/ClickHouse"

/* Global bind configuration file path */
Expand Down Expand Up @@ -127,7 +127,9 @@
/* #undef HAVE_OPENSSL_EVP_KDF_CTX_NEW_ID */

/* Define to 1 if you have the `FIPS_mode' function. */
/* #undef HAVE_OPENSSL_FIPS_MODE */
#if USE_BORINGSSL
#define HAVE_OPENSSL_FIPS_MODE 1
#endif

/* Define to 1 if you have the `EVP_DigestSign' function. */
#define HAVE_OPENSSL_EVP_DIGESTSIGN 1
Expand Down Expand Up @@ -282,4 +284,4 @@

/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
/* #undef WORDS_BIGENDIAN */
#define WORDS_BIGENDIAN 1
2 changes: 2 additions & 0 deletions contrib/libssh-cmake/linux/x86-64-musl/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@
/* #undef HAVE_OPENSSL_EVP_KDF_CTX_NEW_ID */

/* Define to 1 if you have the `FIPS_mode' function. */
#if USE_BORINGSSL
#define HAVE_OPENSSL_FIPS_MODE 1
#endif

/* Define to 1 if you have the `EVP_DigestSign' function. */
#define HAVE_OPENSSL_EVP_DIGESTSIGN 1
Expand Down
2 changes: 2 additions & 0 deletions contrib/libssh-cmake/linux/x86-64/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@
/* #undef HAVE_OPENSSL_EVP_KDF_CTX_NEW_ID */

/* Define to 1 if you have the `FIPS_mode' function. */
#if USE_BORINGSSL
#define HAVE_OPENSSL_FIPS_MODE 1
#endif

/* Define to 1 if you have the `EVP_DigestSign' function. */
#define HAVE_OPENSSL_EVP_DIGESTSIGN 1
Expand Down

0 comments on commit 09c7af7

Please sign in to comment.