2 * Copyright (C) 2011 Andreas Steffen
3 * HSR 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
17 * @defgroup tnc_ifmap_soap tnc_ifmap_soap
18 * @{ @ingroup tnc_ifmap
21 #ifndef TNC_IFMAP_SOAP_H_
22 #define TNC_IFMAP_SOAP_H_
25 #include <utils/host.h>
26 #include <sa/ike_sa.h>
28 typedef struct tnc_ifmap_soap_t tnc_ifmap_soap_t
;
31 * Implements the TNC IF-MAP 2.0 SOAP Binding
33 struct tnc_ifmap_soap_t
{
36 * Creates a new IF-MAP session
38 * @return TRUE if command was successful
40 bool (*newSession
)(tnc_ifmap_soap_t
*this);
43 * Purges all metadata published by this publisher
45 * @return TRUE if command was successful
47 bool (*purgePublisher
)(tnc_ifmap_soap_t
*this);
50 * Publish metadata about established/deleted IKE_SAs
52 * @param ike_sa IKE_SA for which metadate is published
53 * @param up TRUE if IKE_SEA is up, FALSE if down
54 * @return TRUE if command was successful
56 bool (*publish_ike_sa
)(tnc_ifmap_soap_t
*this, ike_sa_t
*ike_sa
, bool up
);
59 * Publish PEP device-ip metadata
61 * @param host IP address of local endpoint
62 * @return TRUE if command was successful
64 bool (*publish_device_ip
)(tnc_ifmap_soap_t
*this, host_t
*host
);
67 * Publish enforcement-report metadata
69 * @param host Host to be enforced
70 * @param action Enforcement action ("block" or "quarantine")
71 * @param reason Enforcement reason
72 * @return TRUE if command was successful
74 bool (*publish_enforcement_report
)(tnc_ifmap_soap_t
*this, host_t
*host
,
75 char *action
, char *reason
);
78 * Ends an IF-MAP session
80 * @return TRUE if command was successful
82 bool (*endSession
)(tnc_ifmap_soap_t
*this);
85 * Destroy a tnc_ifmap_soap_t.
87 void (*destroy
)(tnc_ifmap_soap_t
*this);
91 * Create a tnc_ifmap_soap instance.
93 tnc_ifmap_soap_t
*tnc_ifmap_soap_create();
95 #endif /** TNC_IFMAP_SOAP_H_ @}*/