atom feed5 messages in net.sourceforge.lists.courier-imapRe: [Courier-imap] SSL problem on DEC...
FromSent OnAttachments
"Gábor Bérczi (Gabucino)"Apr 24, 2007 8:07 am 
"Gábor Bérczi (Gabucino)"Apr 24, 2007 10:18 am 
"Gábor Bérczi (Gabucino)"Apr 25, 2007 12:11 am.diff
Sam VarshavchikApr 25, 2007 4:33 pm 
"Gábor Bérczi (Gabucino)"Apr 25, 2007 10:58 pm 
Subject:Re: [Courier-imap] SSL problem on DEC OSF/1
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Apr 25, 2007 4:33:35 pm
List:net.sourceforge.lists.courier-imap

Gábor Bérczi (Gabucino) writes:

Confirmed, and fixed. starttls.c doesn't check if randomness is available, and neither does it seed it when it isn't.

This is a bug in courier-imap !

The attached dirty patch makes starttls work on Digital UNIX 4.0 (Tru64 4.0) amongst more others.

… and stops it from working everywhere else, since you return from main() if the rand generator is initialized.

This code does not belong in main(). It belongs in tls_create(), right after everything else gets initialized.

Additionally, I'd prefer to see configure check the existence of resource.h, getrusage, and struct rusage, and only compile the relevant code if it can actually be compiled.