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.