Suppose I have a client-server architecture. The client communicates with the server through a secured SSL TCP connection. Both client and server use SSL_write and SSL_read for communication.
Then, the server uses fork and runs on the child branch
close(STDOUT_FILENO)
dup(ssl_socket_from_client)
execvp(...)
Basically, the output of the program will go into the socket, but will it be encrypted and how do I ensure that anything that goes into this socket uses the same procedure of writing as with SSL_write?
Thanks in advance