> > However, fd:number doesn't say anything about what happens when you pass
> > the same fd to -passin and -passout. I assumed it behaved the same way
> > as file:pathname, and so i'm trying to pass both passwords through the
> > same fd, but i'm having problems. Before i wade too deeply into the
> > debugging, i have to ask: Is this supposed to work?
> > 
> 
> I don't think I've ever tested this but looking at the code (in
> apps/apps.c) it *should* work for file: fd: and stdin versions.

Yeah, turns out my bug was due to the fact that Perl automatically sets
the close-on-exec flag on any file descriptors above 2. 

Still, you might want to update the docs to say that you can, indeed, pass
multiple passwords via a fd, just like you can with a temp file.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to