Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 550576 Details for
Bug 668314
dev-embedded/u-boot-tools-2018.05 libressl support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
libressl patch
u-boot-2018.05-libressl.patch (text/plain), 2.40 KB, created by
Sandino Araico Sanchez
on 2018-10-11 13:23:19 UTC
(
hide
)
Description:
libressl patch
Filename:
MIME Type:
Creator:
Sandino Araico Sanchez
Created:
2018-10-11 13:23:19 UTC
Size:
2.40 KB
patch
obsolete
>diff -puriN u-boot-2018.05.orig/lib/rsa/rsa-sign.c u-boot-2018.05/lib/rsa/rsa-sign.c >--- u-boot-2018.05.orig/lib/rsa/rsa-sign.c 2018-05-07 10:32:36.000000000 -0500 >+++ u-boot-2018.05/lib/rsa/rsa-sign.c 2018-10-09 05:12:07.000000000 -0500 >@@ -16,11 +16,13 @@ > #include <openssl/evp.h> > #include <openssl/engine.h> > >-#if OPENSSL_VERSION_NUMBER >= 0x10000000L >+#if OPENSSL_VERSION_NUMBER >= 0x10000000L || \ >+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) > #define HAVE_ERR_REMOVE_THREAD_STATE > #endif > >-#if OPENSSL_VERSION_NUMBER < 0x10100000L >+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ >+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) > static void RSA_get0_key(const RSA *r, > const BIGNUM **n, const BIGNUM **e, const BIGNUM **d) > { >@@ -299,7 +301,8 @@ static int rsa_init(void) > { > int ret; > >-#if OPENSSL_VERSION_NUMBER < 0x10100000L >+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ >+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) > ret = SSL_library_init(); > #else > ret = OPENSSL_init_ssl(0, NULL); >@@ -308,7 +311,8 @@ static int rsa_init(void) > fprintf(stderr, "Failure to init SSL library\n"); > return -1; > } >-#if OPENSSL_VERSION_NUMBER < 0x10100000L >+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ >+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) > SSL_load_error_strings(); > > OpenSSL_add_all_algorithms(); >@@ -354,7 +358,8 @@ err_set_rsa: > err_engine_init: > ENGINE_free(e); > err_engine_by_id: >-#if OPENSSL_VERSION_NUMBER < 0x10100000L >+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ >+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) > ENGINE_cleanup(); > #endif > return ret; >@@ -362,7 +367,8 @@ err_engine_by_id: > > static void rsa_remove(void) > { >-#if OPENSSL_VERSION_NUMBER < 0x10100000L >+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ >+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) > CRYPTO_cleanup_all_ex_data(); > ERR_free_strings(); > #ifdef HAVE_ERR_REMOVE_THREAD_STATE >@@ -432,7 +438,8 @@ static int rsa_sign_with_key(RSA *rsa, s > ret = rsa_err("Could not obtain signature"); > goto err_sign; > } >- #if OPENSSL_VERSION_NUMBER < 0x10100000L >+ #if OPENSSL_VERSION_NUMBER < 0x10100000L || \ >+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) > EVP_MD_CTX_cleanup(context); > #else > EVP_MD_CTX_reset(context);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 668314
: 550576 |
550578