summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/base/ssl_false_start_blacklist_process.cc17
1 files changed, 5 insertions, 12 deletions
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<uint8>(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;
}
}