diff options
author | David Benjamin <davidben@google.com> | 2016-09-20 03:15:07 +0300 |
---|---|---|
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | 2016-09-21 21:55:27 +0300 |
commit | c027999c28db2f448ea5795798080f6a5aaa01d6 (patch) | |
tree | d1fcf0e0da7e40bac904f29919d32f8be68b932d /ssl/d1_both.c | |
parent | d2ba8891e07522396efc7bca00a12e3cc37e6ba0 (diff) |
Take the version parameter out of ssl_do_msg_callback.
This will make it a little easier to store the normalized version rather
than the wire version. Also document the V2ClientHello behavior.
Change-Id: I5ce9ccce44ca48be2e60ddf293c0fab6bba1356e
Reviewed-on: https://boringssl-review.googlesource.com/11121
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
Diffstat (limited to 'ssl/d1_both.c')
-rw-r--r-- | ssl/d1_both.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/ssl/d1_both.c b/ssl/d1_both.c index 5ea29da4..7bb2de28 100644 --- a/ssl/d1_both.c +++ b/ssl/d1_both.c @@ -437,8 +437,8 @@ int dtls1_get_message(SSL *ssl, int msg_type, return -1; } - ssl_do_msg_callback(ssl, 0 /* read */, ssl->version, SSL3_RT_HANDSHAKE, - frag->data, ssl->init_num + DTLS1_HM_HEADER_LENGTH); + ssl_do_msg_callback(ssl, 0 /* read */, SSL3_RT_HANDSHAKE, frag->data, + ssl->init_num + DTLS1_HM_HEADER_LENGTH); return 1; } @@ -567,9 +567,8 @@ static int dtls1_write_change_cipher_spec(SSL *ssl, return ret; } - ssl_do_msg_callback(ssl, 1 /* write */, ssl->version, - SSL3_RT_CHANGE_CIPHER_SPEC, kChangeCipherSpec, - sizeof(kChangeCipherSpec)); + ssl_do_msg_callback(ssl, 1 /* write */, SSL3_RT_CHANGE_CIPHER_SPEC, + kChangeCipherSpec, sizeof(kChangeCipherSpec)); return 1; } @@ -667,8 +666,7 @@ static int dtls1_do_handshake_write(SSL *ssl, size_t *out_offset, offset += todo; } while (CBS_len(&body) != 0); - ssl_do_msg_callback(ssl, 1 /* write */, ssl->version, SSL3_RT_HANDSHAKE, in, - len); + ssl_do_msg_callback(ssl, 1 /* write */, SSL3_RT_HANDSHAKE, in, len); ret = 1; |