Moved debug.[ch] to utils folder

This commit is contained in:
Tobias Brunner 2012-10-16 16:03:21 +02:00
parent d5c143e5be
commit f05b427265
306 changed files with 445 additions and 443 deletions

View file

@ -16,7 +16,7 @@
#include <stdio.h>
#include <time.h>
#include <library.h>
#include <debug.h>
#include <utils/debug.h>
#include <crypto/diffie_hellman.h>
static void usage()

View file

@ -17,7 +17,7 @@
#include <unistd.h>
#include <library.h>
#include <debug.h>
#include <utils/debug.h>
static int count = 0;

View file

@ -15,7 +15,7 @@
#include <stdio.h>
#include <library.h>
#include <debug.h>
#include <utils/debug.h>
#include <credentials/keys/private_key.h>
#include <credentials/keys/public_key.h>

View file

@ -15,7 +15,7 @@
#include <stdio.h>
#include <library.h>
#include <debug.h>
#include <utils/debug.h>
#include <credentials/keys/private_key.h>
#include <credentials/keys/public_key.h>

View file

@ -2,7 +2,7 @@
#include <stdio.h>
#include <time.h>
#include <library.h>
#include <debug.h>
#include <utils/debug.h>
#include <credentials/keys/private_key.h>
void start_timing(struct timespec *start)

View file

@ -22,7 +22,7 @@
#include <string.h>
#include <library.h>
#include <debug.h>
#include <utils/debug.h>
#include <tls_socket.h>
#include <networking/host.h>
#include <credentials/sets/mem_cred.h>

View file

@ -16,7 +16,7 @@
#include <sys/types.h>
#include <libbridge.h>
#include <debug.h>
#include <utils/debug.h>
#include <collections/linked_list.h>
#include "bridge.h"

View file

@ -34,7 +34,7 @@
#include "cowfs.h"
#include <library.h>
#include <debug.h>
#include <utils/debug.h>
#include <threading/thread.h>
#include <threading/rwlock.h>
#include <collections/linked_list.h>

View file

@ -23,7 +23,7 @@
#include <dirent.h>
#include <errno.h>
#include <debug.h>
#include <utils/debug.h>
#include <collections/linked_list.h>
#include "dumm.h"

View file

@ -21,7 +21,7 @@
#include <library.h>
#include <dumm.h>
#include <debug.h>
#include <utils/debug.h>
#include <collections/linked_list.h>
#undef PACKAGE_NAME

View file

@ -28,7 +28,7 @@
#include <termios.h>
#include <stdarg.h>
#include <debug.h>
#include <utils/debug.h>
#include <collections/linked_list.h>
#include "dumm.h"

View file

@ -25,7 +25,7 @@
#include <sys/ioctl.h>
#include <linux/if_tun.h>
#include <debug.h>
#include <utils/debug.h>
#include <collections/linked_list.h>
#include "iface.h"

View file

@ -25,7 +25,7 @@
#include <errno.h>
#include <sys/un.h>
#include <debug.h>
#include <utils/debug.h>
#include "mconsole.h"

View file

@ -19,7 +19,7 @@
#include "../charonservice.h"
#include <hydra.h>
#include <debug.h>
#include <utils/debug.h>
#include <library.h>
typedef struct private_android_attr_t private_android_attr_t;

View file

@ -16,7 +16,7 @@
#include "android_private_key.h"
#include "../android_jni.h"
#include <debug.h>
#include <utils/debug.h>
typedef struct private_private_key_t private_private_key_t;

View file

@ -17,7 +17,7 @@
#include "android_ipsec.h"
#include "../charonservice.h"
#include <debug.h>
#include <utils/debug.h>
#include <library.h>
#include <hydra.h>
#include <ipsec.h>

View file

@ -16,7 +16,7 @@
#include "../charonservice.h"
#include <hydra.h>
#include <debug.h>
#include <utils/debug.h>
#include <processing/jobs/callback_job.h>
#include <threading/mutex.h>

View file

@ -16,7 +16,7 @@
#include "../android_jni.h"
#include "../charonservice.h"
#include <debug.h>
#include <utils/debug.h>
#include <threading/mutex.h>
typedef struct private_network_manager_t private_network_manager_t;

View file

@ -18,7 +18,7 @@
#include "vpnservice_builder.h"
#include "android_jni.h"
#include <debug.h>
#include <utils/debug.h>
#include <library.h>
typedef struct private_vpnservice_builder_t private_vpnservice_builder_t;

View file

@ -28,7 +28,7 @@ typedef struct bus_t bus_t;
#include <stdarg.h>
#include <debug.h>
#include <utils/debug.h>
#include <sa/ike_sa.h>
#include <sa/child_sa.h>
#include <processing/jobs/job.h>

View file

@ -15,7 +15,7 @@
#include "addrblock_validator.h"
#include <debug.h>
#include <utils/debug.h>
#include <credentials/certificates/x509.h>
#include <selectors/traffic_selector.h>

View file

@ -17,7 +17,7 @@
#include <time.h>
#include <debug.h>
#include <utils/debug.h>
#include <processing/jobs/callback_job.h>
typedef struct private_certexpire_cron_t private_certexpire_cron_t;

View file

@ -21,7 +21,7 @@
#include <limits.h>
#include <errno.h>
#include <debug.h>
#include <utils/debug.h>
#include <daemon.h>
#include <collections/hashtable.h>
#include <threading/mutex.h>

View file

@ -16,7 +16,7 @@
#include "eap_peap_avp.h"
#include <eap/eap.h>
#include <debug.h>
#include <utils/debug.h>
/**
* Microsoft Success and Failure Result AVPs
@ -78,7 +78,7 @@ METHOD(eap_peap_avp_t, build, void,
}
*/
else
{
{
avp_data = chunk_skip(data, 4);
}
writer->write_data(writer, avp_data);

View file

@ -16,7 +16,7 @@
#include "eap_peap_peer.h"
#include "eap_peap_avp.h"
#include <debug.h>
#include <utils/debug.h>
#include <daemon.h>
typedef struct private_eap_peap_peer_t private_eap_peap_peer_t;

View file

@ -16,7 +16,7 @@
#include "eap_peap_server.h"
#include "eap_peap_avp.h"
#include <debug.h>
#include <utils/debug.h>
#include <daemon.h>
typedef struct private_eap_peap_server_t private_eap_peap_server_t;

View file

@ -15,7 +15,7 @@
#include "eap_simaka_pseudonym_provider.h"
#include <debug.h>
#include <utils/debug.h>
#include <collections/hashtable.h>
typedef struct private_eap_simaka_pseudonym_provider_t private_eap_simaka_pseudonym_provider_t;

View file

@ -18,7 +18,7 @@
#include <tnc/tnc.h>
#include <tnc/tnccs/tnccs_manager.h>
#include <tls_eap.h>
#include <debug.h>
#include <utils/debug.h>
#include <daemon.h>
/**

View file

@ -15,7 +15,7 @@
#include "eap_ttls_avp.h"
#include <debug.h>
#include <utils/debug.h>
#define AVP_EAP_MESSAGE 79
#define AVP_HEADER_LEN 8

View file

@ -16,7 +16,7 @@
#include "eap_ttls_peer.h"
#include "eap_ttls_avp.h"
#include <debug.h>
#include <utils/debug.h>
#include <daemon.h>
#include <radius_message.h>
#include <sa/eap/eap_method.h>

View file

@ -16,7 +16,7 @@
#include "eap_ttls_server.h"
#include "eap_ttls_avp.h"
#include <debug.h>
#include <utils/debug.h>
#include <daemon.h>
#include <sa/eap/eap_method.h>

View file

@ -18,7 +18,7 @@
#include <daemon.h>
#include <hydra.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_tnc_ifmap_listener_t private_tnc_ifmap_listener_t;

View file

@ -15,7 +15,7 @@
#include "tnc_ifmap_soap.h"
#include <debug.h>
#include <utils/debug.h>
#include <daemon.h>
#include <axis2_util.h>

View file

@ -20,7 +20,7 @@
#include <tncif_pa_subtypes.h>
#include <debug.h>
#include <utils/debug.h>
#include <library.h>
#include <collections/linked_list.h>
#include <threading/mutex.h>

View file

@ -17,7 +17,7 @@
#include <tnc/imc/imc_manager.h>
#include <tnc/tnccs/tnccs_manager.h>
#include <debug.h>
#include <utils/debug.h>
/**
* Called by the IMC to inform a TNCC about the set of message types the IMC

View file

@ -20,7 +20,7 @@
#include <tncifimc.h>
#include <collections/linked_list.h>
#include <debug.h>
#include <utils/debug.h>
#include <daemon.h>
typedef struct private_tnc_imc_manager_t private_tnc_imc_manager_t;

View file

@ -20,7 +20,7 @@
#include <tncif_pa_subtypes.h>
#include <debug.h>
#include <utils/debug.h>
#include <library.h>
#include <collections/linked_list.h>
#include <threading/mutex.h>

View file

@ -18,7 +18,7 @@
#include <tnc/imv/imv_manager.h>
#include <tnc/tnccs/tnccs_manager.h>
#include <debug.h>
#include <utils/debug.h>
/**
* Called by the IMV to inform a TNCS about the set of message types the IMV

View file

@ -30,7 +30,7 @@
#include <daemon.h>
#include <utils/lexparser.h>
#include <debug.h>
#include <utils/debug.h>
#include <threading/mutex.h>
typedef struct private_tnc_imv_manager_t private_tnc_imv_manager_t;

View file

@ -21,7 +21,7 @@
#include <tnc/imv/imv_manager.h>
#include <tnc/imv/imv_recommendations.h>
#include <debug.h>
#include <utils/debug.h>
#include <collections/linked_list.h>
typedef struct private_tnc_imv_recommendations_t private_tnc_imv_recommendations_t;

View file

@ -23,7 +23,7 @@
#include <radius_mppe.h>
#include <daemon.h>
#include <debug.h>
#include <utils/debug.h>
#include <pen/pen.h>
#include <threading/thread.h>
#include <processing/jobs/callback_job.h>

View file

@ -16,7 +16,7 @@
#include "tnc_pdp_connections.h"
#include <collections/linked_list.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_tnc_pdp_connections_t private_tnc_pdp_connections_t;
typedef struct entry_t entry_t;

View file

@ -20,7 +20,7 @@
#include <tnc/imc/imc_manager.h>
#include <tnc/imv/imv_manager.h>
#include <debug.h>
#include <utils/debug.h>
#include <collections/linked_list.h>
#include <threading/rwlock.h>

View file

@ -18,7 +18,7 @@
#include <tnc/tnc.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_tnc_tnccs_plugin_t private_tnc_tnccs_plugin_t;

View file

@ -19,7 +19,7 @@
#include <tnc/tnccs/tnccs.h>
#include <collections/linked_list.h>
#include <debug.h>
#include <utils/debug.h>
#include <libxml/parser.h>

View file

@ -18,7 +18,7 @@
#include <tnc/tnccs/tnccs.h>
#include <utils/lexparser.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_imc_imv_msg_t private_imc_imv_msg_t;

View file

@ -15,7 +15,7 @@
#include "tnccs_error_msg.h"
#include <debug.h>
#include <utils/debug.h>
ENUM(tnccs_error_type_names, TNCCS_ERROR_BATCH_TOO_LONG, TNCCS_ERROR_OTHER,
"batch-too-long",
@ -108,7 +108,7 @@ tnccs_msg_t *tnccs_error_msg_create_from_node(xmlNodePtr node)
{
private_tnccs_error_msg_t *this;
xmlChar *error_type_name, *error_msg;
INIT(this,
.public = {
.tnccs_msg_interface = {

View file

@ -22,7 +22,7 @@
#include "tnccs_tncs_contact_info_msg.h"
#include <library.h>
#include <debug.h>
#include <utils/debug.h>
ENUM(tnccs_msg_type_names, IMC_IMV_MSG, TNCCS_MSG_ROOF,
"IMC-IMV",

View file

@ -15,7 +15,7 @@
#include "tnccs_preferred_language_msg.h"
#include <debug.h>
#include <utils/debug.h>
typedef struct private_tnccs_preferred_language_msg_t private_tnccs_preferred_language_msg_t;

View file

@ -16,7 +16,7 @@
#include "tnccs_reason_strings_msg.h"
#include "tnccs_error_msg.h"
#include <debug.h>
#include <utils/debug.h>
typedef struct private_tnccs_reason_strings_msg_t private_tnccs_reason_strings_msg_t;

View file

@ -16,7 +16,7 @@
#include "tnccs_recommendation_msg.h"
#include "tnccs_error_msg.h"
#include <debug.h>
#include <utils/debug.h>
typedef struct private_tnccs_recommendation_msg_t private_tnccs_recommendation_msg_t;

View file

@ -14,7 +14,7 @@
#include "tnccs_tncs_contact_info_msg.h"
#include <debug.h>
#include <utils/debug.h>
typedef struct private_tnccs_tncs_contact_info_msg_t private_tnccs_tncs_contact_info_msg_t;

View file

@ -31,7 +31,7 @@
#include <tnc/tnccs/tnccs.h>
#include <tnc/tnccs/tnccs_manager.h>
#include <debug.h>
#include <utils/debug.h>
#include <daemon.h>
#include <threading/mutex.h>

View file

@ -24,7 +24,7 @@
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <pen/pen.h>
#include <debug.h>
#include <utils/debug.h>
ENUM(pb_tnc_batch_type_names, PB_BATCH_CDATA, PB_BATCH_CLOSE,
"CDATA",

View file

@ -17,7 +17,7 @@
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <debug.h>
#include <utils/debug.h>
ENUM(pb_access_recommendation_code_names, PB_REC_ACCESS_ALLOWED, PB_REC_QUARANTINED,
"Access Allowed",
@ -113,7 +113,7 @@ METHOD(pb_tnc_msg_t, process, status_t,
*offset = 2;
return FAILED;
}
return SUCCESS;
}

View file

@ -19,7 +19,7 @@
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_pb_assessment_result_msg_t private_pb_assessment_result_msg_t;
@ -106,7 +106,7 @@ METHOD(pb_tnc_msg_t, process, status_t,
*offset = 0;
return FAILED;
}
return SUCCESS;
}

View file

@ -20,7 +20,7 @@
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <pen/pen.h>
#include <debug.h>
#include <utils/debug.h>
ENUM(pb_tnc_error_code_names, PB_ERROR_UNEXPECTED_BATCH_TYPE,
PB_ERROR_VERSION_NOT_SUPPORTED,
@ -88,7 +88,7 @@ struct private_pb_error_msg_t {
u_int32_t error_offset;
/**
* Bad PB-TNC version received
* Bad PB-TNC version received
*/
u_int8_t bad_version;

View file

@ -17,7 +17,7 @@
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_pb_language_preference_msg_t private_pb_language_preference_msg_t;

View file

@ -22,7 +22,7 @@
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <pen/pen.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_pb_pa_msg_t private_pb_pa_msg_t;

View file

@ -17,7 +17,7 @@
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_pb_reason_string_msg_t private_pb_reason_string_msg_t;

View file

@ -17,7 +17,7 @@
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <debug.h>
#include <utils/debug.h>
ENUM(pb_tnc_remed_param_type_names, PB_REMEDIATION_URI, PB_REMEDIATION_STRING,
"Remediation-URI",

View file

@ -15,7 +15,7 @@
#include "pb_tnc_state_machine.h"
#include <debug.h>
#include <utils/debug.h>
ENUM(pb_tnc_state_names, PB_STATE_INIT, PB_STATE_END,
"Init",

View file

@ -34,7 +34,7 @@
#include <tnc/imc/imc_manager.h>
#include <tnc/imv/imv_manager.h>
#include <debug.h>
#include <utils/debug.h>
#include <daemon.h>
#include <threading/mutex.h>
#include <collections/linked_list.h>

View file

@ -17,7 +17,7 @@
#include <tnc/tnc.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_tnccs_dynamic_t private_tnccs_dynamic_t;
@ -120,7 +120,7 @@ METHOD(tls_t, destroy, void,
private_tnccs_dynamic_t *this)
{
DESTROY_IF(this->tls);
free(this);
free(this);
}
/**

View file

@ -22,7 +22,7 @@
#include <signal.h>
#include <unistd.h>
#include <debug.h>
#include <utils/debug.h>
#include <threading/thread.h>
#include <threading/condvar.h>
#include <threading/mutex.h>

View file

@ -18,7 +18,7 @@
#include "request.h"
#include <library.h>
#include <debug.h>
#include <utils/debug.h>
#include <stdlib.h>
#include <pthread.h>
#include <string.h>

View file

@ -18,7 +18,7 @@
#include <unistd.h>
#include <errno.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_smtp_t private_smtp_t;

View file

@ -15,7 +15,7 @@
#include "attribute_manager.h"
#include <debug.h>
#include <utils/debug.h>
#include <collections/linked_list.h>
#include <threading/rwlock.h>

View file

@ -16,7 +16,7 @@
#include "mem_pool.h"
#include <debug.h>
#include <utils/debug.h>
#include <collections/hashtable.h>
#include <collections/linked_list.h>
#include <threading/mutex.h>

View file

@ -15,7 +15,7 @@
#include "hydra.h"
#include <debug.h>
#include <utils/debug.h>
typedef struct private_hydra_t private_hydra_t;

View file

@ -40,7 +40,7 @@
#include "kernel_interface.h"
#include <hydra.h>
#include <debug.h>
#include <utils/debug.h>
#include <threading/mutex.h>
#include <collections/linked_list.h>

View file

@ -19,7 +19,7 @@
#include <time.h>
#include <hydra.h>
#include <debug.h>
#include <utils/debug.h>
#include <collections/linked_list.h>
#include <threading/rwlock.h>

View file

@ -14,7 +14,7 @@
*/
#include <hydra.h>
#include <debug.h>
#include <utils/debug.h>
#include "attr_sql_plugin.h"
#include "sql_attribute.h"

View file

@ -21,7 +21,7 @@
#include <string.h>
#include <errno.h>
#include <debug.h>
#include <utils/debug.h>
#include <library.h>
#include <networking/host.h>
#include <utils/identification.h>

View file

@ -15,7 +15,7 @@
#include <time.h>
#include <debug.h>
#include <utils/debug.h>
#include <library.h>
#include "sql_attribute.h"

View file

@ -29,7 +29,7 @@
#include "kernel_klips_ipsec.h"
#include <hydra.h>
#include <debug.h>
#include <utils/debug.h>
#include <collections/linked_list.h>
#include <threading/thread.h>
#include <threading/mutex.h>

View file

@ -36,7 +36,7 @@
#include "kernel_netlink_shared.h"
#include <hydra.h>
#include <debug.h>
#include <utils/debug.h>
#include <threading/thread.h>
#include <threading/mutex.h>
#include <collections/hashtable.h>

View file

@ -49,7 +49,7 @@
#include "kernel_netlink_shared.h"
#include <hydra.h>
#include <debug.h>
#include <utils/debug.h>
#include <threading/thread.h>
#include <threading/mutex.h>
#include <threading/rwlock.h>

View file

@ -21,7 +21,7 @@
#include "kernel_netlink_shared.h"
#include <debug.h>
#include <utils/debug.h>
#include <threading/mutex.h>
typedef struct private_netlink_socket_t private_netlink_socket_t;

View file

@ -58,7 +58,7 @@
#include "kernel_pfkey_ipsec.h"
#include <hydra.h>
#include <debug.h>
#include <utils/debug.h>
#include <networking/host.h>
#include <collections/linked_list.h>
#include <collections/hashtable.h>

View file

@ -24,7 +24,7 @@
#include "kernel_pfroute_net.h"
#include <hydra.h>
#include <debug.h>
#include <utils/debug.h>
#include <networking/host.h>
#include <threading/thread.h>
#include <threading/mutex.h>

View file

@ -21,7 +21,7 @@
#include <unistd.h>
#include <hydra.h>
#include <debug.h>
#include <utils/debug.h>
#include <threading/mutex.h>
/* path to resolvconf executable */

View file

@ -18,7 +18,7 @@
#include <pa_tnc/pa_tnc_msg.h>
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_ietf_attr_assess_result_t private_ietf_attr_assess_result_t;

View file

@ -21,7 +21,7 @@
#include <bio/bio_reader.h>
#include <collections/linked_list.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_ietf_attr_attr_request_t private_ietf_attr_attr_request_t;

View file

@ -18,7 +18,7 @@
#include <pa_tnc/pa_tnc_msg.h>
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_ietf_attr_default_pwd_enabled_t private_ietf_attr_default_pwd_enabled_t;

View file

@ -18,7 +18,7 @@
#include <pa_tnc/pa_tnc_msg.h>
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_ietf_attr_fwd_enabled_t private_ietf_attr_fwd_enabled_t;

View file

@ -21,7 +21,7 @@
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <collections/linked_list.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_ietf_attr_installed_packages_t private_ietf_attr_installed_packages_t;

View file

@ -18,7 +18,7 @@
#include <pa_tnc/pa_tnc_msg.h>
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_ietf_attr_numeric_version_t private_ietf_attr_numeric_version_t;

View file

@ -18,7 +18,7 @@
#include <pa_tnc/pa_tnc_msg.h>
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <debug.h>
#include <utils/debug.h>
#include <time.h>

View file

@ -18,7 +18,7 @@
#include <pa_tnc/pa_tnc_msg.h>
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <debug.h>
#include <utils/debug.h>
ENUM(pa_tnc_error_code_names, PA_ERROR_RESERVED,
PA_ERROR_ATTR_TYPE_NOT_SUPPORTED,
@ -80,7 +80,7 @@ typedef struct private_ietf_attr_pa_tnc_error_t private_ietf_attr_pa_tnc_error_t
* | Max Version | Min Version | Reserved |
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*/
#define PA_ERROR_VERSION_RESERVED 0x0000
/**
@ -186,7 +186,7 @@ METHOD(pa_tnc_attr_t, build, void,
writer->write_uint24(writer, this->error_code.vendor_id);
writer->write_uint32(writer, this->error_code.type);
writer->write_data (writer, this->msg_info);
if (this->error_code.vendor_id == PEN_IETF)
{
switch (this->error_code.type)
@ -272,7 +272,7 @@ METHOD(pa_tnc_attr_t, process, status_t,
}
reader->destroy(reader);
return SUCCESS;
return SUCCESS;
}
METHOD(pa_tnc_attr_t, get_ref, pa_tnc_attr_t*,

View file

@ -18,7 +18,7 @@
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <collections/linked_list.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_ietf_attr_port_filter_t private_ietf_attr_port_filter_t;

View file

@ -17,7 +17,7 @@
#include <pa_tnc/pa_tnc_msg.h>
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_ietf_attr_product_info_t private_ietf_attr_product_info_t;

View file

@ -18,7 +18,7 @@
#include <pa_tnc/pa_tnc_msg.h>
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_ietf_attr_remediation_instr_t private_ietf_attr_remediation_instr_t;

View file

@ -18,7 +18,7 @@
#include <pa_tnc/pa_tnc_msg.h>
#include <bio/bio_writer.h>
#include <bio/bio_reader.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_ietf_attr_string_version_t private_ietf_attr_string_version_t;
@ -143,7 +143,7 @@ METHOD(pa_tnc_attr_t, process, status_t,
return FAILED;
}
reader = bio_reader_create(this->value);
if (!reader->read_data8(reader, &version))
{
DBG1(DBG_TNC, "insufficient data for IETF product version number");
@ -187,7 +187,7 @@ METHOD(pa_tnc_attr_t, process, status_t,
*offset += 1 + (pos - config.ptr);
goto end;
}
this->version = chunk_clone(version);
this->build = chunk_clone(build);
this->config = chunk_clone(config);

View file

@ -18,7 +18,7 @@
#include <tncif_names.h>
#include <debug.h>
#include <utils/debug.h>
#include <threading/rwlock.h>
typedef struct private_imc_agent_t private_imc_agent_t;
@ -353,7 +353,7 @@ METHOD(imc_agent_t, create_state, TNC_Result,
has_long = get_bool_attribute(this, conn_id, TNC_ATTRIBUTEID_HAS_LONG_TYPES);
has_excl = get_bool_attribute(this, conn_id, TNC_ATTRIBUTEID_HAS_EXCLUSIVE);
has_soh = get_bool_attribute(this, conn_id, TNC_ATTRIBUTEID_HAS_SOH);
tnccs_p = get_str_attribute(this, conn_id, TNC_ATTRIBUTEID_IFTNCCS_PROTOCOL);
tnccs_p = get_str_attribute(this, conn_id, TNC_ATTRIBUTEID_IFTNCCS_PROTOCOL);
tnccs_v = get_str_attribute(this, conn_id, TNC_ATTRIBUTEID_IFTNCCS_VERSION);
t_p = get_str_attribute(this, conn_id, TNC_ATTRIBUTEID_IFT_PROTOCOL);
t_v = get_str_attribute(this, conn_id, TNC_ATTRIBUTEID_IFT_VERSION);
@ -408,7 +408,7 @@ METHOD(imc_agent_t, change_state, TNC_Result,
case TNC_CONNECTION_STATE_ACCESS_ISOLATED:
case TNC_CONNECTION_STATE_ACCESS_NONE:
state = find_connection(this, connection_id);
if (!state)
{
DBG1(DBG_IMC, "IMC %u \"%s\" has no state for Connection ID %u",
@ -436,7 +436,7 @@ METHOD(imc_agent_t, change_state, TNC_Result,
DBG1(DBG_IMC, "IMC %u \"%s\" was notified of unknown state %u "
"for Connection ID %u",
this->id, this->name, new_state, connection_id);
return TNC_RESULT_INVALID_PARAMETER;
return TNC_RESULT_INVALID_PARAMETER;
}
return TNC_RESULT_SUCCESS;
}
@ -562,7 +562,7 @@ imc_agent_t *imc_agent_create(const char *name,
.connections = linked_list_create(),
.connection_lock = rwlock_create(RWLOCK_TYPE_DEFAULT),
);
*actual_version = TNC_IFIMC_VERSION_1;
DBG1(DBG_IMC, "IMC %u \"%s\" initialized", this->id, this->name);

View file

@ -22,7 +22,7 @@
#include <pen/pen.h>
#include <collections/linked_list.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_imc_msg_t private_imc_msg_t;

View file

@ -17,7 +17,7 @@
#include "ita/ita_attr.h"
#include <utils.h>
#include <debug.h>
#include <utils/debug.h>
#include <pen/pen.h>
#include <syslog.h>
@ -119,7 +119,7 @@ bool libimcv_init(void)
"libimcv.debug_level", IMCV_DEBUG_LEVEL);
imcv_stderr_quiet = lib->settings->get_int(lib->settings,
"libimcv.stderr_quiet", FALSE);
/* activate the imcv debugging hook */
dbg = imcv_dbg;
openlog("imcv", 0, LOG_DAEMON);
@ -155,7 +155,7 @@ void libimcv_deinit(void)
}
if (ref_put(&libstrongswan_ref))
{
library_deinit();
library_deinit();
}
}

View file

@ -19,7 +19,7 @@
#include <tncif_names.h>
#include <debug.h>
#include <utils/debug.h>
#include <threading/rwlock.h>
typedef struct private_imv_agent_t private_imv_agent_t;

View file

@ -22,7 +22,7 @@
#include <pen/pen.h>
#include <collections/linked_list.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_imv_msg_t private_imv_msg_t;

View file

@ -18,7 +18,7 @@
#include <pen/pen.h>
#include <debug.h>
#include <utils/debug.h>
typedef struct private_ita_attr_command_t private_ita_attr_command_t;
@ -100,7 +100,7 @@ METHOD(pa_tnc_attr_t, process, status_t,
memcpy(this->command, this->value.ptr, this->value.len);
this->command[this->value.len] = '\0';
return SUCCESS;
return SUCCESS;
}
METHOD(pa_tnc_attr_t, get_ref, pa_tnc_attr_t*,

Some files were not shown because too many files have changed in this diff Show more