🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Neodome Admin Fri, 19 Apr 2019 00:18
INN 2.6.3 with OpenSSL on OpenBSD-CURRENT
#87939
Author: Neodome Admin
Date: Fri, 19 Apr 2019 00:18
18 lines
1418 bytes
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.

Seems like an issue with version numbering. LibreSSL's version number
(2.9.1) is bigger than 1.1.1, but TLSv1.3 support is still in development.

Thanks.

-- 
Neodome

Re: INN 2.6.3 with OpenSSL on OpenBSD-CURRENT
#87941
Author: Michael Bäuerle
Date: Fri, 19 Apr 2019 07:42
21 lines
1732 bytes
Neodome Admin wrote:
> 
> 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.
> 
> Seems like an issue with version numbering. LibreSSL's version number
> (2.9.1) is bigger than 1.1.1, but TLSv1.3 support is still in development.

Looks like the plan is to name the next OpenSSL major release 3.0.0:
<https://www.openssl.org/docs/OpenSSL300Design.html>

This should allow INN to map the whole range >=2.0.0 and <3.0.0 to
LibreSSL.

Re: INN 2.6.3 with OpenSSL on OpenBSD-CURRENT
#87942
Author: Julien ÉLIE
Date: Fri, 26 Apr 2019 13:55
24 lines
1953 bytes
Hi Michael,
> Looks like the plan is to name the next OpenSSL major release 3.0.0:
> <https://www.openssl.org/docs/OpenSSL300Design.html>

Thanks for the pointer!


> This should allow INN to map the whole range >=2.0.0 and <3.0.0 to
> LibreSSL.

Is it because of LibreSSL?  I hope LibreSSL will not jump to 3.0.0 one 
day...

Incidentally, LibreSSL should really define OPENSSL_VERSION_NUMBER as 
the last version of OpenSSL API they support, and use 
LIBRESSL_VERSION_NUMBER for their own version number...

-- 
Julien ÉLIE

« Cum dolet infirmus, medicus fit pignore firmus ; eo deliberato,
   dolet de pignore dato. »

Re: INN 2.6.3 with OpenSSL on OpenBSD-CURRENT
#87943
Author: Michael Bäuerle
Date: Fri, 26 Apr 2019 15:08
38 lines
2460 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote:
> > 
> > [...]
> > This should allow INN to map the whole range >=2.0.0 and <3.0.0 to
> > LibreSSL.
> 
> Is it because of LibreSSL?  I hope LibreSSL will not jump to 3.0.0 one 
> day...

Quoted from "libressl-2.9.1/include/openssl/opensslv.h":
| 
| [...]
| /* These will change with each release of LibreSSL-portable */
| #define LIBRESSL_VERSION_NUMBER 0x2090100fL
| /*                                    ^ Patch starts here   */
| #define LIBRESSL_VERSION_TEXT   "LibreSSL 2.9.1"
| 
| /* These will never change */
| #define OPENSSL_VERSION_NUMBER	0x20000000L
| #define OPENSSL_VERSION_TEXT	LIBRESSL_VERSION_TEXT
| #define OPENSSL_VERSION_PTEXT	" part of " OPENSSL_VERSION_TEXT

I would interpret "never change" like that (for OPENSSL_VERSION_NUMBER).

The function SSLeay() returns SSLEAY_VERSION_NUMBER (which is defined to
OPENSSL_VERSION_NUMBER).

> Incidentally, LibreSSL should really define OPENSSL_VERSION_NUMBER as 
> the last version of OpenSSL API they support, and use 
> LIBRESSL_VERSION_NUMBER for their own version number...

Unfortunately this is not the case. 

Because LibreSSL has dropped some things maybe the API was never fully
compatible.

Re: INN 2.6.3 with OpenSSL on OpenBSD-CURRENT
#87947
Author: Julien ÉLIE
Date: Sat, 27 Apr 2019 10:10
39 lines
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)

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads