Paul Keogh <[EMAIL PROTECTED]>:

> There are a number of references to s->s3->tmp.message_type
> throughout the SSL code. I guess its an optimisation mechanism
> but what exactly is its function ? 

Some messages are optional in the SSL 3.0/TLS 1.0 handshake.  Because
of this, the message type of the handshake message being processed is
stored.  Look at ssl3_get_server_certificate, for example:
It tries to read any handshake message (-1 in the third parameter
to ssl3_get_server_certificate) and then looks at message_type
to see what it got -- if it's SSL3_MT_SERVER_KEY_EXCHANGE,
then there's no server certificate and the protocol proceeds;
if it's SSL3_MT_CERTIFICATE, then ssl3_get_server_certificate
does its job; otherwise, there's an error.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to