Added the capability of configuring the ATS Address, port, and whether or not SSL should be used for communications.

This commit is contained in:
Juan Carlos Luciani
2006-09-22 16:24:03 +00:00
parent 6e12d33817
commit 637726123c
7 changed files with 171 additions and 51 deletions

View File

@@ -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