Export ssl_client_hello_init for fuzzers. Chromium's fuzzer uses a shared library build. Change-Id: I49a9fef9c0f10694302727d0251005240c30988f Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/46864 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/ssl/internal.h b/ssl/internal.h index e1585c3..6edd26c 100644 --- a/ssl/internal.h +++ b/ssl/internal.h
@@ -2113,8 +2113,11 @@ // ClientHello functions. -bool ssl_client_hello_init(const SSL *ssl, SSL_CLIENT_HELLO *out, - Span<const uint8_t> body); +// ssl_client_hello_init parses |body| as a ClientHello message, excluding the +// message header, and writes the result to |*out|. It returns true on success +// and false on error. This function is exported for testing. +OPENSSL_EXPORT bool ssl_client_hello_init(const SSL *ssl, SSL_CLIENT_HELLO *out, + Span<const uint8_t> body); bool ssl_client_hello_get_extension(const SSL_CLIENT_HELLO *client_hello, CBS *out, uint16_t extension_type);