-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify openssh build with patch for mainline
- Loading branch information
Showing
2 changed files
with
56 additions
and
5 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
tests/ci/integration/openssh_patch/aws-lc-openssh-master.patch
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,33 @@ | ||
diff --git a/configure.ac b/configure.ac | ||
index e5da93365..b802d0e60 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -3276,6 +3276,12 @@ fi | ||
# PKCS11/U2F depend on OpenSSL and dlopen(). | ||
enable_pkcs11=yes | ||
enable_sk=yes | ||
+ | ||
+AC_CHECK_DECL([OPENSSL_IS_AWSLC], | ||
+ [enable_pkcs11="disabled; PKCS#11 not supported with AWS-LC"], | ||
+ [], | ||
+ [#include <openssl/base.h>] | ||
+) | ||
if test "x$openssl" != "xyes" ; then | ||
enable_pkcs11="disabled; missing libcrypto" | ||
fi | ||
diff --git a/openbsd-compat/openssl-compat.h b/openbsd-compat/openssl-compat.h | ||
index 2b9780f5e..6b8fff412 100644 | ||
--- a/openbsd-compat/openssl-compat.h | ||
+++ b/openbsd-compat/openssl-compat.h | ||
@@ -55,9 +55,9 @@ void ssh_libcrypto_init(void); | ||
# endif | ||
#endif | ||
|
||
-#ifdef OPENSSL_IS_BORINGSSL | ||
+#if defined(OPENSSL_IS_BORINGSSL) || defined(OPENSSL_IS_AWSLC) | ||
/* | ||
- * BoringSSL (rightly) got rid of the BN_FLG_CONSTTIME flag, along with | ||
+ * BoringSSL and AWS-LC (rightly) got rid of the BN_FLG_CONSTTIME flag, along with | ||
* the entire BN_set_flags() interface. | ||
* https://boringssl.googlesource.com/boringssl/+/0a211dfe9 | ||
*/ |
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