[Tizen-submit] 9407: Changes to Tizen/cert-svc

noreply at tizen.org noreply at tizen.org
Fri Aug 30 00:44:49 GMT 2013


Hi,
so.yu have made the following changes to cert-svc in project Tizen. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #9407

  submit:       Tizen:build/cert-svc(cleanup) -> Tizen


Message:
Submitter: so.yu <so.yu at samsung.com>
Comments: Sync with tizen_2.2
Git project: platform/core/security/cert-svc
Tag: submit/tizen/20130830.004742
Commit: 5cd602dc73a9b410e25aebd7c51c5869735c4ae3 Sync with tizen_2.2

State:   new        2013-08-29T17:41:31 tizenrobot
Comment: <no comment>
changes files:
--------------

spec files:
-----------
--- cert-svc.spec
+++ cert-svc.spec
@@ -3,7 +3,7 @@
 Summary: Certification service
 Version: 1.0.1
 Release: 45
-VCS:     platform/core/security/cert-svc#submit/tizen/20130716.162206-0-gf12be54c44432cb8e2dc5953ec7b0b3aff802880
+VCS:     platform/core/security/cert-svc#submit/tizen/20130830.004742-0-g5cd602dc73a9b410e25aebd7c51c5869735c4ae3
 Group:   System/Libraries
 License: SAMSUNG
 Source0: %{name}-%{version}.tar.gz

other changes:
--------------

++++++ cert-svc-1.0.1.tar.gz
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -15,6 +15,10 @@
 SET(TARGET_SIGN_TOOL "dpkg-pki-sig")
 
 # compiler options
+SET(GC_SECTIONS_FLAGS "-fdata-sections -ffunction-sections -Wl,--gc-sections")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GC_SECTIONS_FLAGS}")
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GC_SECTIONS_FLAGS}")
+
 SET(CMAKE_C_FLAGS_RELEASE "-fvisibility=hidden -Wall -O2")
 SET(CMAKE_CXX_FLAGS_RELEASE "-std=c++0x -Wall -O2")
 
--- include/cert-service.h
+++ include/cert-service.h
@@ -186,6 +186,7 @@
 int cert_svc_extract_certificate_data(CERT_CONTEXT* ctx);
 int cert_svc_search_certificate(CERT_CONTEXT* ctx, search_field fldName, char* fldData);
 int cert_svc_check_ocsp_status(CERT_CONTEXT* ctx, const char* uri);
+char* cert_svc_get_certificate_crt_file_path(void);
 #ifdef __cplusplus
 }
 #endif	// __cplusplus
--- srcs/cert-service-process.c
+++ srcs/cert-service-process.c
@@ -490,7 +490,7 @@
 		X509_NAME_oneline(X509_get_subject_name(store->current_cert), buf, 256);
 	else
 		strncpy(buf, "test", 4);
-	SLOGD("[%s] Certificate %i: %s\n", __func__, verify_context->depth, buf);
+	SECURE_SLOGD("[%s] Certificate %i: %s\n", __func__, verify_context->depth, buf);
 
 	return ok;
 }
@@ -1312,7 +1312,7 @@
 
 	while(1) {
 		if((lstat(p->filename, &file_info)) < 0) {	// get file information
-			SLOGE("[ERR][%s] Fail to get file(%s) information.\n", __func__, p->filename);
+			SECURE_SLOGE("[ERR][%s] Fail to get file(%s) information.\n", __func__, p->filename);
 			ret = CERT_SVC_ERR_INVALID_OPERATION;
 			goto err;
 		}
@@ -1330,7 +1330,7 @@
 
 		// load content into buffer
 		if((ret = cert_svc_util_load_file_to_buffer(p->filename, certBuf)) != CERT_SVC_ERR_NO_ERROR) {
-			SLOGE("[ERR][%s] Fail to load file to buffer, filename: [%s], ret: [%d]\n", __func__, p->filename, ret);
+			SECURE_SLOGE("[ERR][%s] Fail to load file to buffer, filename: [%s], ret: [%d]\n", __func__, p->filename, ret);
 			free(certBuf);
 			certBuf = NULL;
 			goto fail_to_load_file;
@@ -1345,7 +1345,7 @@
 
 		// load content into descriptor buffer
 		if((ret = _extract_certificate_data(certBuf, certDesc)) != CERT_SVC_ERR_NO_ERROR) {
-			SLOGE("[ERR][%s] Fail to extract certificate data, filename: [%s], ret: [%d]\n", __func__, p->filename, ret);
+			SECURE_SLOGE("[ERR][%s] Fail to extract certificate data, filename: [%s], ret: [%d]\n", __func__, p->filename, ret);
 			goto fail_to_extract_file;
 		}
 
--- srcs/cert-service-store.c
+++ srcs/cert-service-store.c
@@ -97,12 +97,12 @@
 

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list