Expose the SERVER_KEY_CHAIN through the Get/SetCredential calls for Zen on windows.

This commit is contained in:
Jim Norman 2008-05-13 20:43:14 +00:00
parent 7cfc9a8114
commit ec7a933cbf

View File

@ -123,9 +123,24 @@ namespace Novell.Casa
string sPassword,
WinLuid luid)
{
NativeCalls.SetCredential(ssFlags, sAppSecretID, sSharedSecretID, unFlag, NativeCalls.SSCS_CRED_TYPE_BASIC_F, sUsername, sPassword, luid);
SetCredential(ssFlags, sAppSecretID, sSharedSecretID, unFlag, sUsername, sPassword, luid,
NativeCalls.SSCS_CRED_TYPE_BASIC_F);
}
public static void SetCredential(
uint ssFlags,
string sAppSecretID,
string sSharedSecretID,
uint unFlag,
string sUsername,
string sPassword,
WinLuid luid,
uint uintCredType)
{
NativeCalls.SetCredential(ssFlags, sAppSecretID, sSharedSecretID, unFlag, uintCredType, sUsername, sPassword, luid);
}
public static BasicCredential GetCredential(
uint ssFlags,
string sAppSecretID,
@ -142,7 +157,18 @@ namespace Novell.Casa
uint unFlag,
WinLuid luid)
{
return NativeCalls.GetCredential(ssFlags, sAppSecretID, sSharedSecretID, unFlag, NativeCalls.SSCS_CRED_TYPE_BASIC_F, luid);
return GetCredential(ssFlags, sAppSecretID, sSharedSecretID, unFlag, luid, NativeCalls.SSCS_CRED_TYPE_BASIC_F);
}
public static BasicCredential GetCredential(
uint ssFlags,
string sAppSecretID,
string sSharedSecretID,
uint unFlag,
WinLuid luid,
uint uintCredType)
{
return NativeCalls.GetCredential(ssFlags, sAppSecretID, sSharedSecretID, unFlag, uintCredType, luid);
}
public static void RemoveCredential(
@ -175,9 +201,20 @@ namespace Novell.Casa
string sSharedSecretID,
WinLuid luid)
{
NativeCalls.DeleteCredential(ssFlags, sAppSecretID, sSharedSecretID, SSCS_CRED_TYPE_BASIC_F, luid);
DeleteCredential(ssFlags, sAppSecretID, sSharedSecretID, luid, SSCS_CRED_TYPE_BASIC_F);
}
public static void DeleteCredential(
uint ssFlags,
string sAppSecretID,
string sSharedSecretID,
WinLuid luid,
uint uintCredType)
{
NativeCalls.DeleteCredential(ssFlags, sAppSecretID, sSharedSecretID, uintCredType, luid);
}
public static bool IsSecretPersistent(
uint ssFlags,