Windows project files update. Added Config.cs class.
This commit is contained in:
Binary file not shown.
@@ -3,11 +3,11 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cSample", "CSample.vcproj",
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "c_micasacache", "..\..\c_micasacache\c_micasacache.vcproj", "{B5DB4B53-AB02-4EDC-9C02-BF7DE68F91A3}"
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "micasacache", "..\..\micasacache\c_micasacache.vcproj", "{B5DB4B53-AB02-4EDC-9C02-BF7DE68F91A3}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "c_micasadk", "..\..\c_micasadk\c_micasadk.vcproj", "{99988A22-4C58-4BF7-A2DB-57761E76FB26}"
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "micasa", "..\..\micasadk\c_micasadk.vcproj", "{99988A22-4C58-4BF7-A2DB-57761E76FB26}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
|
||||
Binary file not shown.
@@ -41,7 +41,7 @@
|
||||
AdditionalDependencies="odbc32.lib odbccp32.lib micasa.lib"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="TRUE"
|
||||
AdditionalLibraryDirectories="D:\casaClean2\c_micasadk\Debug"
|
||||
AdditionalLibraryDirectories="..\..\micasadk\Debug"
|
||||
GenerateDebugInformation="TRUE"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"/>
|
||||
@@ -131,6 +131,9 @@
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
<ProjectReference
|
||||
ReferencedProjectIdentifier="{99988A22-4C58-4BF7-A2DB-57761E76FB26}"
|
||||
Name="micasa"/>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
|
||||
@@ -53,6 +53,77 @@ void Pause()
|
||||
|
||||
|
||||
|
||||
void RemoveKey()
|
||||
{
|
||||
int rcode = 0;
|
||||
char inputID[20];
|
||||
char inputKey[20];
|
||||
char inputValue[128] = {0};
|
||||
uint32_t valueLen = 128;
|
||||
uint32_t bytesRequired = 0;
|
||||
|
||||
SSCS_SECRETSTORE_T store = {0};
|
||||
SSCS_SECRET_ID_T appSecretId = {0};
|
||||
SSCS_SECRET_ID_T sharedSecretId = {0};
|
||||
void *context;
|
||||
SSCS_KEYCHAIN_ID_T kc = {0};
|
||||
|
||||
SSCS_EXT_T ext = {0};
|
||||
|
||||
printf("Enter secretID: ");
|
||||
gets(inputID);
|
||||
|
||||
printf("Enter Key to remove: ");
|
||||
gets(inputKey);
|
||||
|
||||
if ((sscs_Utf8Strlen(inputID) > 0) &&
|
||||
(sscs_Utf8Strlen(inputKey) > 0))
|
||||
|
||||
{
|
||||
appSecretId.len = sscs_Utf8Strlen(inputID) + 1;
|
||||
sscs_Utf8Strcpy(appSecretId.id, inputID);
|
||||
|
||||
printf("SAMPLE: Calling miCASAReadKey\r\n");
|
||||
|
||||
// open secretStore
|
||||
sscs_Utf8Strcpy(store.ssName, SSCS_DEFAULT_SECRETSTORE_ID);
|
||||
store.version = 1;
|
||||
context = miCASAOpenSecretStoreCache(&store, 0, NULL);
|
||||
|
||||
if (context == NULL)
|
||||
{
|
||||
return; // NSSCS_E_SYSTEM_FAILURE;
|
||||
}
|
||||
|
||||
sscs_Utf8Strcpy(kc.keychainID, SSCS_SESSION_KEY_CHAIN_ID);
|
||||
kc.len = SSCS_S_KC_ID_CHARS;
|
||||
|
||||
rcode = miCASARemoveKey(context,
|
||||
0,
|
||||
&kc,
|
||||
&appSecretId,
|
||||
inputKey,
|
||||
strlen(inputKey)+1,
|
||||
NULL,
|
||||
&ext);
|
||||
|
||||
miCASACloseSecretStoreCache(context, 0, NULL);
|
||||
|
||||
if (rcode)
|
||||
{
|
||||
printf("miCASARemoveKey returned %d\r\n", rcode);
|
||||
Pause();
|
||||
}
|
||||
else
|
||||
{
|
||||
//set null
|
||||
//memcpy(inputValue[valueLen + 1],
|
||||
printf("Remove Key Successful\r\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void ReadKey()
|
||||
{
|
||||
int rcode = 0;
|
||||
@@ -542,7 +613,8 @@ void displayMenu()
|
||||
printf("* 4. Run automated test *\r\n");
|
||||
printf("* 5. WriteKey *\r\n");
|
||||
printf("* 6. ReadKey *\r\n");
|
||||
printf("* 7. Quit *\r\n");
|
||||
printf("* 7. RemoveKey *\r\n");
|
||||
printf("* 8. Quit *\r\n");
|
||||
printf("**************************\r\n");
|
||||
|
||||
|
||||
@@ -552,7 +624,7 @@ void displayMenu()
|
||||
// get return
|
||||
getchar();
|
||||
|
||||
if (c == '7')
|
||||
if (c == '8')
|
||||
return;
|
||||
else if (c == '1')
|
||||
AddSecret();
|
||||
@@ -566,6 +638,8 @@ void displayMenu()
|
||||
WriteKey();
|
||||
else if (c == '6')
|
||||
ReadKey();
|
||||
else if (c == '7')
|
||||
RemoveKey();
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -3,7 +3,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cSharpSample", "cSharpSampl
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Novell.Casa", "..\..\c_gacfile\Novell.Casa\Novell.Casa.csproj", "{FEB3F1E3-62DF-43CA-8B1C-144A4680E05A}"
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "micasacache", "..\..\micasacache\c_micasacache.vcproj", "{B5DB4B53-AB02-4EDC-9C02-BF7DE68F91A3}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "micasa", "..\..\micasadk\c_micasadk.vcproj", "{99988A22-4C58-4BF7-A2DB-57761E76FB26}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
@@ -17,10 +21,14 @@ Global
|
||||
{3FB57160-F475-4650-A45C-19D020661A2D}.Debug.Build.0 = Debug|.NET
|
||||
{3FB57160-F475-4650-A45C-19D020661A2D}.Release.ActiveCfg = Release|.NET
|
||||
{3FB57160-F475-4650-A45C-19D020661A2D}.Release.Build.0 = Release|.NET
|
||||
{FEB3F1E3-62DF-43CA-8B1C-144A4680E05A}.Debug.ActiveCfg = Debug|.NET
|
||||
{FEB3F1E3-62DF-43CA-8B1C-144A4680E05A}.Debug.Build.0 = Debug|.NET
|
||||
{FEB3F1E3-62DF-43CA-8B1C-144A4680E05A}.Release.ActiveCfg = Release|.NET
|
||||
{FEB3F1E3-62DF-43CA-8B1C-144A4680E05A}.Release.Build.0 = Release|.NET
|
||||
{B5DB4B53-AB02-4EDC-9C02-BF7DE68F91A3}.Debug.ActiveCfg = Debug|Win32
|
||||
{B5DB4B53-AB02-4EDC-9C02-BF7DE68F91A3}.Debug.Build.0 = Debug|Win32
|
||||
{B5DB4B53-AB02-4EDC-9C02-BF7DE68F91A3}.Release.ActiveCfg = Release|Win32
|
||||
{B5DB4B53-AB02-4EDC-9C02-BF7DE68F91A3}.Release.Build.0 = Release|Win32
|
||||
{99988A22-4C58-4BF7-A2DB-57761E76FB26}.Debug.ActiveCfg = Debug|Win32
|
||||
{99988A22-4C58-4BF7-A2DB-57761E76FB26}.Debug.Build.0 = Debug|Win32
|
||||
{99988A22-4C58-4BF7-A2DB-57761E76FB26}.Release.ActiveCfg = Release|Win32
|
||||
{99988A22-4C58-4BF7-A2DB-57761E76FB26}.Release.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user