aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/message.h
blob: d511b27f6c8156e26cd27dff717987216efa927d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
 * @file message.h
 * 
 * @brief Class message_t. Object of this type represents an IKEv2-Message
 * 
 */

/*
 * Copyright (C) 2005 Jan Hutter, Martin Willi
 * Hochschule fuer Technik Rapperswil
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2 of the License, or (at your
 * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 */

#ifndef MESSAGE_H_
#define MESSAGE_H_

#include "types.h"

/**
 * @brief This class is used to represent an IKEv2-Message.
 * 
 * An IKEv2-Message is either a request or response.
 */
typedef struct message_s message_t;

struct message_s { 	

	/**
	 * @brief Destroys a message object
	 * 
	 * @param this message_t object
	 * @return SUCCESSFUL if succeeded, FAILED otherwise
	 */
	status_t (*destroy) (message_t *this);
};

/**
 * Creates an message_t-object
 * 
 * @return created message_t object
 */
message_t * message_create();


#endif /*MESSAGE_H_*/