Windows build fixes.
Windows doesn't have ssize_t, sadly. There's SSIZE_T, but defining an
OPENSSL_SSIZE_T seems worse than just using an int.
Change-Id: I09bb5aa03f96da78b619e551f92ed52ce24d9f3f
Reviewed-on: https://boringssl-review.googlesource.com/1352
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c
index 8e77ef2..df7b3fb 100644
--- a/ssl/t1_lib.c
+++ b/ssl/t1_lib.c
@@ -1653,7 +1653,7 @@
* returns: 1 on success. */
static int tls1_alpn_handle_client_hello(SSL *s, CBS *cbs, int *out_alert)
{
- CBS protocol_name_list;
+ CBS protocol_name_list, protocol_name_list_copy;
const unsigned char *selected;
unsigned char selected_len;
int r;
@@ -1667,7 +1667,7 @@
goto parse_error;
/* Validate the protocol list. */
- CBS protocol_name_list_copy = protocol_name_list;
+ protocol_name_list_copy = protocol_name_list;
while (CBS_len(&protocol_name_list_copy) > 0)
{
CBS protocol_name;