Bug 225476. Fix for deleting secrets.

This commit is contained in:
Jim Norman 2006-12-05 09:51:28 +00:00
parent 286f1ee10e
commit f77c6b51ab

View File

@ -929,12 +929,11 @@ namespace Novell.CASA
SSCS_KEYCHAIN_ID_T keyChainID = new SSCS_KEYCHAIN_ID_T(); SSCS_KEYCHAIN_ID_T keyChainID = new SSCS_KEYCHAIN_ID_T();
keyChainID.keychainID = sKeyChainID; keyChainID.keychainID = sKeyChainID;
keyChainID.len = sKeyChainID.Length + 1; keyChainID.len = sKeyChainID.Length + 1;
SSCS_PASSWORD_T epPassword = null; SSCS_PASSWORD_T epPassword = new SSCS_PASSWORD_T();
if (sEPPassword != null) if (sEPPassword != null && sEPPassword.Length > 0)
{ {
epPassword = new SSCS_PASSWORD_T();
epPassword.pword = sEPPassword; epPassword.pword = sEPPassword;
epPassword.pwordLen = (uint)sEPPassword.Length + 1; epPassword.pwordLen = (uint)sEPPassword.Length + 1;
epPassword.pwordType = 0; // todo set type epPassword.pwordType = 0; // todo set type
@ -954,8 +953,8 @@ namespace Novell.CASA
keyChainID, keyChainID,
ssFlags, ssFlags,
secretID, secretID,
null, // EPPassword is not used. Fix this if/when it is. epPassword, // EPPassword is not used. Fix this if/when it is.
null); ext);
return rcode; return rcode;