mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
crypt-burn: Accept a PLUGINS env var to configure plugins to load
This commit is contained in:
parent
f17861dca9
commit
d5ce572d99
@ -25,12 +25,11 @@ int main(int argc, char *argv[])
|
||||
size_t bs;
|
||||
int i = 0, limit = 0;
|
||||
|
||||
|
||||
library_init(NULL, "crypt_burn");
|
||||
lib->plugins->load(lib->plugins, PLUGINS);
|
||||
lib->plugins->load(lib->plugins, getenv("PLUGINS") ?: PLUGINS);
|
||||
atexit(library_deinit);
|
||||
|
||||
printf("loaded: %s\n", PLUGINS);
|
||||
fprintf(stderr, "loaded: %s\n", lib->plugins->loaded_plugins(lib->plugins));
|
||||
|
||||
memset(buffer, 0x12, sizeof(buffer));
|
||||
memset(assoc, 0x34, sizeof(assoc));
|
||||
|
Loading…
x
Reference in New Issue
Block a user