> dup2(sock,1);
> dup2(sock,2);
> execvp("command",args);
>
> i want to do the exact same thing using SSL sockets.
You cannot. There is too much state in user-space (i.e., data structures
within the openssl library).
Your best bet is to open pipes (or socketpair) and have your program
do the SSL translation to the child program that it forks/execs.
A simple exec will not work.
/r$
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]