Binary key support

This commit is contained in:
Jim Norman 2005-12-10 04:47:37 +00:00
parent f0946f22d5
commit 08038f4b7f
5 changed files with 36 additions and 10 deletions

View File

@ -2092,6 +2092,7 @@ int32_t ipc_ReadBinaryKey
retCode = NSSCS_E_SYSTEM_FAILURE; retCode = NSSCS_E_SYSTEM_FAILURE;
break; break;
} }
*valLen = dataLen;
} }
else else

View File

@ -305,7 +305,7 @@
/> />
<File <File
RelPath = "init\ProjectInstaller.cs" RelPath = "init\ProjectInstaller.cs"
SubType = "Code" SubType = "Component"
BuildAction = "Compile" BuildAction = "Compile"
/> />
<File <File
@ -315,7 +315,7 @@
/> />
<File <File
RelPath = "init\WinSecretStoreClientService.cs" RelPath = "init\WinSecretStoreClientService.cs"
SubType = "Code" SubType = "Component"
BuildAction = "Compile" BuildAction = "Compile"
/> />
<File <File
@ -384,6 +384,11 @@
SubType = "Code" SubType = "Code"
BuildAction = "Compile" BuildAction = "Compile"
/> />
<File
RelPath = "verbs\ReadBinaryKey.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File <File
RelPath = "verbs\ReadKey.cs" RelPath = "verbs\ReadKey.cs"
SubType = "Code" SubType = "Code"
@ -419,6 +424,11 @@
SubType = "Code" SubType = "Code"
BuildAction = "Compile" BuildAction = "Compile"
/> />
<File
RelPath = "verbs\WriteBinaryKey.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File <File
RelPath = "verbs\WriteKey.cs" RelPath = "verbs\WriteKey.cs"
SubType = "Code" SubType = "Code"

View File

@ -1603,7 +1603,7 @@ miCASAWriteBinaryKey
SS_UTF8_T * key, SS_UTF8_T * key,
uint32_t keyLen, uint32_t keyLen,
uint8_t * val, uint8_t * val,
uint32_t valLen, uint32_t * valLen,
SSCS_PASSWORD_T * epPassword, SSCS_PASSWORD_T * epPassword,
SSCS_EXT_T * ext SSCS_EXT_T * ext
) )
@ -1673,7 +1673,7 @@ miCASAWriteBinaryKey
escapedSHSKey, escapedSHSKey,
sscs_Utf8Strlen(escapedSHSKey), sscs_Utf8Strlen(escapedSHSKey),
val, val,
valLen, *valLen,
epPassword, epPassword,
ext); ext);
@ -2907,11 +2907,11 @@ miCASASetCredential
context, context,
ssFlags, ssFlags,
&kc, &kc,
sharedSecretID, appSecretID,
binaryCred->id, binaryCred->id,
binaryCred->idLen, binaryCred->idLen,
binaryCred->data, binaryCred->data,
*binaryCred->dataLen, binaryCred->dataLen,
NULL, NULL,
ext); ext);
} }

View File

@ -453,10 +453,25 @@ miCASAWriteKey
uint32_t ssFlags, uint32_t ssFlags,
SSCS_KEYCHAIN_ID_T * keyChainID, SSCS_KEYCHAIN_ID_T * keyChainID,
SSCS_SECRET_ID_T * sharedSecretID, SSCS_SECRET_ID_T * sharedSecretID,
SS_UTF8_T *key, SS_UTF8_T * key,
uint32_t keyLen, uint32_t keyLen,
uint8_t *val, uint8_t * val,
uint32_t valLen, uint32_t valLen,
SSCS_PASSWORD_T * epPassword,
SSCS_EXT_T * ext
);
SSCS_EXTERN_LIBCALL(int32_t)
miCASAWriteBinaryKey
(
void * context,
uint32_t ssFlags,
SSCS_KEYCHAIN_ID_T * keyChainID,
SSCS_SECRET_ID_T * sharedSecretID,
SS_UTF8_T * key,
uint32_t keyLen,
uint8_t * val,
uint32_t * valLen,
SSCS_PASSWORD_T * epPassword, SSCS_PASSWORD_T * epPassword,
SSCS_EXT_T * ext SSCS_EXT_T * ext
); );

Binary file not shown.