From 645f82d5e7c5d580e3f795af70d0bdbe7872b880 Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Mon, 8 Nov 2010 18:49:18 +0000 Subject: net: use a char array for the False Start blacklist. Windows fails to build if any strings are > 64K long. Since the next blacklist update breaks this limit, we have to switch the blacklist to being a char array. BUG=none TEST=net_unittests git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65402 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/ssl_false_start_blacklist_process.cc | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'net') diff --git a/net/base/ssl_false_start_blacklist_process.cc b/net/base/ssl_false_start_blacklist_process.cc index a20dd1e..e538fdb 100644 --- a/net/base/ssl_false_start_blacklist_process.cc +++ b/net/base/ssl_false_start_blacklist_process.cc @@ -238,23 +238,16 @@ int main(int argc, char** argv) { fprintf(out, " %u,\n", (unsigned) table_data.size()); fprintf(out, "};\n\n"); - fprintf(out, "const char SSLFalseStartBlacklist::kHashData[] = \n"); + fprintf(out, "const char SSLFalseStartBlacklist::kHashData[] = {\n"); for (unsigned i = 0, line_length = 0; i < table_data.size(); i++) { if (line_length == 0) - fprintf(out, " \""); + fprintf(out, " "); uint8 c = static_cast(table_data[i]); - if (c < 32 || c > 127 || c == '"') { - fprintf(out, "\\%c%c%c", '0' + ((c >> 6) & 7), '0' + ((c >> 3) & 7), - '0' + (c & 7)); - line_length += 4; - } else { - fprintf(out, "%c", c); - line_length++; - } + line_length += fprintf(out, "%d, ", c); if (i == table_data.size() - 1) { - fprintf(out, "\";\n"); + fprintf(out, "\n};\n"); } else if (line_length >= 70) { - fprintf(out, "\"\n"); + fprintf(out, "\n"); line_length = 0; } } -- cgit v1.1