diff options
author | Martin Willi <martin@revosec.ch> | 2011-06-28 16:49:25 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-10-14 10:05:45 +0200 |
commit | d6c7b30cad4a9b25a29eac3e712ed0df031b9e28 (patch) | |
tree | d596c2ef0b17ad30b721e3e779e8c55b28c4ee32 /src/libstrongswan/plugins/af_alg/af_alg_crypter.h | |
parent | 3bc79461cdc3e1a67fdf20dcfd272ec4974f6e14 (diff) | |
download | strongswan-d6c7b30cad4a9b25a29eac3e712ed0df031b9e28.tar.bz2 strongswan-d6c7b30cad4a9b25a29eac3e712ed0df031b9e28.tar.xz |
Add features support to af_alg plugin
Diffstat (limited to 'src/libstrongswan/plugins/af_alg/af_alg_crypter.h')
-rw-r--r-- | src/libstrongswan/plugins/af_alg/af_alg_crypter.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/libstrongswan/plugins/af_alg/af_alg_crypter.h b/src/libstrongswan/plugins/af_alg/af_alg_crypter.h index ed7799cc8..ad2d42a97 100644 --- a/src/libstrongswan/plugins/af_alg/af_alg_crypter.h +++ b/src/libstrongswan/plugins/af_alg/af_alg_crypter.h @@ -23,8 +23,12 @@ typedef struct af_alg_crypter_t af_alg_crypter_t; +#include <plugins/plugin.h> #include <crypto/crypters/crypter.h> +/** Number of crypters */ +#define AF_ALG_CRYPTER 25 + /** * Implementation of signers using AF_ALG. */ @@ -47,10 +51,11 @@ af_alg_crypter_t *af_alg_crypter_create(encryption_algorithm_t algo, size_t key_size); /** - * Probe algorithms and register af_alg_crypter_create(). + * Probe algorithms and return plugin features. * - * @param plugin plugin name to register algorithms for + * @param features plugin features to create + * @param pos current position in features */ -void af_alg_crypter_probe(char *plugin); +void af_alg_crypter_probe(plugin_feature_t *features, int *pos); #endif /** AF_ALG_CRYPTER_H_ @}*/ |