Yoram Zahavi <[EMAIL PROTECTED]> in epsilon.openssl.dev:
> Thanks for the explanation, I liked the SSL_set_session(s, NULL) usage. Any
> reasons for calling it *before* SSL_clear(s) ?
> I think you better call it after the call to SSL_clear(s). Otherwise, the
> current session is already freed by SSL_set_session(s, NULL), and cannot be
> referenced by SSL_clear(s) for caching considerations.
Good point. My reason for calling SSL_set_session(s, NULL) first was
that otherwise SSL_clear(s) would not reset the method pointer (i.e.,
the protocol version). But you are right, and
SSL_clear(s);
SSL_set_session(s, NULL);
should be OK: In this case, SSL_set_session() will reset the method
pointer.
--
Bodo M�ller <[EMAIL PROTECTED]>
PGP http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/moeller/0x36d2c658.html
* TU Darmstadt, Theoretische Informatik, Alexanderstr. 10, D-64283 Darmstadt
* Tel. +49-6151-16-6628, Fax +49-6151-16-6036
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]