On Sun, Feb 04, 2001 at 06:12:39PM +0100, Gil Peeters wrote:
> After calling SSL_shutdown() is it still nesc to close the underlying
> socket associated with the SSL Connection?

SSL_shutdown() will only send the close-alert to the peer and switch the
setting of the SSL to "shutdown mode".
It does not touch the underlying connection, so: yes, you have to close the
underlying socket connection yourself.

> Is it also nesc to free() the SSL stuct return from SSL_new() or is that
> done somewher in the shutdown?
Once you have called SSL_shutdown(), you can either free the SSL object
via SSL_free() (call SSL_new() to obtain a new one later) or call
SSL_clear() to reset the SSL object and make it ready for a new connection.

Best regards,
        Lutz
-- 
Lutz Jaenicke                             [EMAIL PROTECTED]
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to