#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "net/tools/transport_security_state_generator/input_file_parsers.h"
#include "net/tools/transport_security_state_generator/pinsets.h"
#include "net/tools/transport_security_state_generator/preloaded_state_generator.h"
#include "net/tools/transport_security_state_generator/transport_security_state_entry.h"
TransportSecurityStateEntries;
Pinsets;
PreloadedStateGenerator;
namespace {
void PrintHelp() { … }
bool CheckForDuplicatePins(const Pinsets& pinsets) { … }
bool CheckCertificatesInPinsets(const Pinsets& pinsets) { … }
bool CheckDuplicateEntries(const TransportSecurityStateEntries& entries) { … }
bool CheckNoopEntries(const TransportSecurityStateEntries& entries) { … }
bool IsLowercaseAlphanumeric(char c) { … }
bool CheckHostnames(const TransportSecurityStateEntries& entries) { … }
}
int main(int argc, char* argv[]) { … }