FreeBSD Bugzilla – Attachment 184116 Details for
Bug 219763
net/freeradius3: 3.0.4.14 fails to build on FreeBSD 11.1-Prerelease with libressl due to missing psk_identity
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch against head
freeradius.patch (text/plain), 2.31 KB, created by
Franco Fichtner
on 2017-07-06 10:00:56 UTC
(
hide
)
Description:
patch against head
Filename:
MIME Type:
Creator:
Franco Fichtner
Created:
2017-07-06 10:00:56 UTC
Size:
2.31 KB
patch
obsolete
>From 170c217916e6f247e12219bfba4d72585b1fcb0e Mon Sep 17 00:00:00 2001 >From: Franco Fichtner <franco.fichtner@hardenedbsd.org> >Date: Tue, 4 Jul 2017 20:03:06 +0200 >Subject: [PATCH] net/freeradius3: unbreak LibreSSL builds > >FreeBSD fiddled with the patch, ultimately removed an incomplete >one and ever since 3.0.14 hasn't been able to build. > >Signed-off-by: Franco Fichtner <franco.fichtner@hardenedbsd.org> >Taken from: OpenBSD >--- > net/freeradius3/files/patch-src__main__tls.c | 48 ++++++++++++++++++++++++++++ > 1 file changed, 48 insertions(+) > create mode 100644 net/freeradius3/files/patch-src__main__tls.c > >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 0000000000000..1fce4e7261556 >--- /dev/null >+++ b/net/freeradius3/files/patch-src__main__tls.c >@@ -0,0 +1,48 @@ >+$OpenBSD: patch-src_main_tls_c,v 1.2 2017/05/30 13:12:30 sthen Exp $ >+Index: src/main/tls.c >+--- src/main/tls.c.orig 2017-05-26 18:11:20 UTC >++++ src/main/tls.c >+@@ -2031,7 +2031,7 @@ int cbtls_verify(int ok, X509_STORE_CTX >+ char cn_str[1024]; >+ char buf[64]; >+ X509 *client_cert; >+-#if OPENSSL_VERSION_NUMBER >= 0x10100000L >++#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) >+ const STACK_OF(X509_EXTENSION) *ext_list; >+ #else >+ STACK_OF(X509_EXTENSION) *ext_list; >+@@ -3038,6 +3038,7 @@ post_ca: >+ SSL_CTX_set_verify_depth(ctx, conf->verify_depth); >+ } >+ >++#ifndef LIBRESSL_VERSION_NUMBER >+ /* Load randomness */ >+ if (conf->random_file) { >+ if (!(RAND_load_file(conf->random_file, 1024*10))) { >+@@ -3045,6 +3046,7 @@ post_ca: >+ return NULL; >+ } >+ } >++#endif >+ >+ /* >+ * Set the cipher list if we were told to >+@@ -3166,6 +3168,7 @@ fr_tls_server_conf_t *tls_server_conf_pa >+ * Only check for certificate things if we don't have a >+ * PSK query. >+ */ >++#ifdef PSK_MAX_IDENTITY_LEN >+ if (conf->psk_identity) { >+ if (conf->private_key_file) { >+ WARN(LOG_PREFIX ": Ignoring private key file due to psk_identity being used"); >+@@ -3175,7 +3178,9 @@ fr_tls_server_conf_t *tls_server_conf_pa >+ WARN(LOG_PREFIX ": Ignoring certificate file due to psk_identity being used"); >+ } >+ >+- } else { >++ } else >++#endif >++ { >+ if (!conf->private_key_file) { >+ ERROR(LOG_PREFIX ": TLS Server requires a private key file"); >+ goto error;
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
Flags:
franco
:
maintainer-approval?
Actions:
View
|
Diff
Attachments on
bug 219763
: 184116