4 * @brief Generic payload interface
10 * Copyright (C) 2005 Jan Hutter, Martin Willi
11 * Hochschule fuer Technik Rapperswil
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>.
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
27 #include "ike_header.h"
34 * build the mappings for payload_type_t
36 mapping_t payload_type_t_mappings
[] = {
37 {NO_PAYLOAD
, "NO_PAYLOAD"},
38 {SECURITY_ASSOCIATION
, "SECURITY_ASSOCIATION"},
39 {KEY_EXCHANGE
, "KEY_EXCHANGE"},
40 {ID_INITIATOR
, "ID_INITIATOR"},
41 {ID_RESPONDER
, "ID_RESPONDER"},
42 {CERTIFICATE
, "CERTIFICATE"},
43 {CERTIFICATE_REQUEST
, "CERTIFICATE_REQUEST"},
44 {AUTHENTICATION
, "AUTHENTICATION"},
48 {VENDOR_ID
, "VENDOR_ID"},
49 {TRAFFIC_SELECTOR_INITIATOR
, "TRAFFIC_SELECTOR_INITIATOR"},
50 {TRAFFIC_SELECTOR_RESPONDER
, "TRAFFIC_SELECTOR_RESPONDER"},
51 {ENCRYPTED
, "ENCRYPTED"},
52 {CONFIGURATION
, "CONFIGURATION"},
53 {EXTENSIBLE_AUTHENTICATION
, "EXTENSIBLE_AUTHENTICATION"},
55 {PROPOSAL_SUBSTRUCTURE
, "PROPOSAL_SUBSTRUCTURE"},
56 {TRANSFORM_SUBSTRUCTURE
, "TRANSFORM_SUBSTRUCTURE"},
63 payload_t
*payload_create(payload_type_t type
)
68 return (payload_t
*)ike_header_create();