diff options
author | sangwan.kwon <sangwan.kwon@samsung.com> | 2016-08-11 15:15:12 +0900 |
---|---|---|
committer | sangwan kwon <sangwan.kwon@samsung.com> | 2016-08-10 23:23:03 -0700 |
commit | f327e9fca40ad1cf62ac18e052f09c65debac72b (patch) | |
tree | 3add737d5f32782336e03f9d9a15b5cb5baa9ad2 | |
parent | cc76acebe224f4b8a273752b2400190ab0aab679 (diff) | |
download | libwebappenc-accepted/tizen/wearable/20160815.233236.tar.gz libwebappenc-accepted/tizen/wearable/20160815.233236.tar.bz2 libwebappenc-accepted/tizen/wearable/20160815.233236.zip |
[HOTFIX] Fix build break on 64bit archsubmit/tizen_3.0_wearable/20161015.000004submit/tizen_3.0_tv/20161015.000004submit/tizen_3.0_mobile/20161015.000004submit/tizen_3.0_ivi/20161010.000004submit/tizen_3.0_common/20161104.104000submit/tizen/20160812.053402submit/tizen/20160811.062803accepted/tizen/wearable/20160815.233236accepted/tizen/tv/20160815.233213accepted/tizen/mobile/20160815.233150accepted/tizen/ivi/20160815.233255accepted/tizen/common/20160812.140751accepted/tizen/3.0/wearable/20161015.083618accepted/tizen/3.0/tv/20161016.005422accepted/tizen/3.0/mobile/20161015.033720accepted/tizen/3.0/ivi/20161011.050558accepted/tizen/3.0/common/20161114.110011
[Problem]
* EVP_Digest parameter type is unsigned int
* size_t is differ between 32bit and 64bit
[Solution]
* Use unsigned int instead of size_t
Change-Id: Ib398532c7148bcd9d736c7282e0b74c8042a2ede
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
-rw-r--r-- | srcs/decrypt_migrated_wgt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/srcs/decrypt_migrated_wgt.c b/srcs/decrypt_migrated_wgt.c index 1012a35..4eae90b 100644 --- a/srcs/decrypt_migrated_wgt.c +++ b/srcs/decrypt_migrated_wgt.c @@ -82,11 +82,13 @@ static int _get_old_iv(const raw_buffer_s *src, raw_buffer_s **piv) if (iv == NULL) return WAE_ERROR_MEMORY; - if (EVP_Digest(src->buf, src->size, iv->buf, &iv->size, EVP_sha1(), NULL) != 1) { + unsigned int _size; + if (EVP_Digest(src->buf, src->size, iv->buf, &_size, EVP_sha1(), NULL) != 1) { buffer_destroy(iv); return WAE_ERROR_CRYPTO; } + iv->size = _size; *piv = iv; WAE_SLOGD("get old iv of length: %d", iv->size); |