Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,105 @@
|
||||
From 1e7071684329f23ee3447310d203d193c283979e Mon Sep 17 00:00:00 2001
|
||||
From: James Hilliard <james.hilliard1@gmail.com>
|
||||
Date: Wed, 5 Oct 2022 15:30:32 -0600
|
||||
Subject: [PATCH] Fix missing EVP_PKEY_ED25519 build error on libressl
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Fixes:
|
||||
gensio_filter_certauth.c: In function ‘v3_certauth_add_challenge_rsp’:
|
||||
gensio_filter_certauth.c:838:44: error: ‘EVP_PKEY_ED25519’ undeclared (first use in this function); did you mean ‘EVP_PKEY_DSA1’?
|
||||
838 | if (EVP_PKEY_base_id(sfilter->pkey) == EVP_PKEY_ED25519) {
|
||||
| ^~~~~~~~~~~~~~~~
|
||||
| EVP_PKEY_DSA1
|
||||
gensio_filter_certauth.c:838:44: note: each undeclared identifier is reported only once for each function it appears in
|
||||
gensio_filter_certauth.c: In function ‘certauth_add_challenge_rsp’:
|
||||
gensio_filter_certauth.c:901:44: error: ‘EVP_PKEY_ED25519’ undeclared (first use in this function); did you mean ‘EVP_PKEY_DSA1’?
|
||||
901 | if (EVP_PKEY_base_id(sfilter->pkey) == EVP_PKEY_ED25519)
|
||||
| ^~~~~~~~~~~~~~~~
|
||||
| EVP_PKEY_DSA1
|
||||
gensio_filter_certauth.c: In function ‘certauth_check_challenge’:
|
||||
gensio_filter_certauth.c:1048:35: error: ‘EVP_PKEY_ED25519’ undeclared (first use in this function); did you mean ‘EVP_PKEY_DSA1’?
|
||||
1048 | if (EVP_PKEY_base_id(pkey) == EVP_PKEY_ED25519)
|
||||
| ^~~~~~~~~~~~~~~~
|
||||
| EVP_PKEY_DSA1
|
||||
|
||||
Signed-off-by: Corey Minyard <cminyard@mvista.com>
|
||||
[Retrieved from:
|
||||
https://github.com/cminyard/gensio/commit/1e7071684329f23ee3447310d203d193c283979e]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
lib/gensio_filter_certauth.c | 6 ++++++
|
||||
tools/gtlssh-keygen.c | 11 ++++++++++-
|
||||
2 files changed, 16 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/gensio_filter_certauth.c b/lib/gensio_filter_certauth.c
|
||||
index 642379b6..c4552e79 100644
|
||||
--- a/lib/gensio_filter_certauth.c
|
||||
+++ b/lib/gensio_filter_certauth.c
|
||||
@@ -835,11 +835,13 @@ v3_certauth_add_challenge_rsp(struct certauth_filter *sfilter)
|
||||
unsigned int lenpos, len;
|
||||
int rv = 0;
|
||||
|
||||
+#ifdef EVP_PKEY_ED25519
|
||||
if (EVP_PKEY_base_id(sfilter->pkey) == EVP_PKEY_ED25519) {
|
||||
gca_log_err(sfilter,
|
||||
"Remote end or SSL too old to support ed25519 key");
|
||||
return GE_KEYINVALID;
|
||||
}
|
||||
+#endif
|
||||
|
||||
certauth_write_byte(sfilter, CERTAUTH_CHALLENGE_RSP);
|
||||
lenpos = sfilter->write_buf_len;
|
||||
@@ -898,8 +900,10 @@ certauth_add_challenge_rsp(struct certauth_filter *sfilter)
|
||||
if (sfilter->version < 4 || sfilter->my_version < 4)
|
||||
return v3_certauth_add_challenge_rsp(sfilter);
|
||||
|
||||
+#ifdef EVP_PKEY_ED25519
|
||||
if (EVP_PKEY_base_id(sfilter->pkey) == EVP_PKEY_ED25519)
|
||||
digest = NULL;
|
||||
+#endif
|
||||
|
||||
certauth_write_byte(sfilter, CERTAUTH_CHALLENGE_RSP);
|
||||
lenpos = sfilter->write_buf_len;
|
||||
@@ -1045,8 +1049,10 @@ certauth_check_challenge(struct certauth_filter *sfilter)
|
||||
goto out_nomem;
|
||||
}
|
||||
|
||||
+#ifdef EVP_PKEY_ED25519
|
||||
if (EVP_PKEY_base_id(pkey) == EVP_PKEY_ED25519)
|
||||
digest = NULL;
|
||||
+#endif
|
||||
|
||||
if (!EVP_DigestVerifyInit(sign_ctx, NULL, digest, NULL, pkey)) {
|
||||
gca_logs_err(sfilter, "Digest verify init failed");
|
||||
diff --git a/tools/gtlssh-keygen.c b/tools/gtlssh-keygen.c
|
||||
index c8c28937..0779dd78 100644
|
||||
--- a/tools/gtlssh-keygen.c
|
||||
+++ b/tools/gtlssh-keygen.c
|
||||
@@ -108,7 +108,12 @@ help(const char *progname)
|
||||
P(" The default is your username for normal certificates and\n");
|
||||
P(" the fully qualified domain name for server certificates.\n");
|
||||
P(" --algorithm <algname> - Set the algorithm to use for the key,\n");
|
||||
- P(" either ed25519, rsa or ec. The default is ed25519.\n");
|
||||
+ P(" either ed25519, rsa or ec. ");
|
||||
+#ifdef EVP_PKEY_ED25519
|
||||
+ P("The default is ed25519.\n");
|
||||
+#else
|
||||
+ P("The default is ec.\n");
|
||||
+#endif
|
||||
P(" --force, -f - Don't ask questions, just do the operation. This\n");
|
||||
P(" may overwrite data without asking.\n");
|
||||
P(" --version - Print the version number and exit.\n");
|
||||
@@ -831,7 +836,11 @@ genpkey_ed25519(const char *key)
|
||||
return rc != 0;
|
||||
}
|
||||
|
||||
+#ifdef EVP_PKEY_ED25519
|
||||
static int (*genpkey)(const char *key) = genpkey_ed25519;
|
||||
+#else
|
||||
+static int (*genpkey)(const char *key) = genpkey_ec;
|
||||
+#endif
|
||||
|
||||
/*
|
||||
* Create a single key. If name is NULL, it's a server key, otherwise
|
||||
9
package/gensio/Config.in
Normal file
9
package/gensio/Config.in
Normal file
@@ -0,0 +1,9 @@
|
||||
config BR2_PACKAGE_GENSIO
|
||||
bool "gensio"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
help
|
||||
A library to abstract stream I/O like serial port, TCP,
|
||||
telnet, UDP, SSL, IPMI SOL, etc.
|
||||
|
||||
https://github.com/cminyard/gensio
|
||||
7
package/gensio/gensio.hash
Normal file
7
package/gensio/gensio.hash
Normal file
@@ -0,0 +1,7 @@
|
||||
# From https://sourceforge.net/projects/ser2net/files/ser2net/
|
||||
md5 c8d65e1809ed5cd1138fa309e3ab0e94 gensio-2.5.5.tar.gz
|
||||
sha1 076fc8324dedb658972a88c738131a409968e2ba gensio-2.5.5.tar.gz
|
||||
# Locally computed:
|
||||
sha256 63c5fff536efd080fb7bc7fa084331c19fc64abd42b7f2bec86bd77b4fd10840 gensio-2.5.5.tar.gz
|
||||
sha256 501f3108e6c03e5a0a5585ebaaa369171aead5319cd0a7a4dc1f66211c1f09f1 COPYING
|
||||
sha256 dcac7d447dd81ab96d28dce00a07a6486e623f7ded94e2a2a8e83312405cdf89 COPYING.LIB
|
||||
67
package/gensio/gensio.mk
Normal file
67
package/gensio/gensio.mk
Normal file
@@ -0,0 +1,67 @@
|
||||
################################################################################
|
||||
#
|
||||
# gensio
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GENSIO_VERSION = 2.5.5
|
||||
GENSIO_SITE = http://downloads.sourceforge.net/project/ser2net/ser2net
|
||||
GENSIO_LICENSE = LGPL-2.1+ (library), GPL-2.0+ (tools)
|
||||
GENSIO_LICENSE_FILES = COPYING.LIB COPYING
|
||||
GENSIO_INSTALL_STAGING = YES
|
||||
GENSIO_CONF_OPTS = \
|
||||
--without-swig \
|
||||
--without-python
|
||||
|
||||
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
||||
GENSIO_CONF_OPTS += --with-cplusplus
|
||||
else
|
||||
GENSIO_CONF_OPTS += --without-cplusplus
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ALSA_LIB_PCM),y)
|
||||
GENSIO_DEPENDENCIES += alsa-lib
|
||||
GENSIO_CONF_OPTS += --with-alsa
|
||||
else
|
||||
GENSIO_CONF_OPTS += --without-alsa
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_AVAHI_LIBAVAHI_CLIENT),y)
|
||||
GENSIO_DEPENDENCIES += avahi
|
||||
GENSIO_CONF_OPTS += --with-mdns
|
||||
else
|
||||
GENSIO_CONF_OPTS += --without-mdns
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
|
||||
GENSIO_DEPENDENCIES += host-pkgconf libglib2
|
||||
GENSIO_CONF_OPTS += --with-glib
|
||||
else
|
||||
GENSIO_CONF_OPTS += --without-glib
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENIPMI),y)
|
||||
GENSIO_DEPENDENCIES += openipmi
|
||||
GENSIO_CONF_OPTS += --with-openipmi
|
||||
else
|
||||
GENSIO_CONF_OPTS += --without-openipmi
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
GENSIO_DEPENDENCIES += host-pkgconf openssl
|
||||
GENSIO_CONF_OPTS += --with-openssl
|
||||
else
|
||||
GENSIO_CONF_OPTS += --without-openssl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
GENSIO_CONF_ENV += LIBS=-latomic
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
GENSIO_CONF_OPTS += --with-pthreads
|
||||
else
|
||||
GENSIO_CONF_OPTS += --without-pthreads
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user