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
@@ -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,
},
},