Moving micasa 1.5 trunk to Novell forge.
This commit is contained in:
BIN
c_test/displayCache/DisplayMiCasa.ncb
Normal file
BIN
c_test/displayCache/DisplayMiCasa.ncb
Normal file
Binary file not shown.
21
c_test/displayCache/DisplayMiCasa.sln
Normal file
21
c_test/displayCache/DisplayMiCasa.sln
Normal file
@@ -0,0 +1,21 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 8.00
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sshtst", "sshtst.vcproj", "{48BF7628-6AD4-4FF7-AD10-AA87F541385E}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfiguration) = preSolution
|
||||
Debug = Debug
|
||||
Release = Release
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfiguration) = postSolution
|
||||
{48BF7628-6AD4-4FF7-AD10-AA87F541385E}.Debug.ActiveCfg = Debug|Win32
|
||||
{48BF7628-6AD4-4FF7-AD10-AA87F541385E}.Debug.Build.0 = Debug|Win32
|
||||
{48BF7628-6AD4-4FF7-AD10-AA87F541385E}.Release.ActiveCfg = Release|Win32
|
||||
{48BF7628-6AD4-4FF7-AD10-AA87F541385E}.Release.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
BIN
c_test/displayCache/DisplayMiCasa.suo
Normal file
BIN
c_test/displayCache/DisplayMiCasa.suo
Normal file
Binary file not shown.
19
c_test/displayCache/Makefile
Normal file
19
c_test/displayCache/Makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
#
|
||||
# configure environment
|
||||
#
|
||||
TARGET = sshtst
|
||||
include global.mak
|
||||
include defaults.$(PLAT)
|
||||
include rules.mak
|
||||
|
||||
BIN_NAME = $(TARGET).exe
|
||||
|
||||
#
|
||||
# target object and source files
|
||||
#
|
||||
include objs.$(PLAT)
|
||||
|
||||
#
|
||||
# targets
|
||||
#
|
||||
include target
|
||||
374
c_test/displayCache/displaycache.c
Normal file
374
c_test/displayCache/displaycache.c
Normal file
@@ -0,0 +1,374 @@
|
||||
/**************************************************************************
|
||||
%name: displaycache.c %
|
||||
%version: 3 %
|
||||
%date_modified: Fri May 20 15:09:50 2005 %
|
||||
|
||||
**************************************************************************/
|
||||
|
||||
|
||||
/***************************************************************
|
||||
*** This code is available at "www.developer.novell.com/ndk/ **
|
||||
***************************************************************/
|
||||
|
||||
|
||||
/* Sample code for C Language SecretStore Client Service APIs */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <micasa_mgmd.h>
|
||||
#include <micasa.h>
|
||||
|
||||
|
||||
#define GSS_BLD_STR "4.0.1"
|
||||
|
||||
#define SSCS_BINARY_TYPE_F 0x00000004L
|
||||
static char SSCS_APP_SECRET[] = {'S','S','_','A','p','p', 0};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
/*
|
||||
* Global data
|
||||
*/
|
||||
int optErr = 1; // if error message should be printed
|
||||
int optIdx = 1; // index into parent argv vector
|
||||
int optionString = 1; // character checked for validity
|
||||
char *optArg = NULL; // argument associated with option
|
||||
|
||||
#define BADCHAR (int)'?'
|
||||
#define ERRMSG ""
|
||||
|
||||
/* interactive flag */
|
||||
static int aFlag = 1;
|
||||
|
||||
|
||||
void Pause()
|
||||
{ /* beginning of the call */
|
||||
/* ############################## CODE STARTS HERE ############################ */
|
||||
|
||||
if(aFlag)
|
||||
{
|
||||
}
|
||||
/* ########################## CODE ENDS HERE ######################### */
|
||||
} /* end of Pause */
|
||||
|
||||
|
||||
|
||||
/* */
|
||||
/*
|
||||
* NAME - main
|
||||
*
|
||||
* DESCRIPTION
|
||||
* SecretStore SharedSecret test program.
|
||||
*
|
||||
*/
|
||||
void main
|
||||
(
|
||||
int argc,
|
||||
char **argv
|
||||
)
|
||||
{ /* beginning of the call */
|
||||
/* ########################## DECLARATIONS START HERE ######################### */
|
||||
|
||||
SSCS_SECRETSTORE_T ssid = {0};
|
||||
SSCS_SECRETSTORE_INFO_T ssInfo = {0};
|
||||
SSCS_KEYCHAIN_ID_T keyChainID = {0};
|
||||
|
||||
SSCS_READEXT_T rInfo = {0};
|
||||
void *ssContext = NULL;
|
||||
|
||||
int appTstFlag = 0, multiCredTstFlag = 0, multiEntryTstFlag = 0;
|
||||
char *secret;
|
||||
|
||||
|
||||
static char multiEntryCredSet[] = {'S','h','a','r','e','d','S','e','c','r','e','t',' ','M','u','l','t','i','p','l','e',' ','E','n','t','r','y',' ','C','r','e','d','S','e','t',' ','T','e','s','t',0};
|
||||
|
||||
int rcode = NSSCS_SUCCESS;
|
||||
int exCount = 1, i, j, remLock = 0, unlock = 0,
|
||||
master = 0, rCount = 1;
|
||||
long opCount, bufSize = NSSCS_MAX_SECRET_BUF_LEN;
|
||||
unsigned long startTime, endTime, pFlag = 0L, count = 0;
|
||||
|
||||
SSCS_SECRET_ID_T secretID = {0};
|
||||
|
||||
// SharedSecret data
|
||||
void *secretHandle; // handle for passing to functions
|
||||
SSCS_SH_SECRET_ID_T shSecret; // SharedSecret struct
|
||||
char *key = NULL;
|
||||
unsigned char *value = NULL;
|
||||
int kLen = 0;
|
||||
int vLen = 0;
|
||||
|
||||
SSCS_SH_SECRET_ID_LIST_T shSecIDList = {0};
|
||||
|
||||
|
||||
SSCS_BASIC_CREDENTIAL credential = {0};
|
||||
SSCS_SECRET_ID_T appSecretId = {0};
|
||||
SSCS_SECRET_ID_T sharedSecretId = {0};
|
||||
|
||||
SSCS_EXT_T ext = {0};
|
||||
|
||||
|
||||
|
||||
/* ############################## CODE STARTS HERE ############################ */
|
||||
|
||||
if((secret = (char *)malloc(NSSCS_MAX_SECRET_BUF_LEN)) == NULL)
|
||||
{
|
||||
|
||||
printf("\nSecret Buffer Malloc Failed!!!\n");
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
if((value = (unsigned char *)malloc(NSSCS_MAX_SECRET_BUF_LEN)) == NULL)
|
||||
{
|
||||
|
||||
printf("\nValue Buffer Malloc Failed!!!\n");
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
if((key = (char *)malloc(NSSCS_MAX_SECRET_ID_LEN)) == NULL)
|
||||
{
|
||||
|
||||
printf("\nKey Buffer Malloc Failed!!!\n");
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
memset(key, 0, NSSCS_MAX_SECRET_ID_LEN);
|
||||
memset(value, 0, NSSCS_MAX_SECRET_BUF_LEN);
|
||||
memset(secret, 0, NSSCS_MAX_SECRET_BUF_LEN);
|
||||
|
||||
//printf("\nSecretStore Client Service NDK Test Program version %s ...\n\n", GSS_BLD_STR);
|
||||
|
||||
// Initialize the SID to the user ID if the owner
|
||||
|
||||
strcpy(ssid.ssName, "testuser");
|
||||
ssid.version = NSSCS_VERSION_NUMBER;
|
||||
|
||||
// printf("Execution Count Set to: [%d]\n", exCount);
|
||||
// printf("Initializing...\n");
|
||||
|
||||
startTime = time(NULL);
|
||||
// printf("Done...\n");
|
||||
// Pause();
|
||||
|
||||
|
||||
if((ssContext = miCASAOpenSecretStoreCache(&ssid, 0, NULL)) == NULL)
|
||||
{
|
||||
rcode = NSSCS_E_CANT_OPEN_CLIENT_CACHE;
|
||||
printf("\nCache Failed to Open!!!\n");
|
||||
goto ERROR_1;
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("\nCache Opened...\n");
|
||||
}
|
||||
|
||||
keyChainID.len = SSCS_S_KC_ID_CHARS;
|
||||
strcpy(keyChainID.keychainID, SSCS_SESSION_KEY_CHAIN_ID);
|
||||
|
||||
for(j = 0, opCount = 0; j < exCount; j++)
|
||||
{
|
||||
|
||||
|
||||
// ***************************************************
|
||||
// ********* Enumerting Secrets *********
|
||||
// ***************************************************
|
||||
|
||||
|
||||
printf("\nEnumerating the Secrets ....\r\n ");
|
||||
|
||||
shSecIDList.enumHandle = 1;
|
||||
shSecIDList.returnedIDs = 20;
|
||||
shSecIDList.secIDList = (SSCS_SH_SECRET_ID_T *)malloc(20 * sizeof(SSCS_SH_SECRET_ID_T));
|
||||
if(shSecIDList.secIDList)
|
||||
{
|
||||
memset(shSecIDList.secIDList, 0 , 20 * sizeof(SSCS_SH_SECRET_ID_T));
|
||||
do
|
||||
{
|
||||
if((rcode = miCASAEnumerateSecretIDs(ssContext, &keyChainID, 0, NULL, &shSecIDList, NULL)) == NSSCS_SUCCESS)
|
||||
{
|
||||
if (shSecIDList.returnedIDs > 0)
|
||||
{
|
||||
for(i = 0; i < (int)shSecIDList.returnedIDs; i++)
|
||||
{
|
||||
if(shSecIDList.secIDList[i].type & SSCS_APPLICATION_TYPE_F)
|
||||
{
|
||||
printf("\nSS_App:\r\n");
|
||||
}
|
||||
else if(shSecIDList.secIDList[i].type & SSCS_CREDENTIAL_TYPE_F)
|
||||
{
|
||||
printf("\nSS_CredSet:\r\n");
|
||||
}
|
||||
else if(shSecIDList.secIDList[i].type & SSCS_BINARY_TYPE_F)
|
||||
{
|
||||
printf("\nSS_Binary:\r\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("\n Unsupported SecretID type .... ");
|
||||
}
|
||||
|
||||
//printf("\nLength of the SecretID [%ld]\n", shSecIDList.secIDList[i].len);
|
||||
printf("SecretID [%s]\n", shSecIDList.secIDList[i].name);
|
||||
|
||||
if(shSecIDList.secIDList[i].type & SSCS_CREDENTIAL_TYPE_F)
|
||||
// dump the values
|
||||
{
|
||||
shSecret.type = SSCS_CREDENTIAL_TYPE_F;
|
||||
//strcpy(shSecret.name, shSecIDList.secIDList[i].name);
|
||||
strncpy(shSecret.name, (&(shSecIDList.secIDList[i]).name[11]), shSecIDList.secIDList[i].len -11);
|
||||
|
||||
shSecret.len = strlen(shSecret.name)+1;
|
||||
|
||||
secretHandle = miCASA_CreateSHSHandle(); // create a new secretHandle
|
||||
if(!secretHandle)
|
||||
{
|
||||
goto ERROR_1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
rcode = miCASAReadSecret(ssContext, &keyChainID, 0, secretHandle, &shSecret, NULL, &rInfo, NULL);
|
||||
|
||||
if(rcode != NSSCS_SUCCESS)
|
||||
{
|
||||
printf("\nmiCASAReadSecret returned [%d] when reading [%s]\n\n", rcode, multiEntryCredSet);
|
||||
Pause();
|
||||
goto ERROR_1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(!(rcode = miCASA_GetNextSHSEntry(1, secretHandle, &kLen, key, &vLen, value)))
|
||||
{
|
||||
while(rcode == NSSCS_SUCCESS)
|
||||
{
|
||||
if(0 == strlen(key))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
strcpy(secret, key);
|
||||
strcat(secret, "=");
|
||||
strcat(secret, (char *)value);
|
||||
printf("\t [%s]=[%s]\n", key, value);
|
||||
|
||||
// clear the buffers
|
||||
memset(key, 0, NSSCS_MAX_SECRET_ID_LEN);
|
||||
memset(value, 0, NSSCS_MAX_SECRET_BUF_LEN);
|
||||
memset(secret, 0, NSSCS_MAX_SECRET_BUF_LEN);
|
||||
|
||||
rcode = miCASA_GetNextSHSEntry(0, secretHandle, &kLen, key, &vLen, value);
|
||||
}
|
||||
}
|
||||
|
||||
miCASA_DestroySHSHandle(secretHandle); // destroy the secretHandle
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("No secrets found in cache\r\n");
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Enumerate secrets returned %d\r\n", rcode);
|
||||
// resize the array based on the count returned because the cache engine below
|
||||
// does not support iterations
|
||||
if(rcode == NSSCS_E_ENUM_BUFF_TOO_SHORT)
|
||||
{
|
||||
shSecIDList.enumHandle = 1;
|
||||
free(shSecIDList.secIDList);
|
||||
shSecIDList.secIDList = (SSCS_SH_SECRET_ID_T *)malloc(shSecIDList.returnedIDs * sizeof(SSCS_SH_SECRET_ID_T));
|
||||
}
|
||||
|
||||
if((rcode = miCASAEnumerateSecretIDs(ssContext, &keyChainID, 0, NULL, &shSecIDList, NULL)) == NSSCS_SUCCESS)
|
||||
{
|
||||
for(i = 0; i < (int)shSecIDList.returnedIDs; i++)
|
||||
{
|
||||
if(shSecIDList.secIDList[i].type & SSCS_APPLICATION_TYPE_F)
|
||||
{
|
||||
printf("\nSS_App:\r\n");
|
||||
}
|
||||
else if(shSecIDList.secIDList[i].type & SSCS_CREDENTIAL_TYPE_F)
|
||||
{
|
||||
printf("\nSS_CredSet:\r\n");
|
||||
}
|
||||
else if(shSecIDList.secIDList[i].type & SSCS_BINARY_TYPE_F)
|
||||
{
|
||||
printf("\nSS_Binary:\r\n ");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("\n Unsupported SecretID type .... ");
|
||||
}
|
||||
|
||||
//printf("Length of the SecretID [%ld]\n", shSecIDList.secIDList[i].len);
|
||||
printf("SecretID [%s]\n", shSecIDList.secIDList[i].name);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Enumerate secrets returned %d\r\n", rcode);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
while(shSecIDList.enumHandle);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("\nEnum Malloc fialed .... ");
|
||||
}
|
||||
|
||||
|
||||
|
||||
} /* end for */
|
||||
|
||||
endTime = time(NULL);
|
||||
|
||||
/* ########################## CODE EXITS HERE ##################### */
|
||||
|
||||
ERROR_1:
|
||||
|
||||
if(secret)
|
||||
{
|
||||
memset(secret, 0, NSSCS_MAX_SECRET_BUF_LEN);
|
||||
free(secret);
|
||||
}
|
||||
|
||||
if(value)
|
||||
{
|
||||
memset(value, 0, NSSCS_MAX_SECRET_BUF_LEN);
|
||||
free(value);
|
||||
}
|
||||
|
||||
if(key)
|
||||
{
|
||||
memset(key, 0, NSSCS_MAX_SECRET_ID_LEN);
|
||||
free(key);
|
||||
}
|
||||
|
||||
|
||||
if(ssContext)
|
||||
{
|
||||
rcode = miCASACloseSecretStoreCache(ssContext, 0, NULL);
|
||||
}
|
||||
|
||||
if(shSecIDList.secIDList)
|
||||
{
|
||||
free(shSecIDList.secIDList);
|
||||
}
|
||||
|
||||
Pause();
|
||||
|
||||
exit(rcode);
|
||||
|
||||
|
||||
/* ########################## CODE ENDS HERE ##################### */
|
||||
}
|
||||
153
c_test/displayCache/displaycache.vcproj
Normal file
153
c_test/displayCache/displaycache.vcproj
Normal file
@@ -0,0 +1,153 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.10"
|
||||
Name="DisplayCache"
|
||||
ProjectGUID="{534B797C-48CF-45F9-9591-654ABA0B4934}"
|
||||
SccProjectName=""
|
||||
SccLocalPath="">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory=".\Debug"
|
||||
IntermediateDirectory=".\Debug"
|
||||
ConfigurationType="1"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="D:\ccm\SSClient\SecretStoreClient_src\include"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="5"
|
||||
UsePrecompiledHeader="2"
|
||||
AssemblerListingLocation=".\Debug/"
|
||||
ObjectFile=".\Debug/"
|
||||
ProgramDataBaseFileName=".\Debug/"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="TRUE"
|
||||
DebugInformationFormat="4"
|
||||
CompileAs="0"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="micasa_mdd.lib odbc32.lib odbccp32.lib"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="TRUE"
|
||||
AdditionalLibraryDirectories="D:\casa2\lib\w32"
|
||||
GenerateDebugInformation="TRUE"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
TypeLibraryName=".\Debug/sshtst.tlb"
|
||||
HeaderFileName=""/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="_DEBUG"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory=".\Release"
|
||||
IntermediateDirectory=".\Release"
|
||||
ConfigurationType="1"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="D:\ccm\SSClient\SecretStoreClient_src\include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||
StringPooling="TRUE"
|
||||
RuntimeLibrary="4"
|
||||
EnableFunctionLevelLinking="TRUE"
|
||||
UsePrecompiledHeader="2"
|
||||
PrecompiledHeaderFile=".\Release/sshtst.pch"
|
||||
AssemblerListingLocation=".\Release/"
|
||||
ObjectFile=".\Release/"
|
||||
ProgramDataBaseFileName=".\Release/"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="TRUE"
|
||||
CompileAs="0"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="micasa.lib odbc32.lib odbccp32.lib"
|
||||
OutputFile="$(OutDir)/$(ProjectName).exe"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="TRUE"
|
||||
AdditionalLibraryDirectories="D:\ccm\SSClient\SecretStoreClient_src\lib\w32"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
TypeLibraryName=".\Release/sshtst.tlb"
|
||||
HeaderFileName=""/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath=".\displaycache.c">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\micasa.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\micasa_mgmd.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\sscs_ipc.h">
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
15
c_test/displayCache/link.w32
Normal file
15
c_test/displayCache/link.w32
Normal file
@@ -0,0 +1,15 @@
|
||||
LINK_DEF_BLD = \
|
||||
echo "$(addprefix ,$(ROOT)obj/w32/md/$(notdir $(OBJS)))" > $(LINKDEF);\
|
||||
echo "$(ROOT)lib/w32/micasa.lib" >> $(LINKDEF);\
|
||||
echo "$(MSC)lib/kernel32.lib" >> $(LINKDEF);\
|
||||
echo "$(MSC)lib/libc.lib" >> $(LINKDEF);\
|
||||
echo "/LIBPATH:$(MSC)lib" >> $(LINKDEF);\
|
||||
echo "/NODEFAULTLIB:uuid" >> $(LINKDEF);\
|
||||
echo "/NOLOGO" >> $(LINKDEF);\
|
||||
echo "/SUBSYSTEM:CONSOLE" >> $(LINKDEF);\
|
||||
echo "/INCREMENTAL:NO" >> $(LINKDEF);\
|
||||
echo "/PDB:Release/displaycache.pdb" >> $(LINKDEF);\
|
||||
echo "/OUT:Release/DisplayCache.exe" >> $(LINKDEF);\
|
||||
echo "/MACHINE:IX86" >> $(LINKDEF);\
|
||||
echo "/VERSION:$(BLD_VER)" >> $(LINKDEF);\
|
||||
echo "/WARN:3" >> $(LINKDEF);
|
||||
15
c_test/displayCache/link_mdd.w32
Normal file
15
c_test/displayCache/link_mdd.w32
Normal file
@@ -0,0 +1,15 @@
|
||||
LINK_DEF_BLD = \
|
||||
echo "$(addprefix ,$(ROOT)obj/w32/mdd/$(notdir $(OBJS)))" > $(LINKDEF);\
|
||||
echo "$(ROOT)lib/w32/micasa_mdd.lib" >> $(LINKDEF);\
|
||||
echo "$(MSC)lib/kernel32.lib" >> $(LINKDEF);\
|
||||
echo "$(MSC)lib/libc.lib" >> $(LINKDEF);\
|
||||
echo "/LIBPATH:$(MSC)lib" >> $(LINKDEF);\
|
||||
echo "/NODEFAULTLIB:uuid" >> $(LINKDEF);\
|
||||
echo "/NOLOGO" >> $(LINKDEF);\
|
||||
echo "/SUBSYSTEM:CONSOLE" >> $(LINKDEF);\
|
||||
echo "/INCREMENTAL:NO" >> $(LINKDEF);\
|
||||
echo "/PDB:Debug/displaycache.pdb" >> $(LINKDEF);\
|
||||
echo "/OUT:Debug/DisplayCache.exe" >> $(LINKDEF);\
|
||||
echo "/MACHINE:IX86" >> $(LINKDEF);\
|
||||
echo "/VERSION:$(BLD_VER)" >> $(LINKDEF);\
|
||||
echo "/WARN:3" >> $(LINKDEF);
|
||||
3
c_test/displayCache/objs.lux
Normal file
3
c_test/displayCache/objs.lux
Normal file
@@ -0,0 +1,3 @@
|
||||
OBJS=\
|
||||
displaycache.$(O)
|
||||
|
||||
3
c_test/displayCache/objs.w32
Normal file
3
c_test/displayCache/objs.w32
Normal file
@@ -0,0 +1,3 @@
|
||||
OBJS=\
|
||||
displaycache.$(O)
|
||||
|
||||
15
c_test/displayCache/resource.h
Normal file
15
c_test/displayCache/resource.h
Normal file
@@ -0,0 +1,15 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Developer Studio generated include file.
|
||||
// Used by lsstest.rc
|
||||
//
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 101
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
152
c_test/displayCache/sshtst.vcproj
Normal file
152
c_test/displayCache/sshtst.vcproj
Normal file
@@ -0,0 +1,152 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.10"
|
||||
Name="DisplayCache"
|
||||
SccProjectName=""
|
||||
SccLocalPath="">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory=".\Debug"
|
||||
IntermediateDirectory=".\Debug"
|
||||
ConfigurationType="1"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="D:\ccm\SSClient\SecretStoreClient_src\include"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="5"
|
||||
UsePrecompiledHeader="2"
|
||||
AssemblerListingLocation=".\Debug/"
|
||||
ObjectFile=".\Debug/"
|
||||
ProgramDataBaseFileName=".\Debug/"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="TRUE"
|
||||
DebugInformationFormat="4"
|
||||
CompileAs="0"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="micasa_mdd.lib odbc32.lib odbccp32.lib"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="TRUE"
|
||||
AdditionalLibraryDirectories="D:\ccm\SSClient\SecretStoreClient_src\bin\w32\mdd"
|
||||
GenerateDebugInformation="TRUE"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
TypeLibraryName=".\Debug/sshtst.tlb"
|
||||
HeaderFileName=""/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="_DEBUG"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory=".\Release"
|
||||
IntermediateDirectory=".\Release"
|
||||
ConfigurationType="1"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
AdditionalIncludeDirectories="D:\ccm\SSClient\SecretStoreClient_src\include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||
StringPooling="TRUE"
|
||||
RuntimeLibrary="4"
|
||||
EnableFunctionLevelLinking="TRUE"
|
||||
UsePrecompiledHeader="2"
|
||||
PrecompiledHeaderFile=".\Release/sshtst.pch"
|
||||
AssemblerListingLocation=".\Release/"
|
||||
ObjectFile=".\Release/"
|
||||
ProgramDataBaseFileName=".\Release/"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="TRUE"
|
||||
CompileAs="0"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="micasa.lib odbc32.lib odbccp32.lib"
|
||||
OutputFile="$(OutDir)/$(ProjectName).exe"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="TRUE"
|
||||
AdditionalLibraryDirectories="D:\ccm\SSClient\SecretStoreClient_src\lib\w32"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
TypeLibraryName=".\Release/sshtst.tlb"
|
||||
HeaderFileName=""/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath=".\displaycache.c">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\micasa.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\micasa_mgmd.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\sscs_ipc.h">
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
26
c_test/displayCache/target
Normal file
26
c_test/displayCache/target
Normal file
@@ -0,0 +1,26 @@
|
||||
include link$(xtra).$(PLAT)
|
||||
|
||||
all : $(BIN_NAME)
|
||||
|
||||
$(BIN_NAME) : $(OBJS)
|
||||
@echo Linking $@ ...
|
||||
@$(LINK_DEF_BLD)
|
||||
$(LINK)
|
||||
$(RM) $(LINKDEF)
|
||||
$(TSTPACK)
|
||||
@echo
|
||||
|
||||
install :
|
||||
@echo client Installing $< ...
|
||||
|
||||
## The binaries
|
||||
ifeq ($(PLAT),w32)
|
||||
$(CP) Release/$(BIN_NAME) $(INSTALLDIR)tools/w32
|
||||
else
|
||||
$(CP) $(BINDIR)$(basename $(BIN_NAME)).$(BIN) $(INSTALLDIR)tools/lux
|
||||
endif
|
||||
|
||||
clean :
|
||||
@echo Cleaning ...
|
||||
$(RM) *.err *.bak *.i *.res $(OBJDIR)*.$(O) $(OBJDIR)*.res Release/*.*
|
||||
|
||||
Reference in New Issue
Block a user