🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #76162

Re: SSL support in INN 2.5

#76162
From: Julien ÉLIE
Date: Wed, 06 Jun 2007 16:09
94 lines
6612 bytes
En réponse à Julien ÉLIE :
> I see in « tls.c » that the DH parameters are hardcoded but obviously the
> DH keys are... ephemeral!
> So I believe the easiest thing to do is to log somewhere the buffers used
> in SSL_read() and SSL_write() and then see what happens.  I shall try.

All right.  I got it.
Well, I do not post logs for what is good (I did lots of tests) but only
an example of what happens with STABLE and CURRENT INN2.


## SSL connection

Jun  6 17:34:35 news nnrpd[7791]: 200 news.trigofacile.com InterNetNews NNRP server INN 2.5.0 (20070421 snapshot for TrigoFACILE) ready (posting ok).
Jun  6 17:34:35 news nnrpd[7791]: MODE READER
Jun  6 17:34:35 news nnrpd[7791]: 200 news.trigofacile.com InterNetNews NNRP server INN 2.5.0 (20070421 snapshot for TrigoFACILE) ready (posting ok).
Jun  6 17:34:35 news nnrpd[7791]: AUTHINFO user xxx
Jun  6 17:34:35 news nnrpd[7791]: 381 PASS required
Jun  6 17:34:35 news nnrpd[7791]: AUTHINFO pass xxx
Jun  6 17:34:35 news nnrpd[7791]: 281 Ok

### Some stuff (read and post)
### The last post:

Jun  6 17:37:15 news nnrpd[7791]: POST
Jun  6 17:37:15 news nnrpd[7791]: 340 Ok, recommended ID <f46kbb$7jf$1@news.trigofacile.com>
Jun  6 17:37:15 news nnrpd[7791]: Date: Wed, 06 Jun 2007 17:37:15 +0200  From: =?ISO-8859-15?Q?Julien_=C9LIE?=   <iulius@nom-de-mon-site.com.invalid>  Organization: Gens Iulia -- http://www.trigofacile.com/  User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)  MIME-Version: 1.0  Newsgroups: trigofacile.test  Subject: hi  Content-Type: text/plain; charset=ISO-8859-15  Content-Transfer-Encoding: 8bit      A. D. VIII ID. IVN. A. MMDXVI P. E. R.    Le huitième jour avant les Ides de juin          --   Julien ÉLIE    « -- Que lui est-il arrivé ?
Jun  6 17:37:15 news nnrpd[7791]: Un choc moral ?    -- Oui, avec un menhir. » (Astérix)
Jun  6 17:37:15 news nnrpd[7791]: .
Jun  6 17:37:15 news nnrpd[7791]: 240 Article posted <f46kbb$7jf$1@news.trigofacile.com>

### I post another one (it follows the last 17:37:15 line).
### Note that the connection is closed for 7791 and opened for 8251.

Jun  6 17:42:32 news nnrpd[7791]: QUIT
Jun  6 17:42:32 news nnrpd[7791]: 205 .
Jun  6 17:42:32 news nnrpd[8251]: 200 news.trigofacile.com InterNetNews NNRP server INN 2.5.0 (20070421 snapshot for TrigoFACILE) ready (posting ok).
Jun  6 17:42:32 news nnrpd[8251]: MODE READER
Jun  6 17:42:32 news nnrpd[8251]: 200 news.trigofacile.com InterNetNews NNRP server INN 2.5.0 (20070421 snapshot for TrigoFACILE) ready (posting ok).
Jun  6 17:42:32 news nnrpd[8251]: AUTHINFO user xxx
Jun  6 17:42:32 news nnrpd[8251]: 381 PASS required
Jun  6 17:42:32 news nnrpd[8251]: AUTHINFO pass xxx
Jun  6 17:42:32 news nnrpd[8251]: 281 Ok
Jun  6 17:42:32 news nnrpd[8251]: POST
Jun  6 17:42:32 news nnrpd[8251]: 340 Ok, recommended ID <f46kl8$81r$1@news.trigofacile.com>
Jun  6 17:42:32 news nnrpd[8251]: Date: Wed, 06 Jun 2007 17:42:32 +0200  From: =?ISO-8859-15?Q?Julien_=C9LIE?=   <iulius@nom-de-mon-site.com.invalid>  Organization: Gens Iulia -- http://www.trigofacile.com/  User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)  MIME-Version: 1.0  Newsgroups: trigofacile.test  Subject: testee  Content-Type: text/plain; charset=ISO-8859-15  Content-Transfer-Encoding: 8bit      A. D. VIII ID. IVN. A. MMDXVI P. E. R.    Le huitième jour avant les Ides de juin          --   Julien ÉLIE    « -- Que lui est-il arriv

### Thunderbird hangs (one minute).
### A dialog box appears, telling me the article could not be posted.  I click « OK ».

Jun  6 17:43:33 news nnrpd[8251]: é ? Un choc moral ?    -- Oui, avec un menhir. » (Astérix)  .   arrivivJulien ÉLIE    « -- Que lui est-il arrivivivÉLIE    « -- Que lui est-il arriv  --   Julien ÉLIE    « -- Que lui est-il arriv lui est-il arrivE    « -- Que lui est-il arrivue lui est-il arriv       --   Julien ÉLIE    « -- Que lui est-il arrivin          --   Julien ÉLIE    « -- Que lui est-il arrivulien ÉLIE    « -- Que lui est-il arrivulien ÉLIE    « -- Que lui est-il arrivulien ÉLIE    « -- Que lui est-il arriv
Jun  6 17:43:33 news nnrpd[8251]: 240 Article posted <f46kl8$81r$1@news.trigofacile.com>
Jun  6 17:43:33 news nnrpd[8251]: .
Jun  6 17:43:33 news nnrpd[8251]: 205 .

### And, obviously, the article was correctly posted.



Well, I do not know how to interpret the last four lines...

The first is obtained thanks to line.c:


static ssize_t
line_doread(void *p, size_t len)
{
    ssize_t n;

    do {
#ifdef HAVE_SSL
    if (tls_conn) {
        int err;
        do {
        n = SSL_read(tls_conn, p, len);
+       syslog(L_ERROR, "%s", p);


I wonder what happened to the line (is the part after the «  .  » really sent
by Thunderbird?  maybe it is an artefact from my writing the buffer p).

And I do not know why « . » in the third line.  And also why the
answer « 205 . » to such a command.

If you have any idea regarding that problem (a INN one or a Thunderbird one?
why does it occur?), it would be great.

Regards,

-- 
Julien ÉLIE

« -- Que lui est-il arrivé ? Un choc moral ?
  -- Oui, avec un menhir. » (Astérix)
Technical Details
Message-ID: <f46m7n$9ji$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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!feeder.news-service.com!feeder4.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!138.195.8.3.MISMATCH!news.ecp.fr!news.trigofacile.com!not-for-mail
References: <f0g32k$83v$1@guepard.ecp.fr> <f1dptn05nb@news5.newsguy.com> <f1fdge$62j$1@news.trigofacile.com> <f1gdt902mqc@news2.newsguy.com> <f1igj3$5nu$1@news.trigofacile.com> <f3und8$1e9$1@news.trigofacile.com> <f46j3l$vmt$4@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <f46m7n$9ji$1@news.trigofacile.com>
Subject: Re: SSL support in INN 2.5
Date: Wed, 06 Jun 2007 18:09:27 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <f0g32k$83v$1@guepard.ecp.fr> <f1dptn05nb@news5.newsguy.com> <f1fdge$62j$1@news.trigofacile.com> <f1gdt902mqc@news2.newsguy.com> <f1igj3$5nu$1@news.trigofacile.com> <f3und8$1e9$1@news.trigofacile.com> <f46j3l$vmt$4@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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!feeder.news-service.com!feeder4.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!138.195.8.3.MISMATCH!news.ecp.fr!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: Gens Iulia -- http://www.trigofacile.com/
Lines: 94
NNTP-Posting-Host: goret.via.ecp.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1181146228 9842 138.195.145.22 (6 Jun 2007
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Wed, 6 Jun 2007 16:10:28 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)
In-Reply-To: <f46j3l$vmt$4@news.trigofacile.com>