Added the capability of configuring the ATS Address, port, and whether or not SSL should be used for communications.
This commit is contained in:
@@ -29,6 +29,9 @@
|
||||
#include <shlwapi.h>
|
||||
|
||||
//===[ External data ]=====================================================
|
||||
extern
|
||||
char clientConfigFolderPartialPath[];
|
||||
|
||||
extern
|
||||
char mechConfigFolderPartialPath[];
|
||||
|
||||
@@ -54,6 +57,7 @@ BOOL APIENTRY DllMain(
|
||||
//=======================================================================--
|
||||
{
|
||||
BOOL retStatus = TRUE;
|
||||
char programFilesFolder[MAX_PATH];
|
||||
|
||||
switch (ul_reason_for_call)
|
||||
{
|
||||
@@ -61,13 +65,17 @@ BOOL APIENTRY DllMain(
|
||||
{
|
||||
g_hModule = hModule;
|
||||
|
||||
// Setup the path to the auth mechanisms config folder
|
||||
// Setup the path to the client and auth mechanisms config folders
|
||||
if (SHGetFolderPath(NULL,
|
||||
CSIDL_PROGRAM_FILES,
|
||||
NULL,
|
||||
0,
|
||||
mechConfigFolder) == 0)
|
||||
programFilesFolder) == 0)
|
||||
{
|
||||
strcpy(clientConfigFolder, programFilesFolder);
|
||||
PathAppend(clientConfigFolder, clientConfigFolderPartialPath);
|
||||
|
||||
strcpy(mechConfigFolder, programFilesFolder);
|
||||
PathAppend(mechConfigFolder, mechConfigFolderPartialPath);
|
||||
|
||||
// Initialize the library
|
||||
|
||||
Reference in New Issue
Block a user