Moved data structures to new collections subfolder
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#include "android_handler.h"
|
||||
|
||||
#include <networking/host.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
|
||||
#include <cutils/properties.h>
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include <debug.h>
|
||||
#include <daemon.h>
|
||||
#include <utils/hashtable.h>
|
||||
#include <collections/hashtable.h>
|
||||
#include <threading/mutex.h>
|
||||
#include <credentials/certificates/x509.h>
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
typedef struct certexpire_export_t certexpire_export_t;
|
||||
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
|
||||
/**
|
||||
* Caches and exports trustchain information to CSV files.
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#include "dhcp_provider.h"
|
||||
|
||||
#include <utils/hashtable.h>
|
||||
#include <collections/hashtable.h>
|
||||
#include <threading/mutex.h>
|
||||
|
||||
typedef struct private_dhcp_provider_t private_dhcp_provider_t;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <linux/if_ether.h>
|
||||
#include <linux/filter.h>
|
||||
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <utils/identification.h>
|
||||
#include <threading/mutex.h>
|
||||
#include <threading/condvar.h>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#include "dhcp_transaction.h"
|
||||
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
|
||||
typedef struct private_dhcp_transaction_t private_dhcp_transaction_t;
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include <daemon.h>
|
||||
#include <threading/mutex.h>
|
||||
#include <utils/hashtable.h>
|
||||
#include <collections/hashtable.h>
|
||||
#include <encoding/payloads/delete_payload.h>
|
||||
#include <processing/jobs/delete_ike_sa_job.h>
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <daemon.h>
|
||||
#include <threading/mutex.h>
|
||||
#include <threading/thread.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <processing/jobs/callback_job.h>
|
||||
|
||||
#define DUPLICHECK_SOCKET IPSEC_PIDDIR "/charon.dck"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include <daemon.h>
|
||||
#include <library.h>
|
||||
#include <utils/enumerator.h>
|
||||
#include <collections/enumerator.h>
|
||||
#include <crypto/crypters/crypter.h>
|
||||
#include <crypto/hashers/hasher.h>
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <radius_message.h>
|
||||
#include <radius_client.h>
|
||||
#include <daemon.h>
|
||||
#include <utils/hashtable.h>
|
||||
#include <collections/hashtable.h>
|
||||
#include <threading/mutex.h>
|
||||
|
||||
typedef struct private_eap_radius_accounting_t private_eap_radius_accounting_t;
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
#include "eap_radius_forward.h"
|
||||
|
||||
#include <daemon.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <utils/hashtable.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <collections/hashtable.h>
|
||||
#include <threading/mutex.h>
|
||||
|
||||
typedef struct private_eap_radius_forward_t private_eap_radius_forward_t;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <errno.h>
|
||||
|
||||
#include <daemon.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <threading/mutex.h>
|
||||
#include <simaka_manager.h>
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#ifndef EAP_SIM_FILE_TRIPLETS_H_
|
||||
#define EAP_SIM_FILE_TRIPLETS_H_
|
||||
|
||||
#include <utils/enumerator.h>
|
||||
#include <collections/enumerator.h>
|
||||
|
||||
typedef struct eap_sim_file_triplets_t eap_sim_file_triplets_t;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "eap_simaka_pseudonym_card.h"
|
||||
|
||||
#include <daemon.h>
|
||||
#include <utils/hashtable.h>
|
||||
#include <collections/hashtable.h>
|
||||
|
||||
typedef struct private_eap_simaka_pseudonym_card_t private_eap_simaka_pseudonym_card_t;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "eap_simaka_pseudonym_provider.h"
|
||||
|
||||
#include <debug.h>
|
||||
#include <utils/hashtable.h>
|
||||
#include <collections/hashtable.h>
|
||||
|
||||
typedef struct private_eap_simaka_pseudonym_provider_t private_eap_simaka_pseudonym_provider_t;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "eap_simaka_reauth_card.h"
|
||||
|
||||
#include <daemon.h>
|
||||
#include <utils/hashtable.h>
|
||||
#include <collections/hashtable.h>
|
||||
|
||||
typedef struct private_eap_simaka_reauth_card_t private_eap_simaka_reauth_card_t;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "eap_simaka_reauth_provider.h"
|
||||
|
||||
#include <daemon.h>
|
||||
#include <utils/hashtable.h>
|
||||
#include <collections/hashtable.h>
|
||||
|
||||
typedef struct private_eap_simaka_reauth_provider_t private_eap_simaka_reauth_provider_t;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#include "farp_listener.h"
|
||||
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <threading/rwlock.h>
|
||||
|
||||
typedef struct private_farp_listener_t private_farp_listener_t;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#include "ha_attribute.h"
|
||||
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <threading/mutex.h>
|
||||
|
||||
typedef struct private_ha_attribute_t private_ha_attribute_t;
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
|
||||
#include "ha_cache.h"
|
||||
|
||||
#include <utils/hashtable.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/hashtable.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <threading/mutex.h>
|
||||
#include <processing/jobs/callback_job.h>
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ typedef struct ha_cache_t ha_cache_t;
|
||||
#include "ha_kernel.h"
|
||||
#include "ha_socket.h"
|
||||
|
||||
#include <utils/enumerator.h>
|
||||
#include <collections/enumerator.h>
|
||||
|
||||
#include <sa/ike_sa.h>
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include <threading/mutex.h>
|
||||
#include <threading/condvar.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <threading/thread.h>
|
||||
#include <processing/jobs/callback_job.h>
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
#include "lookip_listener.h"
|
||||
|
||||
#include <daemon.h>
|
||||
#include <utils/hashtable.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/hashtable.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <threading/rwlock.h>
|
||||
|
||||
typedef struct private_lookip_listener_t private_lookip_listener_t;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <daemon.h>
|
||||
#include <threading/thread.h>
|
||||
#include <threading/mutex.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <processing/jobs/callback_job.h>
|
||||
|
||||
#include "lookip_msg.h"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include <daemon.h>
|
||||
#include <library.h>
|
||||
#include <utils/enumerator.h>
|
||||
#include <collections/enumerator.h>
|
||||
|
||||
typedef struct private_medcli_creds_t private_medcli_creds_t;
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include <daemon.h>
|
||||
#include <library.h>
|
||||
#include <utils/enumerator.h>
|
||||
#include <collections/enumerator.h>
|
||||
|
||||
typedef struct private_medsrv_creds_t private_medsrv_creds_t;
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#include <daemon.h>
|
||||
#include <threading/thread.h>
|
||||
#include <threading/rwlock.h>
|
||||
#include <utils/hashtable.h>
|
||||
#include <collections/hashtable.h>
|
||||
|
||||
/* Maximum size of a packet */
|
||||
#define MAX_PACKET 10000
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "stroke_attribute.h"
|
||||
|
||||
#include <daemon.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <threading/rwlock.h>
|
||||
|
||||
typedef struct private_stroke_attribute_t private_stroke_attribute_t;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "stroke_cred.h"
|
||||
|
||||
#include <threading/rwlock.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <crypto/hashers/hasher.h>
|
||||
|
||||
#include <daemon.h>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include <credentials/certificates/ac.h>
|
||||
#include <credentials/sets/mem_cred.h>
|
||||
#include <credentials/sets/callback_cred.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <utils/lexparser.h>
|
||||
#include <threading/rwlock.h>
|
||||
#include <daemon.h>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <stroke_msg.h>
|
||||
#include <credentials/credential_set.h>
|
||||
#include <credentials/certificates/certificate.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
|
||||
typedef struct stroke_cred_t stroke_cred_t;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "stroke_handler.h"
|
||||
|
||||
#include <daemon.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <threading/rwlock.h>
|
||||
|
||||
typedef struct private_stroke_handler_t private_stroke_handler_t;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#include <hydra.h>
|
||||
#include <daemon.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <plugins/plugin.h>
|
||||
#include <credentials/certificates/x509.h>
|
||||
#include <credentials/certificates/ac.h>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <threading/mutex.h>
|
||||
#include <threading/thread.h>
|
||||
#include <threading/condvar.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <processing/jobs/callback_job.h>
|
||||
|
||||
#include "stroke_config.h"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
#include <debug.h>
|
||||
#include <library.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <threading/mutex.h>
|
||||
|
||||
typedef struct private_tnc_imc_t private_tnc_imc_t;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include <tncifimc.h>
|
||||
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <debug.h>
|
||||
#include <daemon.h>
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
#include <debug.h>
|
||||
#include <library.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <threading/mutex.h>
|
||||
|
||||
typedef struct private_tnc_imv_t private_tnc_imv_t;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include <tnc/imv/imv_recommendations.h>
|
||||
|
||||
#include <debug.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
|
||||
typedef struct private_tnc_imv_recommendations_t private_tnc_imv_recommendations_t;
|
||||
typedef struct recommendation_entry_t recommendation_entry_t;
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#define TNC_IMV_RECOMMENDATIONS_H_
|
||||
|
||||
#include <tnc/imv/imv_recommendations.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
|
||||
/**
|
||||
* Create an IMV empty recommendations instance
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#include "tnc_pdp_connections.h"
|
||||
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <debug.h>
|
||||
|
||||
typedef struct private_tnc_pdp_connections_t private_tnc_pdp_connections_t;
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <tnc/imv/imv_manager.h>
|
||||
|
||||
#include <debug.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <threading/rwlock.h>
|
||||
|
||||
typedef struct private_tnc_tnccs_manager_t private_tnc_tnccs_manager_t;
|
||||
@@ -454,7 +454,7 @@ METHOD(tnccs_manager_t, get_attribute, TNC_Result,
|
||||
enumerator_t *enumerator;
|
||||
tnccs_connection_entry_t *entry;
|
||||
bool attribute_match = FALSE, entry_found = FALSE;
|
||||
|
||||
|
||||
if (is_imc)
|
||||
{
|
||||
switch (attribute_id)
|
||||
@@ -520,7 +520,7 @@ METHOD(tnccs_manager_t, get_attribute, TNC_Result,
|
||||
return TNC_RESULT_INVALID_PARAMETER;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* attributes specific to the TNCC or TNCS are unsupported */
|
||||
if (id == TNC_CONNECTIONID_ANY)
|
||||
{
|
||||
@@ -577,10 +577,10 @@ METHOD(tnccs_manager_t, get_attribute, TNC_Result,
|
||||
entry->max_msg_len);
|
||||
case TNC_ATTRIBUTEID_HAS_LONG_TYPES:
|
||||
case TNC_ATTRIBUTEID_HAS_EXCLUSIVE:
|
||||
return bool_attribute(buffer_len, buffer, value_len,
|
||||
return bool_attribute(buffer_len, buffer, value_len,
|
||||
entry->type == TNCCS_2_0);
|
||||
case TNC_ATTRIBUTEID_HAS_SOH:
|
||||
return bool_attribute(buffer_len, buffer, value_len,
|
||||
return bool_attribute(buffer_len, buffer, value_len,
|
||||
entry->type == TNCCS_SOH);
|
||||
case TNC_ATTRIBUTEID_IFTNCCS_PROTOCOL:
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include <tnc/tnccs/tnccs.h>
|
||||
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <libxml/parser.h>
|
||||
|
||||
@@ -25,7 +25,7 @@ typedef enum tnccs_msg_type_t tnccs_msg_type_t;
|
||||
typedef struct tnccs_msg_t tnccs_msg_t;
|
||||
|
||||
#include <library.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <libxml/parser.h>
|
||||
|
||||
/**
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include <tnc/tnccs/tnccs.h>
|
||||
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <bio/bio_writer.h>
|
||||
#include <bio/bio_reader.h>
|
||||
#include <pen/pen.h>
|
||||
@@ -172,12 +172,12 @@ METHOD(pb_tnc_batch_t, build, void,
|
||||
bio_writer_t *writer;
|
||||
|
||||
/* build PB-TNC batch header */
|
||||
writer = bio_writer_create(this->batch_len);
|
||||
writer = bio_writer_create(this->batch_len);
|
||||
writer->write_uint8 (writer, PB_TNC_VERSION);
|
||||
writer->write_uint8 (writer, this->is_server ?
|
||||
PB_TNC_BATCH_FLAG_D : PB_TNC_BATCH_FLAG_NONE);
|
||||
writer->write_uint16(writer, this->type);
|
||||
writer->write_uint32(writer, this->batch_len);
|
||||
writer->write_uint32(writer, this->batch_len);
|
||||
|
||||
/* build PB-TNC messages */
|
||||
enumerator = this->messages->create_enumerator(this->messages);
|
||||
@@ -297,7 +297,7 @@ static status_t process_batch_header(private_pb_tnc_batch_t *this,
|
||||
|
||||
fatal:
|
||||
this->errors->insert_last(this->errors, msg);
|
||||
return FAILED;
|
||||
return FAILED;
|
||||
}
|
||||
|
||||
static status_t process_tnc_msg(private_pb_tnc_batch_t *this)
|
||||
@@ -329,7 +329,7 @@ static status_t process_tnc_msg(private_pb_tnc_batch_t *this)
|
||||
reader->destroy(reader);
|
||||
|
||||
noskip_flag = (flags & PB_TNC_FLAG_NOSKIP) != PB_TNC_FLAG_NONE;
|
||||
|
||||
|
||||
if (msg_len > data.len)
|
||||
{
|
||||
DBG1(DBG_TNC, "%u bytes insufficient to parse PB-TNC message", data.len);
|
||||
@@ -455,7 +455,7 @@ static status_t process_tnc_msg(private_pb_tnc_batch_t *this)
|
||||
|
||||
fatal:
|
||||
this->errors->insert_last(this->errors, msg);
|
||||
return FAILED;
|
||||
return FAILED;
|
||||
}
|
||||
|
||||
METHOD(pb_tnc_batch_t, process, status_t,
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
#include <debug.h>
|
||||
#include <daemon.h>
|
||||
#include <threading/mutex.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <pen/pen.h>
|
||||
|
||||
typedef struct private_tnccs_20_t private_tnccs_20_t;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#ifndef UCI_PARSER_H_
|
||||
#define UCI_PARSER_H_
|
||||
|
||||
#include <utils/enumerator.h>
|
||||
#include <collections/enumerator.h>
|
||||
|
||||
typedef struct uci_parser_t uci_parser_t;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* for more details.
|
||||
*/
|
||||
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
|
||||
#include <library.h>
|
||||
#include <utils/hashtable.h>
|
||||
#include <collections/hashtable.h>
|
||||
|
||||
static u_int hash(char *key)
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <library.h>
|
||||
#include <daemon.h>
|
||||
#include <utils/enumerator.h>
|
||||
#include <collections/enumerator.h>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <library.h>
|
||||
#include <daemon.h>
|
||||
#include <utils/enumerator.h>
|
||||
#include <collections/enumerator.h>
|
||||
|
||||
/*******************************************************************************
|
||||
* mysql simple test
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <library.h>
|
||||
#include <daemon.h>
|
||||
#include <utils/enumerator.h>
|
||||
#include <collections/enumerator.h>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include <daemon.h>
|
||||
#include <threading/mutex.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <processing/jobs/callback_job.h>
|
||||
|
||||
typedef struct private_unity_handler_t private_unity_handler_t;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "updown_handler.h"
|
||||
|
||||
#include <daemon.h>
|
||||
#include <utils/linked_list.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <threading/rwlock.h>
|
||||
|
||||
typedef struct private_updown_handler_t private_updown_handler_t;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "whitelist_listener.h"
|
||||
|
||||
#include <daemon.h>
|
||||
#include <utils/hashtable.h>
|
||||
#include <collections/hashtable.h>
|
||||
#include <threading/rwlock.h>
|
||||
|
||||
typedef struct private_whitelist_listener_t private_whitelist_listener_t;
|
||||
|
||||
Reference in New Issue
Block a user