Added a (not yet implemented) plugin_t method to reload plugin configuration

This commit is contained in:
Martin Willi
2011-04-15 10:07:13 +02:00
parent 787b5884aa
commit c55818ebb0
89 changed files with 97 additions and 0 deletions
@@ -70,6 +70,7 @@ plugin_t *addrblock_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -87,6 +87,7 @@ plugin_t *android_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -62,6 +62,7 @@ plugin_t *coupling_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
+1
View File
@@ -71,6 +71,7 @@ plugin_t *dhcp_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -75,6 +75,7 @@ plugin_t *duplicheck_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -46,6 +46,7 @@ plugin_t *eap_aka_plugin_create()
INIT(this,
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
);
@@ -76,6 +76,7 @@ plugin_t *eap_aka_3gpp2_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -48,6 +48,7 @@ plugin_t *eap_gtc_plugin_create()
INIT(this,
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
);
@@ -44,6 +44,7 @@ plugin_t *eap_identity_plugin_create()
INIT(this,
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
);
@@ -44,6 +44,7 @@ plugin_t *eap_md5_plugin_create()
INIT(this,
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
);
@@ -45,6 +45,7 @@ plugin_t *eap_mschapv2_plugin_create()
INIT(this,
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
);
@@ -45,6 +45,7 @@ plugin_t *eap_peap_plugin_create()
INIT(this,
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
);
@@ -160,6 +160,7 @@ plugin_t *eap_radius_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -46,6 +46,7 @@ plugin_t *eap_sim_plugin_create()
INIT(this,
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
);
@@ -78,6 +78,7 @@ plugin_t *eap_sim_file_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -60,6 +60,7 @@ plugin_t *eap_sim_pcsc_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -69,6 +69,7 @@ plugin_t *eap_simaka_pseudonym_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -69,6 +69,7 @@ plugin_t *eap_simaka_reauth_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -94,6 +94,7 @@ plugin_t *eap_simaka_sql_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -45,6 +45,7 @@ plugin_t *eap_tls_plugin_create()
INIT(this,
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
);
@@ -44,6 +44,7 @@ plugin_t *eap_tnc_plugin_create()
INIT(this,
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
);
@@ -45,6 +45,7 @@ plugin_t *eap_ttls_plugin_create()
INIT(this,
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
);
+1
View File
@@ -69,6 +69,7 @@ plugin_t *farp_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
+1
View File
@@ -151,6 +151,7 @@ plugin_t *ha_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
+1
View File
@@ -62,6 +62,7 @@ plugin_t *led_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -196,6 +196,7 @@ plugin_t *load_tester_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -60,6 +60,7 @@ plugin_t *maemo_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -85,6 +85,7 @@ plugin_t *medcli_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -77,6 +77,7 @@ plugin_t *medsrv_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
+1
View File
@@ -112,6 +112,7 @@ plugin_t *nm_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
+1
View File
@@ -734,6 +734,7 @@ plugin_t *smp_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -59,6 +59,7 @@ plugin_t *socket_default_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -59,6 +59,7 @@ plugin_t *socket_dynamic_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -59,6 +59,7 @@ plugin_t *socket_raw_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
+1
View File
@@ -91,6 +91,7 @@ plugin_t *sql_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -60,6 +60,7 @@ plugin_t *stroke_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -165,6 +165,7 @@ plugin_t *tnc_imc_plugin_create()
INIT(this,
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
);
@@ -165,6 +165,7 @@ plugin_t *tnc_imv_plugin_create()
INIT(this,
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
);
@@ -42,6 +42,7 @@ plugin_t *tnccs_11_plugin_create()
INIT(this,
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
);
@@ -42,6 +42,7 @@ plugin_t *tnccs_20_plugin_create()
INIT(this,
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
);
@@ -42,6 +42,7 @@ plugin_t *tnccs_dynamic_plugin_create()
INIT(this,
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
);
+1
View File
@@ -87,6 +87,7 @@ plugin_t *uci_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -115,6 +115,7 @@ plugin_t *unit_tester_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -61,6 +61,7 @@ plugin_t *updown_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -69,6 +69,7 @@ plugin_t *whitelist_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
+1
View File
@@ -61,6 +61,7 @@ plugin_t *attr_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -77,6 +77,7 @@ plugin_t *attr_sql_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -57,6 +57,7 @@ plugin_t *kernel_klips_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -60,6 +60,7 @@ plugin_t *kernel_netlink_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -57,6 +57,7 @@ plugin_t *kernel_pfkey_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -57,6 +57,7 @@ plugin_t *kernel_pfroute_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -61,6 +61,7 @@ plugin_t *resolve_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -56,6 +56,7 @@ plugin_t *aes_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -67,6 +67,7 @@ plugin_t *af_alg_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -56,6 +56,7 @@ plugin_t *agent_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -57,6 +57,7 @@ plugin_t *blowfish_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -59,6 +59,7 @@ plugin_t *ccm_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -61,6 +61,7 @@ plugin_t *constraints_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -59,6 +59,7 @@ plugin_t *ctr_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -61,6 +61,7 @@ plugin_t *curl_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -56,6 +56,7 @@ plugin_t *des_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -56,6 +56,7 @@ plugin_t *dnskey_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -57,6 +57,7 @@ plugin_t *fips_prf_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -59,6 +59,7 @@ plugin_t *gcm_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -149,6 +149,7 @@ plugin_t *gcrypt_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -66,6 +66,7 @@ plugin_t *gmp_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -60,6 +60,7 @@ plugin_t *hmac_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -56,6 +56,7 @@ plugin_t *ldap_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -56,6 +56,7 @@ plugin_t *md4_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -56,6 +56,7 @@ plugin_t *md5_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -64,6 +64,7 @@ plugin_t *mysql_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -255,6 +255,7 @@ plugin_t *openssl_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -143,6 +143,7 @@ plugin_t *padlock_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -62,6 +62,7 @@ plugin_t *pem_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -66,6 +66,7 @@ plugin_t *pgp_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -62,6 +62,7 @@ plugin_t *pkcs1_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -141,6 +141,7 @@ plugin_t *pkcs11_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
+9
View File
@@ -21,6 +21,8 @@
#ifndef PLUGIN_H_
#define PLUGIN_H_
#include <utils.h>
typedef struct plugin_t plugin_t;
/**
@@ -35,6 +37,13 @@ struct plugin_t {
*/
char* (*get_name)(plugin_t *this);
/**
* Try to reload plugin configuration.
*
* @return TRUE if reloaded, FALSE if reloading not supporty by plugin
*/
bool (*reload)(plugin_t *this);
/**
* Destroy a plugin instance.
*/
@@ -56,6 +56,7 @@ plugin_t *pubkey_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -56,6 +56,7 @@ plugin_t *random_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -61,6 +61,7 @@ plugin_t *revocation_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -59,6 +59,7 @@ plugin_t *sha1_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -56,6 +56,7 @@ plugin_t *sha2_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -65,6 +65,7 @@ plugin_t *soup_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -56,6 +56,7 @@ plugin_t *sqlite_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -128,6 +128,7 @@ plugin_t *test_vectors_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -79,6 +79,7 @@ plugin_t *x509_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
@@ -60,6 +60,7 @@ plugin_t *xcbc_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
},
+1
View File
@@ -41,6 +41,7 @@ plugin_t *xauth_plugin_create()
INIT(this,
.plugin = {
.get_name = _get_name,
.reload = (void*)return_false,
.destroy = _destroy,
},
);