Expose the SERVER_KEY_CHAIN through the Get/SetCredential calls for Zen on windows.
This commit is contained in:
parent
7cfc9a8114
commit
ec7a933cbf
@ -123,9 +123,24 @@ namespace Novell.Casa
|
|||||||
string sPassword,
|
string sPassword,
|
||||||
WinLuid luid)
|
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(
|
public static BasicCredential GetCredential(
|
||||||
uint ssFlags,
|
uint ssFlags,
|
||||||
string sAppSecretID,
|
string sAppSecretID,
|
||||||
@ -142,9 +157,20 @@ namespace Novell.Casa
|
|||||||
uint unFlag,
|
uint unFlag,
|
||||||
WinLuid luid)
|
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(
|
public static void RemoveCredential(
|
||||||
string sAppSecretID)
|
string sAppSecretID)
|
||||||
{
|
{
|
||||||
@ -175,9 +201,20 @@ namespace Novell.Casa
|
|||||||
string sSharedSecretID,
|
string sSharedSecretID,
|
||||||
WinLuid luid)
|
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(
|
public static bool IsSecretPersistent(
|
||||||
uint ssFlags,
|
uint ssFlags,
|
||||||
|
Loading…
Reference in New Issue
Block a user