openvpn-gui/plap
Selva Nair 9417991168 Use a list instead of array for connections list
Currently we use an array of connection pointers which needs
to be reallocated when space runs out. But, that happens from
the main thread while the status thread may be referring to those
pointers. Its very hard to fence against possible invalid memory
access. Instead, use a list so that connection pointer never
changes once created.

The connection list is no longer recreated from scratch even when
no connections are active. This means configs added while GUI is
running will always appear at the bottom of the root group listing
until the GUI is restarted.

TODO: This behaviour could be improved by scanning through the groups to
graft new configs at the right branch in the config-group tree.

v2: removed unused references to SetMenuStatusById()

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-01-19 14:08:15 -08:00
..
Makefile.am Makefile.am: Fix dist* targets to include all required files 2023-01-19 12:30:10 -08:00
openvpn-plap-install.reg Implement Pre-Logon Access Provider for start before logon 2022-10-17 11:05:44 -04:00
openvpn-plap-res.rc Enable MSVC build of libopenvpn_plap.dll 2022-10-17 11:05:44 -04:00
openvpn-plap-uninstall.reg Implement Pre-Logon Access Provider for start before logon 2022-10-17 11:05:44 -04:00
openvpn-plap.manifest Implement Pre-Logon Access Provider for start before logon 2022-10-17 11:05:44 -04:00
openvpn_plap.def Enable MSVC build of libopenvpn_plap.dll 2022-10-17 11:05:44 -04:00
plap_common.c Open PLAP debug file in unicode mode 2022-12-08 18:17:19 -08:00
plap_common.h Implement Pre-Logon Access Provider for start before logon 2022-10-17 11:05:44 -04:00
plap_connection.c Localization of strings in PLAP dialog 2022-12-08 18:17:19 -08:00
plap_connection.h Implement Pre-Logon Access Provider for start before logon 2022-10-17 11:05:44 -04:00
plap_dll.c Implement Pre-Logon Access Provider for start before logon 2022-10-17 11:05:44 -04:00
plap_dll.h Implement Pre-Logon Access Provider for start before logon 2022-10-17 11:05:44 -04:00
plap_provider.c Implement Pre-Logon Access Provider for start before logon 2022-10-17 11:05:44 -04:00
resource.h Add a BMP image for PLAP tile and use it 2022-10-17 11:05:44 -04:00
stub.c Use a list instead of array for connections list 2023-01-19 14:08:15 -08:00
test-plap-res.rc Add a test program for PLAP provider module 2022-10-17 11:05:44 -04:00
test-plap.manifest Add a test program for PLAP provider module 2022-10-17 11:05:44 -04:00
test_plap.cpp Add a test program for PLAP provider module 2022-10-17 11:05:44 -04:00
ui_glue.c Use a list instead of array for connections list 2023-01-19 14:08:15 -08:00
ui_glue.h Add a progress dialog during Connect() 2022-10-17 11:05:44 -04:00