removed trailing spaces ([[:space:]]+$)
This commit is contained in:
@@ -24,12 +24,12 @@ typedef struct private_attr_plugin_t private_attr_plugin_t;
|
||||
* private data of attr plugin
|
||||
*/
|
||||
struct private_attr_plugin_t {
|
||||
|
||||
|
||||
/**
|
||||
* implements plugin interface
|
||||
*/
|
||||
attr_plugin_t public;
|
||||
|
||||
|
||||
/**
|
||||
* CFG attributes provider
|
||||
*/
|
||||
@@ -52,12 +52,12 @@ static void destroy(private_attr_plugin_t *this)
|
||||
plugin_t *plugin_create()
|
||||
{
|
||||
private_attr_plugin_t *this = malloc_thing(private_attr_plugin_t);
|
||||
|
||||
|
||||
this->public.plugin.destroy = (void(*)(plugin_t*))destroy;
|
||||
|
||||
|
||||
this->provider = attr_provider_create();
|
||||
charon->attributes->add_provider(charon->attributes, &this->provider->provider);
|
||||
|
||||
|
||||
return &this->public.plugin;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ typedef struct attr_plugin_t attr_plugin_t;
|
||||
* Plugin providing configuration attribute through strongswan.conf.
|
||||
*/
|
||||
struct attr_plugin_t {
|
||||
|
||||
|
||||
/**
|
||||
* implements plugin interface
|
||||
*/
|
||||
|
||||
@@ -28,12 +28,12 @@ typedef struct attribute_entry_t attribute_entry_t;
|
||||
* private data of attr_provider
|
||||
*/
|
||||
struct private_attr_provider_t {
|
||||
|
||||
|
||||
/**
|
||||
* public functions
|
||||
*/
|
||||
attr_provider_t public;
|
||||
|
||||
|
||||
/**
|
||||
* List of attributes, attribute_entry_t
|
||||
*/
|
||||
@@ -75,7 +75,7 @@ static enumerator_t* create_attribute_enumerator(
|
||||
static void destroy(private_attr_provider_t *this)
|
||||
{
|
||||
attribute_entry_t *entry;
|
||||
|
||||
|
||||
while (this->attributes->remove_last(this->attributes,
|
||||
(void**)&entry) == SUCCESS)
|
||||
{
|
||||
@@ -95,7 +95,7 @@ static void add_entry(private_attr_provider_t *this, char *key, int nr,
|
||||
attribute_entry_t *entry;
|
||||
host_t *host;
|
||||
char *str;
|
||||
|
||||
|
||||
str = lib->settings->get_str(lib->settings, "charon.%s%d", NULL, key, nr);
|
||||
if (str)
|
||||
{
|
||||
@@ -103,7 +103,7 @@ static void add_entry(private_attr_provider_t *this, char *key, int nr,
|
||||
if (host)
|
||||
{
|
||||
entry = malloc_thing(attribute_entry_t);
|
||||
|
||||
|
||||
if (host->get_family(host) == AF_INET6)
|
||||
{
|
||||
switch (type)
|
||||
@@ -133,22 +133,22 @@ attr_provider_t *attr_provider_create(database_t *db)
|
||||
{
|
||||
private_attr_provider_t *this;
|
||||
int i;
|
||||
|
||||
|
||||
this = malloc_thing(private_attr_provider_t);
|
||||
|
||||
|
||||
this->public.provider.acquire_address = (host_t*(*)(attribute_provider_t *this, char*, identification_t *, host_t *))return_null;
|
||||
this->public.provider.release_address = (bool(*)(attribute_provider_t *this, char*,host_t *, identification_t*))return_false;
|
||||
this->public.provider.create_attribute_enumerator = (enumerator_t*(*)(attribute_provider_t*, identification_t *id))create_attribute_enumerator;
|
||||
this->public.destroy = (void(*)(attr_provider_t*))destroy;
|
||||
|
||||
|
||||
this->attributes = linked_list_create();
|
||||
|
||||
|
||||
for (i = 1; i <= SERVER_MAX; i++)
|
||||
{
|
||||
add_entry(this, "dns", i, INTERNAL_IP4_DNS);
|
||||
add_entry(this, "nbns", i, INTERNAL_IP4_NBNS);
|
||||
}
|
||||
|
||||
|
||||
return &this->public;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,12 +29,12 @@ typedef struct attr_provider_t attr_provider_t;
|
||||
* Provide configuration attributes through static strongswan.conf definition.
|
||||
*/
|
||||
struct attr_provider_t {
|
||||
|
||||
|
||||
/**
|
||||
* Implements attribute provider interface
|
||||
*/
|
||||
attribute_provider_t provider;
|
||||
|
||||
|
||||
/**
|
||||
* Destroy a attr_provider instance.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user