FreeBSD Bugzilla – Attachment 226692 Details for
Bug 257403
net/freeradius3: fails to build with libressl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix building and dynamic linking with libressl
0001-net-freeradius3-fix-building-with-libressl.patch (text/plain), 3.42 KB, created by
Felix Palmen
on 2021-07-25 22:13:30 UTC
(
hide
)
Description:
fix building and dynamic linking with libressl
Filename:
MIME Type:
Creator:
Felix Palmen
Created:
2021-07-25 22:13:30 UTC
Size:
3.42 KB
patch
obsolete
>From eade30d6525f0cbf0046911166d233d30d9d5ddf Mon Sep 17 00:00:00 2001 >From: Felix Palmen <felix@palmen-it.de> >Date: Sun, 25 Jul 2021 10:12:57 +0200 >Subject: [PATCH] net/freeradius3: fix building with libressl > >--- > net/freeradius3/files/patch-src_main_cb.c | 20 +++++++++++++++++++ > net/freeradius3/files/patch-src_main_tls.c | 20 +++++++++++++++++++ > .../patch-src_modules_rlm__pap_rlm__pap.c | 11 ++++++++++ > 3 files changed, 51 insertions(+) > create mode 100644 net/freeradius3/files/patch-src_main_cb.c > create mode 100644 net/freeradius3/files/patch-src_main_tls.c > create mode 100644 net/freeradius3/files/patch-src_modules_rlm__pap_rlm__pap.c > >diff --git a/net/freeradius3/files/patch-src_main_cb.c b/net/freeradius3/files/patch-src_main_cb.c >new file mode 100644 >index 000000000000..81d01f6cc2ff >--- /dev/null >+++ b/net/freeradius3/files/patch-src_main_cb.c >@@ -0,0 +1,20 @@ >+--- src/main/cb.c.orig 2021-07-25 08:01:13 UTC >++++ src/main/cb.c >+@@ -64,7 +64,7 @@ void cbtls_info(SSL const *s, int where, int ret) >+ /* >+ * After a ClientHello, list all the proposed ciphers from the client >+ */ >+-#if OPENSSL_VERSION_NUMBER >= 0x10100000L >++#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) >+ if (SSL_get_state(s) == TLS_ST_SR_CLNT_HELLO) { >+ int i; >+ int num_ciphers; >+@@ -174,7 +174,7 @@ void cbtls_msg(int write_p, int msg_version, int conte >+ state->info.alert_level = 0x00; >+ state->info.alert_description = 0x00; >+ >+-#if OPENSSL_VERSION_NUMBER >= 0x10101000L >++#if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER) >+ } else if (content_type == SSL3_RT_INNER_CONTENT_TYPE && buf[0] == SSL3_RT_APPLICATION_DATA) { >+ /* let tls_ack_handler set application_data */ >+ state->info.content_type = SSL3_RT_HANDSHAKE; >diff --git a/net/freeradius3/files/patch-src_main_tls.c b/net/freeradius3/files/patch-src_main_tls.c >new file mode 100644 >index 000000000000..3119ce18bfa1 >--- /dev/null >+++ b/net/freeradius3/files/patch-src_main_tls.c >@@ -0,0 +1,20 @@ >+--- src/main/tls.c.orig 2021-07-25 08:06:53 UTC >++++ src/main/tls.c >+@@ -1602,7 +1602,7 @@ static int load_dh_params(SSL_CTX *ctx, char *file) >+ * >+ * Change suggested by @t8m >+ */ >+-#if OPENSSL_VERSION_NUMBER >= 0x10101000L >++#if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER) >+ if (FIPS_mode() > 0) { >+ WARN(LOG_PREFIX ": Ignoring user-selected DH parameters in FIPS mode. Using defaults."); >+ return 0; >+@@ -4020,7 +4020,7 @@ post_ca: >+ * disable early data. >+ * >+ */ >+-#if OPENSSL_VERSION_NUMBER >= 0x10101000L >++#if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER) >+ SSL_CTX_set_max_early_data(ctx, 0); >+ #endif >+ >diff --git a/net/freeradius3/files/patch-src_modules_rlm__pap_rlm__pap.c b/net/freeradius3/files/patch-src_modules_rlm__pap_rlm__pap.c >new file mode 100644 >index 000000000000..c4358e1d27af >--- /dev/null >+++ b/net/freeradius3/files/patch-src_modules_rlm__pap_rlm__pap.c >@@ -0,0 +1,11 @@ >+--- src/modules/rlm_pap/rlm_pap.c.orig 2021-07-25 21:23:17 UTC >++++ src/modules/rlm_pap/rlm_pap.c >+@@ -927,7 +927,7 @@ static inline rlm_rcode_t CC_HINT(nonnull) pap_auth_pb >+ digest_len = SHA512_DIGEST_LENGTH; >+ break; >+ >+-# if OPENSSL_VERSION_NUMBER >= 0x10101000L >++# if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER) >+ case PW_SSHA3_224_PASSWORD: >+ evp_md = EVP_sha3_224(); >+ digest_len = SHA224_DIGEST_LENGTH; >-- >2.32.0 >
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 257403
:
226672
| 226692