Initial Commit
- initial default booting image
This commit is contained in:
37
package/libressl/0001-always-expose-SSL_OP_NO_TLSv1_3.patch
Normal file
37
package/libressl/0001-always-expose-SSL_OP_NO_TLSv1_3.patch
Normal file
@@ -0,0 +1,37 @@
|
||||
always expose SSL_OP_NO_TLSv1_3
|
||||
|
||||
like in OpenSSL, see https://github.com/openssl/openssl/blob/master/include/openssl/ssl.h.in#L399
|
||||
|
||||
like SSL_OP_NO_DTLSv1_2, see commit "Expose various DTLSv1.2 specific functions and defines"
|
||||
|
||||
this change fixes the compilation of vsftpd 3.0.4 & 3.0.5, which fails with the following error:
|
||||
```
|
||||
ssl.c: In function 'ssl_init':
|
||||
ssl.c:98:18: error: 'SSL_OP_NO_TLSv1_3' undeclared (first use in this function); did you mean 'SSL_OP_NO_TLSv1_1'?
|
||||
```
|
||||
|
||||
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
|
||||
Fetched from: https://github.com/libressl-portable/openbsd/pull/124
|
||||
---
|
||||
include/openssl/ssl.h | 4 ----
|
||||
1 file changed, 4 deletions(-)
|
||||
|
||||
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h
|
||||
index 46f24b2ea..4048a6e63 100644
|
||||
--- a/include/openssl/ssl.h
|
||||
+++ b/include/openssl/ssl.h
|
||||
@@ -412,11 +412,7 @@ typedef int (*tls_session_secret_cb_fn)(SSL *s, void *secret, int *secret_len,
|
||||
#define SSL_OP_NO_TLSv1 0x04000000L
|
||||
#define SSL_OP_NO_TLSv1_2 0x08000000L
|
||||
#define SSL_OP_NO_TLSv1_1 0x10000000L
|
||||
-
|
||||
-#if defined(LIBRESSL_HAS_TLS1_3) || defined(LIBRESSL_INTERNAL)
|
||||
#define SSL_OP_NO_TLSv1_3 0x20000000L
|
||||
-#endif
|
||||
-
|
||||
#define SSL_OP_NO_DTLSv1 0x40000000L
|
||||
#define SSL_OP_NO_DTLSv1_2 0x80000000L
|
||||
|
||||
--
|
||||
2.30.2
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
From e6c7de3f03c51fbdcf5ad88bf12fe9e128521f0d Mon Sep 17 00:00:00 2001
|
||||
From: OPNA2608 <opna2608@protonmail.com>
|
||||
Date: Fri, 19 Jul 2024 11:41:46 +0200
|
||||
Subject: [PATCH] CMakeLists.txt: Fix HOST variable for ppc64
|
||||
|
||||
The code here defined HOST_PPC64, but the rest of the build system expects HOST_POWERPC64.
|
||||
|
||||
Upstream: https://github.com/libressl/portable/commit/e6c7de3f03c51fbdcf5ad88bf12fe9e128521f0d
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index c496ad97b5..670aa9a1a0 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -373,7 +373,7 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "mips")
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "powerpc")
|
||||
set(HOST_POWERPC true)
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64")
|
||||
- set(HOST_PPC64 true)
|
||||
+ set(HOST_POWERPC64 true)
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "riscv64")
|
||||
set(HOST_RISCV64 true)
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "sparc64")
|
||||
9
package/libressl/Config.in
Normal file
9
package/libressl/Config.in
Normal file
@@ -0,0 +1,9 @@
|
||||
if BR2_PACKAGE_LIBRESSL
|
||||
|
||||
config BR2_PACKAGE_LIBRESSL_BIN
|
||||
bool "openssl binary"
|
||||
help
|
||||
Install the openssl binary to the target file system. This is
|
||||
a command line tool for doing various cryptographic stuff.
|
||||
|
||||
endif
|
||||
4
package/libressl/libressl.hash
Normal file
4
package/libressl/libressl.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/SHA256
|
||||
sha256 7b031dac64a59eb6ee3304f7ffb75dad33ab8c9d279c847f92c89fb846068f97 libressl-3.9.2.tar.gz
|
||||
# Locally computed
|
||||
sha256 5c63613f008f16a9c0025c096bbd736cecf720494d121b5c5203e0ec6e5955b1 COPYING
|
||||
28
package/libressl/libressl.mk
Normal file
28
package/libressl/libressl.mk
Normal file
@@ -0,0 +1,28 @@
|
||||
################################################################################
|
||||
#
|
||||
# libressl
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBRESSL_VERSION = 3.9.2
|
||||
LIBRESSL_SITE = https://ftp.openbsd.org/pub/OpenBSD/LibreSSL
|
||||
LIBRESSL_LICENSE = ISC (new additions), OpenSSL or SSLeay (original OpenSSL code)
|
||||
LIBRESSL_LICENSE_FILES = COPYING
|
||||
LIBRESSL_CPE_ID_VENDOR = openbsd
|
||||
LIBRESSL_INSTALL_STAGING = YES
|
||||
LIBRESSL_CONF_OPTS = -DLIBRESSL_TESTS=OFF -DOPENSSLDIR="/etc/ssl"
|
||||
|
||||
# Otherwise fails to build with undefined reference to
|
||||
# `bn_mul_add_words'
|
||||
ifeq ($(BR2_powerpc)$(BR2_mips64)$(BR2_mips64el),y)
|
||||
LIBRESSL_CONF_OPTS += -DENABLE_ASM=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBRESSL_BIN),)
|
||||
define LIBRESSL_REMOVE_BIN
|
||||
$(RM) -f $(TARGET_DIR)/usr/bin/openssl
|
||||
endef
|
||||
LIBRESSL_POST_INSTALL_TARGET_HOOKS += LIBRESSL_REMOVE_BIN
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user