From 08038f4b7fe2bd58b5333c2de66e81bca869109c Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Sat, 10 Dec 2005 04:47:37 +0000 Subject: [PATCH] Binary key support --- c_micasacache/sscs_unx_ipc_client.c | 1 + c_micasad/micasad.csproj | 14 ++++++++++++-- c_micasadk/sscs_ndk.c | 8 ++++---- include/micasa.h | 23 +++++++++++++++++++---- vs_solutions/micasad/micasad.suo | Bin 18944 -> 13312 bytes 5 files changed, 36 insertions(+), 10 deletions(-) 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 ea52cbb4641530c50f1e884a7ae68564eaca9cb6..455cfb30823402afb160d0ff6929f7430eed1bae 100644 GIT binary patch delta 2082 zcmbuAOH5Ny5QfjWl+u!xwjf*)2raGn01*%g8Z`xpk5H9>Z^eR81q!0JfFO?=B`!@I zLyT^8ZA>tCS$m6q6&=xM&5_spC*Gv`Kb$Vm5$Pq8i& zLga!xpwga&{%>bmPxwG7S^Lsf`+TORKP=%{%5%=(WMKTtR0G;4+87 z7-TWNll$p|v1#%^+*AwNt#SQ>(e`1~N5D~V3>*h--~{l4cF+M%f=IBgBVZI<1Y=+vOn^x+M?W*JPV#A&gD?&e zfFbAc9~M5S4(Sq2m>YtjtUkU3u})%OFK85-alB5f3W0j8?L$8dS%WY)i1rX>{9phx zgP7?->kRLwsiIu6n=7?l=1Qs5nYGc(ZwBKb2(@L>sBI$mc~oh-$Pf}6eCW53)vlUr z(eeTdIqW&)wLf*$!HMyfu+<5ckjqh^c^#J}ZO^WvFWJo&4h0*C-9CkLuE<{PYfh75 z;W2x{T;3~776u$~gIZYKniaECn zeIZO#?<~{i3d0IDm)I#{GN4`-txe=~wo`Lq3C%i9wASU@$eViL?;d!bw{uzAP)Ctl z3K}m|ZHxR!uZ!{*>GRRel1LI;c&?WG8!fcovn|;gH>b-IaYV4Ftp#z{0oOI59uXCA z499*Qute)})GCM-j?&*b64F;!AQ}T0If*0hMxnrhHFmwf48QL zW>-ecQ;=~B*f`S757BxF6usAs7C#?Gy~mHpHK6B&c@tXv92w|RsY#;59`7Qg?>LZD=J*j1TlgrNMw~}M=Zzt$n^T+y?sWnt5(ZCPI`tq)- zs_G3j3En78Ew3htJb2w2vpD7p|ALjPQcF$dW47|%&hA8?u1+oMXc7w%n_Cy&sbM`X wLhy0ytHfWV0mKQ9^kFuDxCtYRIh%*j@1#hjKVARkaEzJ%oK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