From: min7.choi Date: Thu, 19 May 2016 07:46:28 +0000 (+0900) Subject: Fix Cynara cache size X-Git-Tag: accepted/tizen/mobile/20160520.004416^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26562dd486dd48b470bd9882983879e7abcd60c1;p=platform%2Fframework%2Fweb%2Fdownload-provider.git Fix Cynara cache size Change-Id: Ib05a72332493cdd5e60b05d7c1e2ca34f45d8c2d Signed-off-by: min7.choi --- diff --git a/packaging/download-provider.spec b/packaging/download-provider.spec index 6e0534c..4150bc2 100755 --- a/packaging/download-provider.spec +++ b/packaging/download-provider.spec @@ -1,7 +1,7 @@ %define _ux_define tizen2.3 Name: download-provider Summary: Download the contents in background -Version: 2.1.51 +Version: 2.1.52 Release: 0 Group: Development/Libraries License: Apache-2.0 diff --git a/provider/download-provider-client-manager.c b/provider/download-provider-client-manager.c index 9f89fff..e59e966 100644 --- a/provider/download-provider-client-manager.c +++ b/provider/download-provider-client-manager.c @@ -433,10 +433,17 @@ static int __dp_client_new(int clientfd, dp_client_slots_fmt *clients, TRACE_DEBUG("SUPPORT_SECURITY_PRIVILEGE"); // Cynara structure init int ret; - cynara *p_cynara; + cynara *p_cynara = NULL; + cynara_configuration *p_conf; + size_t cache_size = 100; //cynara_configuration conf; + + if (CYNARA_API_SUCCESS != cynara_configuration_create(&p_conf)) { /* error */} + if (CYNARA_API_SUCCESS != cynara_configuration_set_cache_size(p_conf, cache_size)) { /* error */ } + ret = cynara_initialize(&p_cynara, NULL); if(ret != CYNARA_API_SUCCESS) { /* error */ } + cynara_configuration_destroy(p_conf); // Get client peer credential char *clientSmack;