Moved data structures to new collections subfolder

This commit is contained in:
Tobias Brunner
2012-10-24 16:00:49 +02:00
parent fdee6b5f5a
commit 12642a6831
229 changed files with 338 additions and 332 deletions
+2 -1
View File
@@ -5,6 +5,8 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
library.c chunk.c debug.c enum.c settings.c printf_hook.c \
asn1/asn1.c asn1/asn1_parser.c asn1/oid.c bio/bio_reader.c bio/bio_writer.c \
collections/blocking_queue.c collections/enumerator.c collections/hashtable.c \
collections/linked_list.c \
crypto/crypters/crypter.c crypto/hashers/hasher.c crypto/pkcs7.c crypto/pkcs9.c \
crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
crypto/prfs/prf.c crypto/prfs/mac_prf.c \
@@ -29,7 +31,6 @@ processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
selectors/traffic_selector.c threading/thread.c threading/thread_value.c \
threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
utils.c utils/identification.c utils/lexparser.c \
utils/linked_list.c utils/blocking_queue.c utils/hashtable.c utils/enumerator.c \
utils/optionsfrom.c utils/capabilities.c utils/backtrace.c
# adding the plugin source files
+4 -2
View File
@@ -3,6 +3,8 @@ ipseclib_LTLIBRARIES = libstrongswan.la
libstrongswan_la_SOURCES = \
library.c chunk.c debug.c enum.c settings.c printf_hook.c \
asn1/asn1.c asn1/asn1_parser.c asn1/oid.c bio/bio_reader.c bio/bio_writer.c \
collections/blocking_queue.c collections/enumerator.c collections/hashtable.c \
collections/linked_list.c \
crypto/crypters/crypter.c crypto/hashers/hasher.c crypto/pkcs7.c crypto/pkcs9.c \
crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
crypto/prfs/prf.c crypto/prfs/mac_prf.c \
@@ -27,7 +29,6 @@ processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
selectors/traffic_selector.c threading/thread.c threading/thread_value.c \
threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
utils.c utils/identification.c utils/lexparser.c \
utils/linked_list.c utils/blocking_queue.c utils/hashtable.c utils/enumerator.c \
utils/optionsfrom.c utils/capabilities.c utils/backtrace.c
if USE_DEV_HEADERS
@@ -35,6 +36,8 @@ strongswan_includedir = ${dev_headers}
nobase_strongswan_include_HEADERS = \
library.h chunk.h debug.h enum.h settings.h printf_hook.h \
asn1/asn1.h asn1/asn1_parser.h asn1/oid.h bio/bio_reader.h bio/bio_writer.h \
collections/blocking_queue.h collections/enumerator.h collections/hashtable.h \
collections/linked_list.h \
crypto/crypters/crypter.h crypto/hashers/hasher.h crypto/mac.h \
crypto/pkcs7.h crypto/pkcs9.h crypto/proposal/proposal_keywords.h \
crypto/proposal/proposal_keywords_static.h \
@@ -66,7 +69,6 @@ threading/thread.h threading/thread_value.h \
threading/mutex.h threading/condvar.h threading/spinlock.h threading/semaphore.h \
threading/rwlock.h threading/rwlock_condvar.h threading/lock_profiler.h \
utils.h utils/identification.h utils/lexparser.h \
utils/linked_list.h utils/blocking_queue.h utils/hashtable.h utils/enumerator.h \
utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
utils/leak_detective.h integrity_checker.h
endif
@@ -20,7 +20,7 @@
#include <threading/mutex.h>
#include <threading/thread.h>
#include <threading/condvar.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
typedef struct private_blocking_queue_t private_blocking_queue_t;
@@ -17,7 +17,7 @@
/**
* @defgroup blocking_queue blocking_queue
* @{ @ingroup utils
* @{ @ingroup collections
*/
#ifndef BLOCKING_QUEUE_H_
@@ -15,7 +15,7 @@
/**
* @defgroup enumerator enumerator
* @{ @ingroup utils
* @{ @ingroup collections
*/
#ifndef ENUMERATOR_H_
@@ -15,13 +15,13 @@
/**
* @defgroup hashtable hashtable
* @{ @ingroup utils
* @{ @ingroup collections
*/
#ifndef HASHTABLE_H_
#define HASHTABLE_H_
#include <utils/enumerator.h>
#include <collections/enumerator.h>
typedef struct hashtable_t hashtable_t;
@@ -17,7 +17,7 @@
/**
* @defgroup linked_list linked_list
* @{ @ingroup utils
* @{ @ingroup collections
*/
#ifndef LINKED_LIST_H_
@@ -25,7 +25,7 @@
typedef struct linked_list_t linked_list_t;
#include <utils/enumerator.h>
#include <collections/enumerator.h>
/**
* Method to match elements in a linked list (used in find_* functions)
+1 -1
View File
@@ -18,7 +18,7 @@
#include <library.h>
#include <debug.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include <utils/identification.h>
#include <eap/eap.h>
#include <credentials/certificates/certificate.h>
+1 -1
View File
@@ -22,7 +22,7 @@
#ifndef AUTH_CFG_H_
#define AUTH_CFG_H_
#include <utils/enumerator.h>
#include <collections/enumerator.h>
typedef struct auth_cfg_t auth_cfg_t;
typedef enum auth_rule_t auth_rule_t;
@@ -21,7 +21,7 @@
#ifndef PKCS10_H_
#define PKCS10_H_
#include <utils/enumerator.h>
#include <collections/enumerator.h>
#include <credentials/certificates/certificate.h>
typedef struct pkcs10_t pkcs10_t;
@@ -21,7 +21,7 @@
#ifndef X509_H_
#define X509_H_
#include <utils/enumerator.h>
#include <collections/enumerator.h>
#include <credentials/certificates/certificate.h>
/* constraints are currently restricted to the range 0..127 */
@@ -17,8 +17,8 @@
#include <stdint.h>
#include <utils/linked_list.h>
#include <utils/hashtable.h>
#include <collections/linked_list.h>
#include <collections/hashtable.h>
#include <threading/rwlock.h>
typedef struct private_cred_encoding_t private_cred_encoding_t;
@@ -18,7 +18,7 @@
#include "credential_factory.h"
#include <debug.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include <threading/thread_value.h>
#include <threading/rwlock.h>
#include <credentials/certificates/x509.h>
@@ -20,7 +20,7 @@
#include <threading/thread_value.h>
#include <threading/mutex.h>
#include <threading/rwlock.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include <credentials/sets/cert_cache.h>
#include <credentials/sets/auth_cfg_wrapper.h>
#include <credentials/certificates/x509.h>
@@ -24,7 +24,7 @@
typedef struct credential_manager_t credential_manager_t;
#include <utils/identification.h>
#include <utils/enumerator.h>
#include <collections/enumerator.h>
#include <credentials/auth_cfg.h>
#include <credentials/credential_set.h>
#include <credentials/keys/private_key.h>
@@ -17,7 +17,7 @@
#include <asn1/oid.h>
#include <asn1/asn1.h>
#include <asn1/asn1_parser.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include <utils/lexparser.h>
#include "ietf_attributes.h"
@@ -21,7 +21,7 @@
#ifndef SHARED_KEY_H_
#define SHARED_KEY_H_
#include <utils/enumerator.h>
#include <collections/enumerator.h>
#include <utils/identification.h>
typedef struct shared_key_t shared_key_t;
@@ -20,7 +20,7 @@
#include <library.h>
#include <threading/rwlock.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
/** cache size, a power of 2 for fast modulo */
#define CACHE_SIZE 32
@@ -18,7 +18,7 @@
#include "mem_cred.h"
#include <threading/rwlock.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
typedef struct private_mem_cred_t private_mem_cred_t;
@@ -27,7 +27,7 @@ typedef struct mem_cred_t mem_cred_t;
#include <credentials/credential_set.h>
#include <credentials/certificates/crl.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
/**
* Generic in-memory credential set.
+1 -1
View File
@@ -17,7 +17,7 @@
#include <debug.h>
#include <threading/rwlock.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include <crypto/crypto_tester.h>
const char *default_plugin_name = "default";
+1 -1
View File
@@ -21,7 +21,7 @@
#include "crypto_tester.h"
#include <debug.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
typedef struct private_crypto_tester_t private_crypto_tester_t;
+1 -1
View File
@@ -30,7 +30,7 @@
#include <crypto/pkcs9.h>
#include <crypto/hashers/hasher.h>
#include <crypto/crypters/crypter.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include "pkcs7.h"
+1 -1
View File
@@ -28,7 +28,7 @@ typedef struct pkcs7_t pkcs7_t;
#include <credentials/keys/private_key.h>
#include <crypto/pkcs9.h>
#include <crypto/crypters/crypter.h>
#include <utils/enumerator.h>
#include <collections/enumerator.h>
/**
* PKCS#7 contentInfo object.
+1 -1
View File
@@ -20,7 +20,7 @@
#include <asn1/oid.h>
#include <asn1/asn1.h>
#include <asn1/asn1_parser.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include "pkcs9.h"
@@ -38,7 +38,7 @@
#include "proposal_keywords.h"
#include "proposal_keywords_static.h"
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include <threading/rwlock.h>
typedef struct private_proposal_keywords_t private_proposal_keywords_t;
+1 -1
View File
@@ -25,7 +25,7 @@ typedef enum db_type_t db_type_t;
typedef enum db_driver_t db_driver_t;
typedef struct database_t database_t;
#include <utils/enumerator.h>
#include <collections/enumerator.h>
/**
* Database column types
@@ -15,7 +15,7 @@
#include "database_factory.h"
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include <threading/mutex.h>
typedef struct private_database_factory_t private_database_factory_t;
+1 -1
View File
@@ -17,7 +17,7 @@
#include <debug.h>
#include <threading/rwlock.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
typedef struct private_fetcher_manager_t private_fetcher_manager_t;
+1 -1
View File
@@ -22,7 +22,7 @@
#include <threading/thread.h>
#include <utils/identification.h>
#include <networking/host.h>
#include <utils/hashtable.h>
#include <collections/hashtable.h>
#include <utils/backtrace.h>
#include <selectors/traffic_selector.h>
+3
View File
@@ -22,6 +22,9 @@
* @defgroup bio bio
* @ingroup libstrongswan
*
* @defgroup collections collections
* @ingroup libstrongswan
*
* @defgroup credentials credentials
* @ingroup libstrongswan
*
+2 -2
View File
@@ -24,8 +24,8 @@
#include <threading/condvar.h>
#include <threading/mutex.h>
#include <threading/thread.h>
#include <utils/hashtable.h>
#include <utils/linked_list.h>
#include <collections/hashtable.h>
#include <collections/linked_list.h>
/**
* Default minimum and maximum number of threads
@@ -17,7 +17,7 @@
#include <debug.h>
#include <asn1/asn1.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include <credentials/certificates/x509.h>
typedef struct private_constraints_validator_t private_constraints_validator_t;
@@ -23,7 +23,7 @@
#include <chunk.h>
#include <threading/thread_value.h>
#include <threading/mutex.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
/* Older mysql.h headers do not define it, but we need it. It is not returned
* in in MySQL 4 by default, but by MySQL 5. To avoid this problem, we catch
@@ -43,7 +43,7 @@
#include <openssl/x509v3.h>
#include <debug.h>
#include <utils/enumerator.h>
#include <collections/enumerator.h>
#include <credentials/certificates/x509.h>
typedef struct private_openssl_crl_t private_openssl_crl_t;
@@ -49,7 +49,7 @@
#include <debug.h>
#include <asn1/oid.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
typedef struct private_openssl_x509_t private_openssl_x509_t;
@@ -17,7 +17,7 @@
#include "pkcs11_manager.h"
#include <debug.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
typedef struct private_pkcs11_creds_t private_pkcs11_creds_t;
@@ -23,7 +23,7 @@
#include <library.h>
#include <debug.h>
#include <threading/mutex.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
typedef struct private_pkcs11_library_t private_pkcs11_library_t;
@@ -31,7 +31,7 @@ typedef struct pkcs11_library_t pkcs11_library_t;
#include <enum.h>
#include <chunk.h>
#include <utils/enumerator.h>
#include <collections/enumerator.h>
/**
* Optional PKCS#11 features some libraries support, some not
@@ -16,7 +16,7 @@
#include "pkcs11_manager.h"
#include <debug.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include <threading/thread.h>
#include "pkcs11_library.h"
@@ -20,7 +20,7 @@
#include <library.h>
#include <debug.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include <threading/mutex.h>
#include <threading/rwlock.h>
+2 -2
View File
@@ -25,8 +25,8 @@
#include <debug.h>
#include <library.h>
#include <integrity_checker.h>
#include <utils/hashtable.h>
#include <utils/linked_list.h>
#include <collections/hashtable.h>
#include <collections/linked_list.h>
#include <plugins/plugin.h>
typedef struct private_plugin_loader_t private_plugin_loader_t;
+1 -1
View File
@@ -24,7 +24,7 @@
typedef struct plugin_loader_t plugin_loader_t;
#include <utils/enumerator.h>
#include <collections/enumerator.h>
/* to avoid circular references we can't include plugin_feature.h */
struct plugin_feature_t;
+1 -1
View File
@@ -27,7 +27,7 @@
#include <asn1/asn1.h>
#include <asn1/asn1_parser.h>
#include <utils/identification.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include <credentials/certificates/x509.h>
#include <credentials/ietf_attributes/ietf_attributes.h>
#include <credentials/keys/private_key.h>
+1 -1
View File
@@ -35,7 +35,7 @@
#include <asn1/asn1_parser.h>
#include <crypto/hashers/hasher.h>
#include <credentials/keys/private_key.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include <utils/identification.h>
#include <selectors/traffic_selector.h>
+1 -1
View File
@@ -27,7 +27,7 @@ typedef struct revoked_t revoked_t;
#include <asn1/asn1_parser.h>
#include <credentials/certificates/x509.h>
#include <credentials/keys/private_key.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
/**
* entry for a revoked certificate
@@ -21,7 +21,7 @@
#include <asn1/oid.h>
#include <asn1/asn1.h>
#include <utils/identification.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include <debug.h>
#include <credentials/certificates/x509.h>
#include <credentials/keys/private_key.h>
@@ -23,7 +23,7 @@
#include <asn1/asn1.h>
#include <asn1/asn1_parser.h>
#include <utils/identification.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include <debug.h>
#include <library.h>
+1 -1
View File
@@ -23,7 +23,7 @@
#include <asn1/asn1.h>
#include <asn1/asn1_parser.h>
#include <credentials/keys/private_key.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include <utils/identification.h>
typedef struct private_x509_pkcs10_t private_x509_pkcs10_t;
@@ -21,7 +21,7 @@
#include <threading/condvar.h>
#include <threading/semaphore.h>
#include <threading/mutex.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
typedef struct private_callback_job_t private_callback_job_t;
+1 -1
View File
@@ -27,7 +27,7 @@
#include <threading/condvar.h>
#include <threading/mutex.h>
#include <threading/thread_value.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
typedef struct private_processor_t private_processor_t;
@@ -22,7 +22,7 @@
#include "traffic_selector.h"
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include <utils/identification.h>
#include <debug.h>
+1 -1
View File
@@ -32,7 +32,7 @@
#include "settings.h"
#include "debug.h"
#include "utils/linked_list.h"
#include "collections/linked_list.h"
#include "threading/rwlock.h"
#define MAX_INCLUSION_LEVEL 10
+1 -1
View File
@@ -25,7 +25,7 @@
typedef struct settings_t settings_t;
#include "utils.h"
#include "utils/enumerator.h"
#include "collections/enumerator.h"
/**
* Convert a string value returned by a key/value enumerator to a boolean.
+1 -1
View File
@@ -36,7 +36,7 @@ static inline pid_t gettid()
#include <threading/thread_value.h>
#include <threading/mutex.h>
#include <utils/linked_list.h>
#include <collections/linked_list.h>
#include "thread.h"
+1 -1
View File
@@ -29,7 +29,7 @@
#include "enum.h"
#include "debug.h"
#include "utils/enumerator.h"
#include "collections/enumerator.h"
ENUM(status_names, SUCCESS, NEED_MORE,
"SUCCESS",
+1 -1
View File
@@ -54,7 +54,7 @@ struct private_backtrace_t {
#ifdef HAVE_BFD_H
#include <bfd.h>
#include <utils/hashtable.h>
#include <collections/hashtable.h>
#include <threading/mutex.h>
/**
+1 -1
View File
@@ -30,7 +30,7 @@ typedef enum id_match_t id_match_t;
typedef enum id_part_t id_part_t;
#include <chunk.h>
#include <utils/enumerator.h>
#include <collections/enumerator.h>
/**
* Matches returned from identification_t.match
+1 -1
View File
@@ -34,7 +34,7 @@
#include <library.h>
#include <debug.h>
#include <utils/backtrace.h>
#include <utils/hashtable.h>
#include <collections/hashtable.h>
typedef struct private_leak_detective_t private_leak_detective_t;