2 * Copyright (C) 2009-2010 Andreas Steffen
3 * Hochschule fuer Technik Rapperswil
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 #ifndef POOL_ATTRIBUTES_H_
17 #define POOL_ATTRIBUTES_H_
19 #include <attributes/attributes.h>
21 typedef enum value_type_t value_type_t
;
32 * enum names for value_type_t.
34 extern enum_name_t
*value_type_names
;
37 * lookup/insert an identity
39 u_int
get_identity(identification_t
*id
);
42 * ipsec pool --addattr <type> - add attribute entry
44 void add_attr(char *name
, char *pool
, char *identity
,
45 char *value
, value_type_t value_type
);
48 * ipsec pool --delattr <type> - delete attribute entry
50 void del_attr(char *name
, char *pool
, char *identity
,
51 char *value
, value_type_t value_type
);
54 * ipsec pool --statusattr - show all attribute entries
56 void status_attr(bool hexout
);
59 * ipsec pool --showattr - show all supported attribute keywords
63 #endif /* POOL_ATTRIBUTES_H_ */