blob: d36f772441dc4cca28b583ff6e15c39d50ac6c61 [file] [log] [blame]
Yingdi Yu0c3e5912015-03-17 14:22:38 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -07003 * Copyright (c) 2014-2017, Regents of the University of California
Yingdi Yu0c3e5912015-03-17 14:22:38 -07004 *
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -07005 * This file is part of NDN DeLorean, An Authentication System for Data Archives in
6 * Named Data Networking. See AUTHORS.md for complete list of NDN DeLorean authors
7 * and contributors.
Yingdi Yu0c3e5912015-03-17 14:22:38 -07008 *
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -07009 * NDN DeLorean is free software: you can redistribute it and/or modify it under
10 * the terms of the GNU General Public License as published by the Free Software
11 * Foundation, either version 3 of the License, or (at your option) any later
12 * version.
Yingdi Yu0c3e5912015-03-17 14:22:38 -070013 *
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -070014 * NDN DeLorean is distributed in the hope that it will be useful, but WITHOUT ANY
15 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
16 * PARTICULAR PURPOSE. See the GNU General Public License for more details.
Yingdi Yu0c3e5912015-03-17 14:22:38 -070017 *
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -070018 * You should have received a copy of the GNU General Public License along with NDN
19 * DeLorean, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
Yingdi Yu0c3e5912015-03-17 14:22:38 -070020 */
21
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -070022#ifndef NDN_DELOREAN_CORE_TLV_HPP
23#define NDN_DELOREAN_CORE_TLV_HPP
Yingdi Yu0c3e5912015-03-17 14:22:38 -070024
25namespace nsl {
26namespace tlv {
27
28/**
29 * @brief Type value of leaf related TLVs
30 */
31enum {
32 LoggerLeaf = 128, // 0x80
33 Timestamp = 129, // 0x81
34 DataSeqNo = 130, // 0x82
Yingdi Yube4aeed2015-03-23 13:28:58 -070035 SignerSeqNo = 131, // 0x83
36
37 LogResponse = 144, // 0x90
38 ResultCode = 145, // 0x91
39 ResultMsg = 146 // 0x92
40};
41
42enum {
43 LogResponse_Accept = 0,
44 LogResponse_Error_Tree = 1,
45 LogResponse_Error_Policy = 2,
46 LogResponse_Error_Signer = 3
Yingdi Yu0c3e5912015-03-17 14:22:38 -070047};
48
49} // namespace tlv
50} // namespace nsl
51
Alexander Afanasyevbe998ac2017-05-06 13:11:42 -070052#endif // NDN_DELOREAN_CORE_TLV_HPP