// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef QUICHE_QUIC_CORE_CRYPTO_CRYPTO_PROTOCOL_H_ #define QUICHE_QUIC_CORE_CRYPTO_CRYPTO_PROTOCOL_H_ #include <cstddef> #include <string> #include "quiche/quic/core/quic_tag.h" // Version and Crypto tags are written to the wire with a big-endian // representation of the name of the tag. For example // the client hello tag (CHLO) will be written as the // following 4 bytes: 'C' 'H' 'L' 'O'. Since it is // stored in memory as a little endian uint32_t, we need // to reverse the order of the bytes. // // We use a macro to ensure that no static initialisers are created. Use the // MakeQuicTag function in normal code. #define TAG … quic // namespace quic #endif // QUICHE_QUIC_CORE_CRYPTO_CRYPTO_PROTOCOL_H_