More miscellaneous bools.
Change-Id: I0960fed68ef39e4523ef9f2ba89ffa92f09c4dce
Reviewed-on: https://boringssl-review.googlesource.com/19945
Reviewed-by: Steven Valdez <svaldez@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
diff --git a/ssl/tls13_client.cc b/ssl/tls13_client.cc
index df79960..f91da26 100644
--- a/ssl/tls13_client.cc
+++ b/ssl/tls13_client.cc
@@ -74,7 +74,7 @@
return ssl_hs_error;
}
- int have_cookie, have_key_share;
+ bool have_cookie, have_key_share;
CBS cookie, key_share;
const SSL_EXTENSION_TYPE ext_types[] = {
{TLSEXT_TYPE_key_share, &have_key_share, &key_share},
@@ -226,7 +226,8 @@
}
// Parse out the extensions.
- int have_key_share = 0, have_pre_shared_key = 0, have_supported_versions = 0;
+ bool have_key_share = false, have_pre_shared_key = false,
+ have_supported_versions = false;
CBS key_share, pre_shared_key, supported_versions;
const SSL_EXTENSION_TYPE ext_types[] = {
{TLSEXT_TYPE_key_share, &have_key_share, &key_share},
@@ -811,7 +812,7 @@
}
// Parse out the extensions.
- int have_early_data_info = 0;
+ bool have_early_data_info = false;
CBS early_data_info;
const SSL_EXTENSION_TYPE ext_types[] = {
{TLSEXT_TYPE_ticket_early_data_info, &have_early_data_info,