diff options
author | Bodo Möller <bodo@openssl.org> | 2001-10-15 19:49:25 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-10-15 19:49:25 +0000 |
commit | 48948d53b6f61aa14bc5eab33f67f124c43175ff (patch) | |
tree | 9b766b938ef6e59fb5f37210b25fd78370fa5bb6 /ssl/s3_clnt.c | |
parent | dbec19622e2cc6ae50b303ece36d15810192d022 (diff) |
Change ssl3_get_message and the functions using it so that complete
'Handshake' protocol structures are kept in memory, including
'msg_type' and 'length'.
(This is in preparation of future support for callbacks that get to
peek at handshake messages and the like.)
Diffstat (limited to 'ssl/s3_clnt.c')
-rw-r--r-- | ssl/s3_clnt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index 67dc5b05d5..9791a0d8e8 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -554,7 +554,7 @@ static int ssl3_get_server_hello(SSL *s) &ok); if (!ok) return((int)n); - d=p=(unsigned char *)s->init_buf->data; + d=p=(unsigned char *)s->init_msg; if ((p[0] != (s->version>>8)) || (p[1] != (s->version&0xff))) { @@ -710,7 +710,7 @@ static int ssl3_get_server_certificate(SSL *s) SSLerr(SSL_F_SSL3_GET_SERVER_CERTIFICATE,SSL_R_BAD_MESSAGE_TYPE); goto f_err; } - d=p=(unsigned char *)s->init_buf->data; + d=p=(unsigned char *)s->init_msg; if ((sk=sk_X509_new_null()) == NULL) { @@ -895,7 +895,7 @@ static int ssl3_get_key_exchange(SSL *s) return(1); } - param=p=(unsigned char *)s->init_buf->data; + param=p=(unsigned char *)s->init_msg; if (s->session->sess_cert != NULL) { @@ -1218,7 +1218,7 @@ static int ssl3_get_certificate_request(SSL *s) } } - d=p=(unsigned char *)s->init_buf->data; + d=p=(unsigned char *)s->init_msg; if ((ca_sk=sk_X509_NAME_new(ca_dn_cmp)) == NULL) { |