Article View: news.software.nntp
Article #76106Re: SSL support in INN 2.5
From: Julien ÉLIE
Date: Fri, 04 May 2007 18:50
Date: Fri, 04 May 2007 18:50
95 lines
4628 bytes
4628 bytes
En réponse à Kachun Lee :
> *** line.c.orig Thu May 3 02:07:33 2007
> --- line.c Thu May 3 15:01:39 2007
Well, I tried to patch my INN CURRENT version but it failed.
Indeed, nntp worked very well, but not nntp/ssl: I couldn't
connect any longer and timeouted.
May 4 20:38:06 news nnrpd[28088]: starttls: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits) no authentication
May 4 20:38:06 news nnrpd[28088]: amontpellier-157-1-178-202.w90-27.abo.wanadoo.fr (90.27.33.202) connect
May 4 20:38:06 news nnrpd[28088]: amontpellier-157-1-178-202.w90-27.abo.wanadoo.fr timeout short
May 4 20:38:06 news nnrpd[28088]: amontpellier-157-1-178-202.w90-27.abo.wanadoo.fr times user 0.044 system 0.012 idle 0.000 elapsed 0.272
May 4 20:38:06 news nnrpd[28088]: amontpellier-157-1-178-202.w90-27.abo.wanadoo.fr time 274 nntpwrite 0(2)
May 4 20:38:07 news nnrpd[28089]: starttls: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits) no authentication
May 4 20:38:07 news nnrpd[28089]: amontpellier-157-1-178-202.w90-27.abo.wanadoo.fr (90.27.33.202) connect
May 4 20:38:07 news nnrpd[28089]: amontpellier-157-1-178-202.w90-27.abo.wanadoo.fr timeout short
May 4 20:38:07 news nnrpd[28089]: amontpellier-157-1-178-202.w90-27.abo.wanadoo.fr times user 0.040 system 0.016 idle 0.000 elapsed 0.188
May 4 20:38:07 news nnrpd[28089]: amontpellier-157-1-178-202.w90-27.abo.wanadoo.fr time 189 nntpwrite 0(2)
May 4 20:38:08 news nnrpd[28090]: starttls: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits) no authentication
[...]
> ***************
> *** 141,146 ****
> --- 141,150 ----
> line->allocated = newsize;
> }
> }
> +
> + #ifdef HAVE_SSL
> + if (tls_conn == NULL) {
> + #endif
> /* wait for activity on stdin, updating timer stats as we
> * go */
> do {
All right for that part.
> ***************
> *** 157,162 ****
> --- 161,169 ----
> syswarn("%s can't select", ClientHost);
> return RTtimeout;
> }
> + #ifdef HAVE_SSL
> + }
> + #endif
I do not see that. Which version of INN do you use?
In both 2.4.x and 2.5, I see:
/* wait for activity on stdin, updating timer stats as we
* go */
do {
struct timeval t;
FD_ZERO(&rmask);
FD_SET(STDIN_FILENO, &rmask);
t.tv_sec = timeout;
t.tv_usec = 0;
TMRstart(TMR_IDLE);
i = select(STDIN_FILENO + 1, &rmask, NULL, NULL, &t);
TMRstop(TMR_IDLE);
if (i == -1 && errno != EINTR) {
syswarn("%s can't select", Client.host);
return RTtimeout;
}
} while (i == -1);
/* if stdin didn't select, we must have timed out */
if (i == 0 || !FD_ISSET(STDIN_FILENO, &rmask))
return RTtimeout;
count = line_doread(where,
line->allocated - (where - line->start));
I did that:
> return RTtimeout;
> }
> } while (i == -1);
> + #ifdef HAVE_SSL
> + }
> + #endif
But I believe it is not what you did.
So where is the end of your do/while statement?
--
Julien ÉLIE
« Ta vie ne tient qu'à un fil, Téléféric ! » (Astérix)
Technical Details
Message-ID:
<f1fv9o$v5h$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!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.albasani.net!news.trigofacile.com!not-for-mailReferences:
<f0g32k$83v$1@guepard.ecp.fr> <f1dptn05nb@news5.newsguy.com>Show Full Headers
Complete Article Headers
Message-ID: <f1fv9o$v5h$1@news.trigofacile.com> Subject: Re: SSL support in INN 2.5 Date: Fri, 04 May 2007 20:50:31 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <f0g32k$83v$1@guepard.ecp.fr> <f1dptn05nb@news5.newsguy.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!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.albasani.net!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: Gens Iulia -- http://www.trigofacile.com/ Lines: 95 NNTP-Posting-Host: amontpellier-157-1-178-202.w90-27.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1178304632 31921 90.27.33.202 (4 May 2007 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Fri, 4 May 2007 18:50:32 +0000 (UTC) User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) In-Reply-To: <f1dptn05nb@news5.newsguy.com>