From 4c710b0f571923743c976d86963f97279a5927ac Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Thu, 25 Jan 2007 06:53:05 +0000 Subject: [PATCH] Fix for removing Binary Keys --- CASA/micasadk/sscs_ndk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CASA/micasadk/sscs_ndk.c b/CASA/micasadk/sscs_ndk.c index 6adca060..1e63e477 100644 --- a/CASA/micasadk/sscs_ndk.c +++ b/CASA/micasadk/sscs_ndk.c @@ -1803,7 +1803,7 @@ miCASAWriteBinaryKey keyChainID, &secretID, escapedSHSKey, - keyLen, + keyLen-1, // keys in micasad are not saved with null terminators val, *valLen, epPassword, @@ -2057,7 +2057,7 @@ miCASAReadBinaryKey keyChainID, &secretID, escapedSHSKey, - keyLen, + keyLen - 1, // keys in micasad are not saved with null terminators val, valLen, epPassword,