gnutls_session_t object can be shared by two processes after a fork,
one sending, the other receiving. In that case rehandshakes,
cannot and must not be performed. As with threads, the termination of a session should be
handled by the sender process using gnutls_bye with
and the receiving process waiting for a return value of zero.