diff --git a/c_micasacache/sscs_unx_ipc_client.c b/c_micasacache/sscs_unx_ipc_client.c index 66752dc2..69b29e68 100644 --- a/c_micasacache/sscs_unx_ipc_client.c +++ b/c_micasacache/sscs_unx_ipc_client.c @@ -2092,6 +2092,7 @@ int32_t ipc_ReadBinaryKey retCode = NSSCS_E_SYSTEM_FAILURE; break; } + *valLen = dataLen; } else diff --git a/c_micasad/micasad.csproj b/c_micasad/micasad.csproj index 9c3bd5fe..211e710a 100644 --- a/c_micasad/micasad.csproj +++ b/c_micasad/micasad.csproj @@ -305,7 +305,7 @@ /> + + id, binaryCred->idLen, binaryCred->data, - *binaryCred->dataLen, + binaryCred->dataLen, NULL, ext); } diff --git a/include/micasa.h b/include/micasa.h index 757d2fed..1ac3c0bb 100644 --- a/include/micasa.h +++ b/include/micasa.h @@ -453,10 +453,25 @@ miCASAWriteKey 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, + SS_UTF8_T * key, + uint32_t keyLen, + uint8_t * val, + 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_EXT_T * ext ); diff --git a/vs_solutions/micasad/micasad.suo b/vs_solutions/micasad/micasad.suo index ea52cbb4..455cfb30 100644 Binary files a/vs_solutions/micasad/micasad.suo and b/vs_solutions/micasad/micasad.suo differ