Only have one ClientHello parser, not three.
Between TLS 1.2, TLS 1.3, and the early callback, we've got a lot of
ClientHello parsers. Unify everything on the early callback's parser. As
a side effect, this means we can parse a ClientHello fairly succinctly
from any function which will let us split up ClientHello states where
appropriate.
Change-Id: I2359b75f80926cc7d827570cf33f93029b39e525
Reviewed-on: https://boringssl-review.googlesource.com/10184
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: Adam Langley <agl@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h
index af77f99..d8c472d 100644
--- a/include/openssl/ssl.h
+++ b/include/openssl/ssl.h
@@ -2919,6 +2919,9 @@
SSL *ssl;
const uint8_t *client_hello;
size_t client_hello_len;
+ uint16_t version;
+ const uint8_t *random;
+ size_t random_len;
const uint8_t *session_id;
size_t session_id_len;
const uint8_t *cipher_suites;