So, here's my dilemma, I'm working on a self-update mechanism in C++, and I can't figure out how to get OpenSSL to accept an int socket that's already been initialized in the previous version, and renegotiate the connection.
I've tried SSL_connect()
on the off chance that'd work again, SSL_renegotiate
and SSL_do_handshake()
, but I can't get anything working.
I imagine it's because OpenSSL doesn't know that the socket is already set up as TLS, but how do I tell it that?
In summary, I'm trying to re-establish a TLS connection after inheriting the raw 'int' socket descriptor from a previous version of the same program via an exec*() function.
Thanks.