]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
tls-test: Make plugin list configurable via environment variable
authorTobias Brunner <tobias@strongswan.org>
Thu, 3 Sep 2020 13:56:14 +0000 (15:56 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 12 Feb 2021 13:35:23 +0000 (14:35 +0100)
scripts/tls_test.c

index 4e3a1ccfa495d2d8192002bc829b8b088da1371f..f95494683c2664f4f2ad16431113cc6fa506aaeb 100644 (file)
@@ -256,11 +256,14 @@ static void cleanup()
  */
 static void init()
 {
+       char *plugins;
+
        library_init(NULL, "tls_test");
 
        dbg = dbg_tls;
 
-       lib->plugins->load(lib->plugins, PLUGINS);
+       plugins = getenv("PLUGINS") ?: PLUGINS;
+       lib->plugins->load(lib->plugins, plugins);
 
        creds = mem_cred_create();
        lib->credmgr->add_set(lib->credmgr, &creds->set);