test-vectors: Use plugin features
authorTobias Brunner <tobias@strongswan.org>
Fri, 7 Jun 2013 17:35:24 +0000 (19:35 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 11 Jun 2013 09:18:18 +0000 (11:18 +0200)
src/libstrongswan/plugins/test_vectors/test_vectors_plugin.c

index 4a87432..cd0a12a 100644 (file)
@@ -110,6 +110,17 @@ METHOD(plugin_t, get_name, char*,
        return "test-vectors";
 }
 
+METHOD(plugin_t, get_features, int,
+       private_test_vectors_plugin_t *this, plugin_feature_t *features[])
+{
+       static plugin_feature_t f[] = {
+               PLUGIN_NOOP,
+                       PLUGIN_PROVIDE(CUSTOM, "test-vectors"),
+       };
+       *features = f;
+       return countof(f);
+}
+
 METHOD(plugin_t, destroy, void,
        private_test_vectors_plugin_t *this)
 {
@@ -128,7 +139,7 @@ plugin_t *test_vectors_plugin_create()
                .public = {
                        .plugin = {
                                .get_name = _get_name,
-                               .reload = (void*)return_false,
+                               .get_features = _get_features,
                                .destroy = _destroy,
                        },
                },