make use of the crypto_tester in the crypto_factory
[strongswan.git] / src / libstrongswan / library.c
index 2f370b4..8e5a8a6 100644 (file)
@@ -113,11 +113,11 @@ void library_init(char *settings)
        pfh->add_handler(pfh, 'Y', identification_printf_hook,
                                         PRINTF_HOOK_ARGTYPE_POINTER, PRINTF_HOOK_ARGTYPE_END);
        
+       this->public.settings = settings_create(settings);
        this->public.crypto = crypto_factory_create();
        this->public.creds = credential_factory_create();
        this->public.fetcher = fetcher_manager_create();
        this->public.db = database_factory_create();
-       this->public.settings = settings_create(settings);
        this->public.plugins = plugin_loader_create();
 }