Dan Kegel <[EMAIL PROTECTED]>:
> Bodo Moeller:
>> Dan Kegel <[EMAIL PROTECTED]>:

>>> I just realized I have to accept either SSLV2 or SSLV3 (or TLS)
>>> connections, so I switched from SSLv3_server_method() to
>>> SSLv23_server_method().  But oops, that doesn't support SSL_peek()!
>>> What to do?

>> Use SSL_accept first.  It will change the SSL object's method
>> during the handshake.

> Like this?  Or are there unpleasant consequences to this
> (e.g. does SSL_accept block, or something silly like that)?
> This does seem to work in my one little test.
> 
> --- ssl/s23_srvr.c.orig       Wed Mar  7 09:58:57 2001
> +++ ssl/s23_srvr.c    Wed Mar  7 12:54:02 2001

Why modify the library?  Simply call SSL_accept() in the application.
(Your are right that it is strange that the SSL23_methods support
SSL_read but not SSL_peek, but this should be fixed in s23_lib.c
and not in s23_srvr.c.)
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to