// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/40284755): Remove this and spanify to fix the errors. #pragma allow_unsafe_buffers #endif // Dumps the contents of a QUIC crypto handshake message in a human readable // format. // // Usage: crypto_message_printer_bin <hex of message> #include <iostream> #include "base/command_line.h" #include "base/strings/string_number_conversions.h" #include "net/third_party/quiche/src/quiche/quic/core/crypto/crypto_framer.h" Perspective; cerr; cout; endl; namespace net { class CryptoMessagePrinter : public quic::CryptoFramerVisitorInterface { … }; } // namespace net int main(int argc, char* argv[]) { … }