diff --git a/CASA/sharp/Novell.Casa.MiCasa/MiCasa.cs b/CASA/sharp/Novell.Casa.MiCasa/MiCasa.cs index 3af9c196..95b278e7 100644 --- a/CASA/sharp/Novell.Casa.MiCasa/MiCasa.cs +++ b/CASA/sharp/Novell.Casa.MiCasa/MiCasa.cs @@ -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,9 +157,20 @@ 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( string sAppSecretID) { @@ -175,10 +201,21 @@ 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, string secretID)