- fixed bad SVN issues, should all work again now
[strongswan.git] / Source / charon / payloads / payload.c
1 /**
2 * @file payload.c
3 *
4 * @brief Generic payload interface
5 *
6 *
7 */
8
9 /*
10 * Copyright (C) 2005 Jan Hutter, Martin Willi
11 * Hochschule fuer Technik Rapperswil
12 *
13 * This program is free software; you can redistribute it and/or modify it
14 * under the terms of the GNU General Public License as published by the
15 * Free Software Foundation; either version 2 of the License, or (at your
16 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
17 *
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 * for more details.
22 */
23
24
25 #include "payload.h"
26
27
28
29
30
31
32
33
34
35
36
37
38
39 /*
40 * build the mappings for payload_type_t
41 */
42 mapping_t payload_type_t_mappings[] = {
43 {NO_PAYLOAD, "NO_PAYLOAD"},
44 {SECURITY_ASSOCIATION, "SECURITY_ASSOCIATION"},
45 {KEY_EXCHANGE, "KEY_EXCHANGE"},
46 {ID_INITIATOR, "ID_INITIATOR"},
47 {ID_RESPONDER, "ID_RESPONDER"},
48 {CERTIFICATE, "CERTIFICATE"},
49 {CERTIFICATE_REQUEST, "CERTIFICATE_REQUEST"},
50 {AUTHENTICATION, "AUTHENTICATION"},
51 {NONCE, "NONCE"},
52 {NOTIFY, "NOTIFY"},
53 {DELETE, "DELETE"},
54 {VENDOR_ID, "VENDOR_ID"},
55 {TRAFFIC_SELECTOR_INITIATOR, "TRAFFIC_SELECTOR_INITIATOR"},
56 {TRAFFIC_SELECTOR_RESPONDER, "TRAFFIC_SELECTOR_RESPONDER"},
57 {ENCRYPTED, "ENCRYPTED"},
58 {CONFIGURATION, "CONFIGURATION"},
59 {EXTENSIBLE_AUTHENTICATION, "EXTENSIBLE_AUTHENTICATION"},
60 {HEADER, "HEADER"},
61 {MAPPING_END, NULL}
62 };
63