Article View: news.software.nntp
Article #87947Re: INN 2.6.3 with OpenSSL on OpenBSD-CURRENT
From: Julien ÉLIE
Date: Sat, 27 Apr 2019 10:10
Date: Sat, 27 Apr 2019 10:10
39 lines
2595 bytes
2595 bytes
Hi Neodome,
> Had problems compiling INN 2.6.3 with OpenSSL on OpenBSD-CURRENT.
>
> Seems that OpenSSL in OpenBSD is actually LibreSSL 2.9.1, and it does not
> have support for TLSv1.3 yet, so function SSL_CTX_set_ciphersuites
> referenced in inn-2.6.3/nnrpd/tls.c does not exist.
>
> Since I was not planning to use TLSv1.3 I just commented it out for now, so
> it will always return an error if tls_ciphers13 != NULL.
Would the following patch work with OpenBSD?
I suggest adding a check for the definition of SSL_OP_NO_TLSv1_3.
--- tls.c (révision 10337)
+++ tls.c (copie de travail)
@@ -601,8 +601,10 @@
}
}
-#if OPENSSL_VERSION_NUMBER >= 0x01010100fL
- /* New API added in OpenSSL 1.1.1 for TLSv1.3 cipher suites. */
+#if OPENSSL_VERSION_NUMBER >= 0x01010100fL && defined(SSL_OP_NO_TLSv1_3)
+ /* New API added in OpenSSL 1.1.1 for TLSv1.3 cipher suites.
+ * Also check that SSL_OP_NO_TLSv1_3 is defined (to fix a build
+ * issue with LibreSSL). */
if (tls_ciphers13 != NULL) {
if (SSL_CTX_set_ciphersuites(CTX, tls_ciphers13) == 0) {
syslog(L_ERROR, "TLS engine: cannot set ciphersuites");
--
Julien ÉLIE
« Plus j'y pense, plus je me dis qu'il n'y a aucune raison pour que le
carré de l'hypoténuse soit égal à la somme des carrés des deux
autres côtés. » (San-Antonio)
Technical Details
Message-ID:
<qa19r5$nfo$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<q9b43q$cb5$1@neodome.net>Show Full Headers
Complete Article Headers
Message-ID: <qa19r5$nfo$1@news.trigofacile.com> Subject: Re: INN 2.6.3 with OpenSSL on OpenBSD-CURRENT Date: Sat, 27 Apr 2019 12:10:40 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <q9b43q$cb5$1@neodome.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 27 Apr 2019 10:10:45 -0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb0800a77500f0a27d7903261a54.ipv6.abo.wanadoo.fr:2a01:cb08:a7:7500:f0a2:7d79:326:1a54"; logging-data="24056"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 In-Reply-To: <q9b43q$cb5$1@neodome.net> Content-Language: fr X-Received-Bytes: 2602 X-Received-Body-CRC: 1312000815