Kirk Benson wrote:
>
> Yesterday I downloaded the latest OpenSA Win32 source distribution for
> Apache-1.3.12/mod_ssl-2.6.3 and built a debug version. I incorporated the
> 1-line fix I previously suggested to Ralf (original message below) to see if
> the problem was actually fixed. It was not!
[snip]
> It is not clear as well why the child process is not able to write a prompt
> string before reading, at least making it clear what is needed.
>
The point is, I think it does, but that you don't get to see it. There
appears to be some problem with I/O redirection on Win32. If you try
using a password program that mod_ssl can invoke instead of prompting
you to type it, it doesn't work either. Unless if you use option -X.
I've debugged this once. The program is invoked, it gets correct input,
it does it's thing (i.e. prints the password to stdout) but mod_ssl
never gets to see it, and logs an "incorrect password" error, or
something like that. Another example is that I wrote a module of my own,
in which I wanted to have make execute a makefile, and redirect the
output to some file. So I added an instruction
system("make -f my_makefile my_target >my_file.txt").
This works fine when running apache using -X. It does not work in
multi-child mode.
Using CreateProcess() or any other of the possible Win32 variants rather
than system() did not make difference.
As I believe I've reported here before, from as far as I have managed to
figure out, it appears to be an Apache problem, rather than a mod_ssl
problem. There are bug reports in the Apache bug db that mention similar
problems in other modules that one way or the other use redirection.
So people seem to know about this. But no one appears to have a solution
yet.
Regards,
Jan Dries
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]