- added and tested auth_payload_t class
[strongswan.git] / Source / charon / encoding / payloads / encodings.c
1 /**
2 * @file encodings.c
3 *
4 * @brief Encoding types of fields in a IKEv2 payload.
5 *
6 */
7
8 /*
9 * Copyright (C) 2005 Jan Hutter, Martin Willi
10 * Hochschule fuer Technik Rapperswil
11 *
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at your
15 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 * for more details.
21 */
22
23
24 #include "encodings.h"
25
26
27 mapping_t encoding_type_m[] = {
28 {U_INT_4, "U_INT_4"},
29 {U_INT_8, "U_INT_8"},
30 {U_INT_16, "U_INT_16"},
31 {U_INT_32, "U_INT_32"},
32 {U_INT_64, "U_INT_64"},
33 {IKE_SPI, "IKE_SPI"},
34 {RESERVED_BIT, "RESERVED_BIT"},
35 {RESERVED_BYTE, "RESERVED_BYTE"},
36 {FLAG, "FLAG"},
37 {PAYLOAD_LENGTH, "PAYLOAD_LENGTH"},
38 {HEADER_LENGTH, "HEADER_LENGTH"},
39 {SPI_SIZE, "SPI_SIZE"},
40 {SPI, "SPI"},
41 {KEY_EXCHANGE_DATA, "KEY_EXCHANGE_DATA"},
42 {NOTIFICATION_DATA, "NOTIFICATION_DATA"},
43 {PROPOSALS, "PROPOSALS"},
44 {TRANSFORMS, "TRANSFORMS"},
45 {TRANSFORM_ATTRIBUTES, "TRANSFORM_ATTRIBUTES"},
46 {ATTRIBUTE_FORMAT, "ATTRIBUTE_FORMAT"},
47 {ATTRIBUTE_TYPE, "ATTRIBUTE_TYPE"},
48 {ATTRIBUTE_LENGTH_OR_VALUE, "ATTRIBUTE_LENGTH_OR_VALUE"},
49 {ATTRIBUTE_VALUE, "ATTRIBUTE_VALUE"},
50 {NONCE_DATA, "NONCE_DATA"},
51 {ID_DATA, "ID_DATA"},
52 {AUTH_DATA, "AUTH_DATA"},
53 {ENCRYPTED_DATA, "ENCRYPTED_DATA"},
54 {MAPPING_END, NULL}
55 };