platform/core/security/cert-svc.git
2 weeks agoFix INTEGER_OVERFLOW, NULL_RETURNS & FORWARD_NULL defects 65/324965/4 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20250604.163020 accepted/tizen/unified/x/20250604.211400
tranthanhtung2001 [Thu, 29 May 2025 09:52:46 +0000 (16:52 +0700)]
Fix INTEGER_OVERFLOW, NULL_RETURNS & FORWARD_NULL defects

Change-Id: I88db3f94f6305e852c7effb88cff74286216e1cb

2 weeks agoFIX NEGATIVE_RETURNS & UNUSED_VALUE detect 61/324961/7
Le [Thu, 29 May 2025 08:36:01 +0000 (15:36 +0700)]
FIX NEGATIVE_RETURNS & UNUSED_VALUE detect

Change-Id: I18ea1998dd00a3aa0efbd038136ca26e746795b4
Signed-off-by: Le <xuan.tien@samsung.com>
2 weeks agoFix RESOURCE_LEAK use freeCertList function, certsvc_pkcs12_has_password_with_invalid... 34/324934/8
tranthanhtung2001 [Thu, 29 May 2025 02:22:35 +0000 (09:22 +0700)]
Fix RESOURCE_LEAK use freeCertList function, certsvc_pkcs12_has_password_with_invalid_param test fails

Change-Id: Iadb08c5511102da635320dc27c5db42c6679eaa3

2 weeks agoFix TAINTED_SCALAR defect 86/324886/2
Le [Wed, 28 May 2025 08:34:53 +0000 (15:34 +0700)]
Fix TAINTED_SCALAR defect

Change-Id: If8792744d057bdf7445d8a0dc150c7e76858c4cd
Signed-off-by: Le <xuan.tien@samsung.com>
2 weeks agoFix SVACE: UNINIT_CTOR detect 66/324866/3
Le [Wed, 28 May 2025 04:47:37 +0000 (11:47 +0700)]
Fix SVACE: UNINIT_CTOR detect

Change-Id: I9e829330b1dc7b9c056a82b6a81f9de4cdcb637f
Signed-off-by: Le <xuan.tien@samsung.com>
2 weeks agoFix SVACE: UNINIT detect 65/324865/3
Le [Wed, 28 May 2025 04:38:22 +0000 (11:38 +0700)]
Fix SVACE: UNINIT detect

Change-Id: I37d3227cb909c47635b5f37d89c8cf1a6a5c2aab
Signed-off-by: Le <xuan.tien@samsung.com>
2 weeks agoFix ASSERT_SIDE_EFFECT defect 31/324831/7
tranthanhtung2001 [Tue, 27 May 2025 11:08:46 +0000 (18:08 +0700)]
Fix ASSERT_SIDE_EFFECT defect

Change-Id: Ia7dba817b6d776ea5ec30c3b6a1913621628405c

2 weeks agoFix RESOURCE_LEAK defect 52/324852/7
tranthanhtung2001 [Wed, 28 May 2025 02:33:04 +0000 (09:33 +0700)]
Fix RESOURCE_LEAK defect

Change-Id: I5854b7a3b96d667d9d3319e2177c576a11725285

2 weeks agoFix UNREACHABLE defect 30/324830/5
tranthanhtung2001 [Tue, 27 May 2025 10:43:59 +0000 (17:43 +0700)]
Fix UNREACHABLE defect

Change-Id: I4d7c62aa2b37a74a22bca6691051da3365984b7b

2 weeks agoFix SVACE: AUTO_CAUSES_COPY detect 29/324829/2
Le [Tue, 27 May 2025 11:05:23 +0000 (18:05 +0700)]
Fix SVACE: AUTO_CAUSES_COPY detect

Change-Id: I4a289000abac79d06b542bd1789fb5500110c3a2
Signed-off-by: Le <xuan.tien@samsung.com>
3 weeks agoChange default umask to 0026 22/324522/1
Dongsun Lee [Tue, 20 May 2025 05:34:46 +0000 (14:34 +0900)]
Change default umask to 0026

Change-Id: I9e5627c3abb70d5f08825ce4cee3b7858ad166ee

8 months agoAdd test case for tokenEndECKeyValue function in SignatureReader.cpp 30/317830/3
tranthanhtung2001 [Thu, 19 Sep 2024 06:20:41 +0000 (13:20 +0700)]
Add test case for tokenEndECKeyValue function in SignatureReader.cpp

Change-Id: I3b89c47398c21484163dc9e099a82a9b957158e4
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
8 months agoAdd negative test case for tokenTargetRestriction function in SignatureReader.cpp 12/317812/2
tranthanhtung2001 [Thu, 19 Sep 2024 03:33:28 +0000 (10:33 +0700)]
Add negative test case for tokenTargetRestriction function in SignatureReader.cpp

Change-Id: I43bf916a976feac657d54a6ae8004860fd02cb2f
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
8 months agoAdd test case for tokenTargetRestriction function in SignatureReader.cpp 92/317792/2
tranthanhtung2001 [Wed, 18 Sep 2024 07:43:07 +0000 (14:43 +0700)]
Add test case for tokenTargetRestriction function in SignatureReader.cpp

Change-Id: I5f0e1f84707cc8ea4bd79042d088002e74eab975
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
8 months agoFix double free error in Ocsp.cpp 74/317774/2
Le [Tue, 17 Sep 2024 02:05:25 +0000 (09:05 +0700)]
Fix double free error in Ocsp.cpp
Add negative testcases for Ocsp && SignatureValidator

Change-Id: Ie58a529b355b5240ee166abac1156421c7c283b7
Signed-off-by: Le <xuan.tien@samsung.com>
9 months agoAdd test case for get_schema_version function in cert-server-db.c 64/317664/2
tranthanhtung2001 [Fri, 13 Sep 2024 02:43:37 +0000 (09:43 +0700)]
Add test case for get_schema_version function in cert-server-db.c
Add test case for checkRoleURI function in BaseValidator.cpp

Change-Id: I33f4c05cb301038d230dc96a59b5b59938569987

9 months agoAdd test case for check_references function in ReferenceValidator.cpp 03/317403/5
tranthanhtung2001 [Tue, 10 Sep 2024 02:57:52 +0000 (09:57 +0700)]
Add test case for check_references function in ReferenceValidator.cpp

Change-Id: I26ebb24b444d47955ff885dda20be3855ffa6554

9 months agoAdd tests for Ocsp checking 61/316661/17
Le [Mon, 26 Aug 2024 10:39:47 +0000 (17:39 +0700)]
Add tests for Ocsp checking

Change-Id: Iddcfc05f3a439e450e9b8fb2e4a1c461abbc864e
Signed-off-by: Le <xuan.tien@samsung.com>
9 months agoAdd test case for get_certificate_detail_from_system_store function in cert-server... 05/316705/8
tranthanhtung2001 [Tue, 27 Aug 2024 06:00:22 +0000 (13:00 +0700)]
Add test case for get_certificate_detail_from_system_store function in cert-server-logic.c

Change-Id: I7aa38e5140ad58fecdded8fa3190a0a6139b4484
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
9 months agoAdd test case for get_certificate_detail_from_store function in cert-server-logic.c 60/316660/9
tranthanhtung2001 [Mon, 26 Aug 2024 10:36:04 +0000 (17:36 +0700)]
Add test case for get_certificate_detail_from_store function in cert-server-logic.c

Change-Id: Ib34c8b354a7ea7868d49f50a9c91e69020df8d9c
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
9 months agoCheking Plugin Handle in case it has not been initialized 74/316774/13
Le [Wed, 28 Aug 2024 03:54:50 +0000 (10:54 +0700)]
Cheking Plugin Handle in case it has not been initialized

Change-Id: Ie5af8d346462fd4cdfb158e8d75033ecfc4b377b
Signed-off-by: Le <xuan.tien@samsung.com>
9 months agoAdd tests for dpl core: exception 23/316723/5
Le [Tue, 27 Aug 2024 08:33:11 +0000 (15:33 +0700)]
Add tests for dpl core: exception

Change-Id: I8e61614427005a05fe7f6bf4928a0c8270baf1d6
Signed-off-by: Le <xuan.tien@samsung.com>
9 months agoAdd test case for set_certificate_status_to_store function in cert-server-logic.c... 27/316727/8
tranthanhtung2001 [Tue, 27 Aug 2024 09:42:19 +0000 (16:42 +0700)]
Add test case for set_certificate_status_to_store function in cert-server-logic.c with system_store params

Change-Id: I015a6e2b96355cda2960407850cc3a86fb8014bb
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
9 months agoFix a critical in test_dpl_old_style_log_provider.cpp file 34/317234/7
tranthanhtung2001 [Fri, 6 Sep 2024 05:42:59 +0000 (12:42 +0700)]
Fix a critical in test_dpl_old_style_log_provider.cpp file

Change-Id: I6556626a65e608c5196d0e1d0a9aa0a3619a726a

9 months agoAdd test for certificate collection iterator functions 17/316717/3
Le [Tue, 27 Aug 2024 07:40:02 +0000 (14:40 +0700)]
Add test for certificate collection iterator functions

Change-Id: I0c9671cf5ee5737f238590a1d3a93bc1e77b45ea
Signed-off-by: Le <xuan.tien@samsung.com>
9 months agoAdd test case for vcore_client_get_certificate_alias_from_store function in Client.cpp 99/316299/27
tranthanhtung2001 [Mon, 19 Aug 2024 06:16:58 +0000 (13:16 +0700)]
Add test case for vcore_client_get_certificate_alias_from_store function in Client.cpp

Change-Id: I35fdc4d42c45ec77dc40057d4e675dc704263dee
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
9 months agoAdd test case vcore_client_get_root_certificate_list_from_store function in Client.cpp 66/316466/4
tranthanhtung2001 [Thu, 22 Aug 2024 03:09:27 +0000 (10:09 +0700)]
Add test case vcore_client_get_root_certificate_list_from_store function in Client.cpp
Add test case vcore_client_load_certificates_from_store function in Client.cpp

Change-Id: I74bd1aa413fac527150b30a7f98321b00520408f
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
9 months agoAdd tests checking pkcs12 has password 91/316491/3
Le [Thu, 22 Aug 2024 06:32:54 +0000 (13:32 +0700)]
Add tests checking pkcs12 has password

Change-Id: I4138846fc1133bf8f6d98f42ed82f63707ff9d66
Signed-off-by: Le <xuan.tien@samsung.com>
9 months agoAdd tests to check certificate info, cert status and check private key, evp key dup... 74/316374/4
Le [Tue, 20 Aug 2024 09:42:11 +0000 (16:42 +0700)]
Add tests to check certificate info, cert status and check private key, evp key dup from store

Change-Id: Icfd7f7fab7d7afac27091f5a25e86c43e269a37a
Signed-off-by: Le <xuan.tien@samsung.com>
9 months agoAdd test case for vcore_client_get_certificate_list_from_store function in Client.cpp 36/316236/17
tranthanhtung2001 [Fri, 16 Aug 2024 07:31:43 +0000 (14:31 +0700)]
Add test case for vcore_client_get_certificate_list_from_store function in Client.cpp

Change-Id: I70130fd9c0d5641ffa4d34c9d9b9f2514036f930
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
9 months agoAdd test vcore_client_set_and_get_certificate_status_to_store function 13/315913/15
tranthanhtung2001 [Fri, 9 Aug 2024 09:15:31 +0000 (16:15 +0700)]
Add test vcore_client_set_and_get_certificate_status_to_store function
Add test vcore_client_check_alias_exist_in_store function
Add test vcore_client_get_certificate_from_store function

Change-Id: I29e99ccef39075f5cfd06a67fc0aea54462d0a0c
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
9 months agoAdd test get_cert_alias_from_store function in cert-server-logic.c 91/315891/12
tranthanhtung2001 [Fri, 9 Aug 2024 02:59:33 +0000 (09:59 +0700)]
Add test get_cert_alias_from_store function in cert-server-logic.c

Change-Id: I5e6be606e8bec8ee09b3925c8b547eeef1a06503
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
9 months agoAdd test check_alias_exists_in_store function in cert-server-logic.c 96/315796/9
tranthanhtung2001 [Thu, 8 Aug 2024 01:05:08 +0000 (08:05 +0700)]
Add test check_alias_exists_in_store function in cert-server-logic.c

Change-Id: I4babbf5509cfc8b39639c0c85db717a71ea8b6be
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
9 months agoAdd test case for get_certificate_status_from_store function in cert-server-logic.c 75/315775/8
tranthanhtung2001 [Wed, 7 Aug 2024 09:11:31 +0000 (16:11 +0700)]
Add test case for get_certificate_status_from_store function in cert-server-logic.c

Change-Id: I272a2b4f8e7045feb5cd166ec5c402f78c57d07f
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
9 months agoAdd test case for set_certificate_status_to_store function in cert-server-logic.c 30/315730/7
tranthanhtung2001 [Wed, 7 Aug 2024 06:19:44 +0000 (13:19 +0700)]
Add test case for set_certificate_status_to_store function in cert-server-logic.c

Change-Id: I88ec1284f71230412096dc467a6d092a71dcd9ec
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
9 months agoAdd test case for update_ca_certificate_file in cert-server-logic.c 94/315594/10
tranthanhtung2001 [Mon, 5 Aug 2024 05:39:58 +0000 (12:39 +0700)]
Add test case for update_ca_certificate_file in cert-server-logic.c

Change-Id: I8b6a02542774ea98353beef215c54d824022d413
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
9 months agoAdd tests for exception.cpp file 88/315988/3
Le [Mon, 12 Aug 2024 07:14:18 +0000 (14:14 +0700)]
Add tests for exception.cpp file

Change-Id: I2db625d9100e88941c51aa126c5713621c6606c9
Signed-off-by: Le <xuan.tien@samsung.com>
9 months agoAdd unit-tests for Vcore SaxReader 77/315977/6
Le [Mon, 12 Aug 2024 06:09:27 +0000 (13:09 +0700)]
Add unit-tests for Vcore SaxReader

Change-Id: Ic49b419ff64cb9d7ea14e0ee8644dc44ae8aca9f
Signed-off-by: Le <xuan.tien@samsung.com>
9 months agoAdd tests for vcore certificate functions 90/315890/3
Le [Fri, 9 Aug 2024 02:48:42 +0000 (09:48 +0700)]
Add tests for vcore certificate functions

Change-Id: Id26b99d5ebb6fe2c7ef2d1d7685b95ded8ed549d
Signed-off-by: Le <xuan.tien@samsung.com>
9 months agoAdd unit test for certsvc_certificate_is_signed_by 87/315287/2
Phan Xuan Tan [Mon, 29 Jul 2024 10:38:47 +0000 (17:38 +0700)]
Add unit test for certsvc_certificate_is_signed_by

Change-Id: I0d1ab2a8443e69d8c82377d2675fa35cfeb73d12

9 months agoAdd unit test for certsvc_message_verify 74/315274/2
Phan Xuan Tan [Mon, 29 Jul 2024 08:58:57 +0000 (15:58 +0700)]
Add unit test for certsvc_message_verify

Change-Id: I435e88b56964bcfe76805ab7fc3d0e089aa28dc3

9 months agoAdd unit tests for certsvc_base64_encode and certsvc_base64_decode 57/315257/2
Phan Xuan Tan [Mon, 29 Jul 2024 07:25:59 +0000 (14:25 +0700)]
Add unit tests for certsvc_base64_encode and certsvc_base64_decode

Change-Id: I0e4fb28b0a394333472ad435955485469b661e8b

9 months agoAdd unit test case for certsvc_certificate_get_visibility 54/315254/2
Phan Xuan Tan [Mon, 29 Jul 2024 06:20:51 +0000 (13:20 +0700)]
Add unit test case for certsvc_certificate_get_visibility

Change-Id: Ib2e83b62ca885e2ad6b56ea39b70c5abb0a4522f

9 months agoAdd unite tests for certsvc_certificate_verify and certsvc_certificate_verify_with_caflag 49/315249/2
Phan Xuan Tan [Mon, 29 Jul 2024 05:27:35 +0000 (12:27 +0700)]
Add unite tests for certsvc_certificate_verify and certsvc_certificate_verify_with_caflag

Change-Id: Ia2c8caa0b6c5f5d0a4b4f90a2bb37f6c33e19e80

10 months agoAdd unit test to get private key from stores 08/315208/1
Phan Xuan Tan [Fri, 26 Jul 2024 10:06:55 +0000 (17:06 +0700)]
Add unit test to get private key from stores

Change-Id: I2c6c0e3d56c15775a999517123296e70b39af86f

10 months agoAdd unit tests to get certificate info, status, and alias name from store 38/314738/4
Phan Xuan Tan [Thu, 18 Jul 2024 07:58:40 +0000 (14:58 +0700)]
Add unit tests to get certificate info, status, and alias name from store

Change-Id: Ib2b235de76e1effa5887be466e12b9a90a73ef5d

10 months agoAdd unit test cases for SignatureValidator 35/314335/8
Phan Xuan Tan [Wed, 10 Jul 2024 08:19:12 +0000 (15:19 +0700)]
Add unit test cases for SignatureValidator

Change-Id: I98ff12066b2362e53cafe45169c310884878d77a

10 months agoAdd unit test case fo delete certificate 59/314559/6
Phan Xuan Tan [Mon, 15 Jul 2024 08:22:12 +0000 (15:22 +0700)]
Add unit test case fo delete certificate

+ vcore/certsvc_pkcs12_delete_certificate_from_store
+ vcore/vcore_client_delete_certificate_from_store
+ server/deleteCertificateFromStore

Change-Id: Idcfe8192abe0ef1ee5f69b83aadf1a37748a3d8f

10 months agoAdd positive and negative test cases for vcore_client_install_certificate_to_store 33/314233/7
Phan Xuan Tan [Tue, 9 Jul 2024 05:51:33 +0000 (12:51 +0700)]
Add positive and negative test cases for vcore_client_install_certificate_to_store

Change-Id: Ia499fe1a2b06748f96b422b20dc1964118b34557

10 months agoAdd unit-test for dpl log.cpp 82/314282/7
tranthanhtung2001 [Wed, 10 Jul 2024 01:23:35 +0000 (08:23 +0700)]
Add unit-test for dpl log.cpp

Change-Id: I8792e0263409b514d93468f35a627343c05375d6
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
10 months agoAdd unit-test for dpl old_style_log_provider 63/314163/11
tran.tung [Mon, 8 Jul 2024 03:32:24 +0000 (10:32 +0700)]
Add unit-test for dpl old_style_log_provider

Change-Id: Ie11f200d654bab48248a168710021abb1a48b938
Signed-off-by: tran.tung <tran.tung@samsung.com>
10 months agoAdd unit-test for dpl journal log provider 14/314014/11
tran.tung [Thu, 4 Jul 2024 04:04:11 +0000 (11:04 +0700)]
Add unit-test for dpl journal log provider

Change-Id: I10ba4639ca26fecdd1179168da3e2276ceb54b91
Signed-off-by: tran.tung <tran.tung@samsung.com>
11 months agoAdd unit test cases for SignatureReader 31/314331/5
Phan Xuan Tan [Wed, 10 Jul 2024 07:12:52 +0000 (14:12 +0700)]
Add unit test cases for SignatureReader

Change-Id: I045c943f0efce21fb25fd65f0fb5e4fa4a978931

11 months agoAdd unit test cases for SignatureFinder 23/314323/6
Phan Xuan Tan [Wed, 10 Jul 2024 06:15:47 +0000 (13:15 +0700)]
Add unit test cases for SignatureFinder

Change-Id: I57cca5d0188a62416991477f6709c243a0a13a9d

11 months agoAdd positive and negative test cases for SignatureData 18/314318/6
Phan Xuan Tan [Wed, 10 Jul 2024 05:55:25 +0000 (12:55 +0700)]
Add positive and negative test cases for SignatureData

Change-Id: Ib4a486e2487b04def14a70d9ad88784472a6bf8f

11 months agoAdd positive and negative test cases for certsvc_certificate_is_root_ca and certsvc_c... 01/314301/5
Phan Xuan Tan [Wed, 10 Jul 2024 03:44:25 +0000 (10:44 +0700)]
Add positive and negative test cases for certsvc_certificate_is_root_ca and certsvc_certificate_chain_sort

Change-Id: I109a8022aa6821f357bb63c4a905784e5bb717e1

11 months agoAdd positive and negative test cases for certsvc_certificate_dup_x509 and certsvc_cer... 84/314284/8
Phan Xuan Tan [Wed, 10 Jul 2024 02:06:16 +0000 (09:06 +0700)]
Add positive and negative test cases for certsvc_certificate_dup_x509 and certsvc_certificate_dup_pubkey_der

Change-Id: I1e430d71a01859b1fe08ec691abc63a7c1ab0206

11 months agoAdd positive and negative test cases for getCertificateListFromStore and loadCertific... 51/314251/8
Phan Xuan Tan [Tue, 9 Jul 2024 08:36:25 +0000 (15:36 +0700)]
Add positive and negative test cases for getCertificateListFromStore and loadCertificatesFromStore

Change-Id: Ie4b42b2fd5202dfb9ca6ed623ae81899bd1d6eb9

11 months agoAdd positive and negative test cases to get end user and root cert from stores 98/314198/8
Phan Xuan Tan [Mon, 8 Jul 2024 10:10:45 +0000 (17:10 +0700)]
Add positive and negative test cases to get end user and root cert from stores

Change-Id: I176315a5691698a8adbe3de34bdeb2dd747e107c

11 months agoAdd positive and negative test cases to get certificates from stores 60/314160/9
Phan Xuan Tan [Mon, 8 Jul 2024 02:49:15 +0000 (09:49 +0700)]
Add positive and negative test cases to get certificates from stores

Change-Id: I44990b74c313a72f4675d725ff2e074c00171573

11 months agoAdd positve and negative test cases to import cert file to individual stores 95/314095/8
Phan Xuan Tan [Fri, 5 Jul 2024 06:24:51 +0000 (13:24 +0700)]
Add positve and negative test cases to import cert file to individual stores

Change-Id: I0088aaa3d6ad0a6ae4a743aeec793019aec0463f

11 months agoAdd negative and positive test cases 03/314003/6
Phan Xuan Tan [Thu, 4 Jul 2024 02:31:07 +0000 (09:31 +0700)]
Add negative and positive test cases
+ Save certificate to specific file
+ Get certificate information such as: subject info, issuer info, time not before and time not after

Change-Id: I17efc555dce73ae9821e325de326e0f0e96e8dde

11 months agoFix SVACE defect 28/313528/25
Phan Xuan Tan [Thu, 27 Jun 2024 10:25:44 +0000 (17:25 +0700)]
Fix SVACE defect

Change-Id: Ic2824b155d1192b840b69e9b6ee19d739bc661d6

11 months agoAdd test cases for installCertificateToStore on server 59/312759/27
Phan Xuan Tan [Fri, 14 Jun 2024 02:22:43 +0000 (09:22 +0700)]
Add test cases for installCertificateToStore on server

Change-Id: Ic58f75198ff6e94850493403b157f6413ac95b1f

11 months agoAdd test cases for Base64 Encoder and Base64 Decoder 31/312731/19
Phan Xuan Tan [Thu, 13 Jun 2024 09:51:31 +0000 (16:51 +0700)]
Add test cases for Base64 Encoder and Base64 Decoder

Change-Id: I8cd256107c12703650ec07a702f949576c087186

11 months agoAdd test cases for certsvc_certificate_new_from_memory and certsvc_certificate_new_fr... 07/312307/20
Phan Xuan Tan [Thu, 6 Jun 2024 11:36:33 +0000 (18:36 +0700)]
Add test cases for certsvc_certificate_new_from_memory and certsvc_certificate_new_from_file

Change-Id: I14938143371767fa920590379bd8f1d22b63a43f

11 months agoAdd unit tests for vcore: CertificateCollection 67/313067/7
Le [Wed, 19 Jun 2024 01:49:29 +0000 (08:49 +0700)]
Add unit tests for vcore: CertificateCollection

Change-Id: I71d9817af93137d664439de1617c364d6b4f3106
Signed-off-by: Le <xuan.tien@samsung.com>
11 months agoAdd positive execute insert update query database 37/313637/3
tran.tung [Fri, 28 Jun 2024 09:56:16 +0000 (16:56 +0700)]
Add positive execute insert update query database
Add negative execute insert update query database not initialised
Add negative execute insert update query database query null

Change-Id: I61bd2a9491a4beedaa0da800bdb804af7288eec6
Signed-off-by: tran.tung <tran.tung@samsung.com>
11 months agoAdd test vcore time conversion 40/313040/6
tranthanhtung2001 [Tue, 18 Jun 2024 10:04:24 +0000 (17:04 +0700)]
Add test vcore time conversion

Change-Id: I4219356f3338eb863db859082c742b5272251850
Signed-off-by: tranthanhtung2001 <tran.tung@samsung.com>
12 months agoAdd positive and negative test case for CertStoreType class 61/312061/2
Phan Xuan Tan [Mon, 3 Jun 2024 11:14:49 +0000 (18:14 +0700)]
Add positive and negative test case for CertStoreType class

Change-Id: I3e34395076bb1ea9449b3651c1a87f7dc6e658da

12 months agoAdd some positive & negative test cases for vcore/api 59/311459/7
Phan Xuan Tan [Tue, 21 May 2024 10:33:52 +0000 (17:33 +0700)]
Add some positive & negative test cases for vcore/api

Functions: certsvc_string_to_cstring, certsvc_instance_new, certsvc_string_not_managed

Change-Id: I4e7d970ad296525dd05a77a76ad3923c4082d8b1

12 months agoAdd automation for code coverage 90/311190/3
Phan Xuan Tan [Thu, 16 May 2024 02:39:47 +0000 (09:39 +0700)]
Add automation for code coverage

Change-Id: I868d933135bf4411ee8d28a2d13ece178e46981b

12 months agoConfig basic unit-tests for cert-svc 26/310626/3
Phan Xuan Tan [Fri, 3 May 2024 02:44:14 +0000 (09:44 +0700)]
Config basic unit-tests for cert-svc

Change-Id: I3064a3ec18c73f7efc065e3d7e36eee3fecde696

16 months agoFix sqlite2 DB operations during the build & small spellchek fix 22/305522/5 accepted/tizen_8.0_unified accepted/tizen_9.0_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain tizen_8.0 tizen_9.0 accepted/tizen/8.0/unified/20240208.163159 accepted/tizen/9.0/unified/20241030.234617 accepted/tizen/unified/20240208.163947 accepted/tizen/unified/dev/20240620.005607 accepted/tizen/unified/toolchain/20240311.065521 accepted/tizen/unified/x/20240214.051933 tizen_9.0_m2_release
Tomasz Swierczek [Thu, 1 Feb 2024 12:28:10 +0000 (13:28 +0100)]
Fix sqlite2 DB operations during the build & small spellchek fix

Now, if inserting certificates into DB fails, the shell script
that manages their insertion will cause GBS build to fail too.

Without this change, on Tizen 7.0+ the certs databse of cert-svc
was emtpy, becasue sqlite3 couldn't parse the sql script adding
each certificate AND GBS didn't fail due to the way sh script was
written.

Change-Id: I6a0266936b317a119dbe08fd3817883ab1b2fcec

21 months agoMigrate to openssl3 86/295686/2 accepted/tizen/8.0/unified/20231005.093555 accepted/tizen/unified/20230913.091631 tizen_8.0_m2_release
Dariusz Michaluk [Wed, 12 Jul 2023 09:08:55 +0000 (11:08 +0200)]
Migrate to openssl3

Change-Id: Ide4665e5754e583c1a55445f53f7880b01f58c84

21 months agoFix tests 41/298041/1
Dariusz Michaluk [Wed, 30 Aug 2023 08:47:29 +0000 (10:47 +0200)]
Fix tests

Change-Id: I5183918ae55974d58715a945703e2e9f1f45f0ca

23 months agoFix static analysis issues 92/295492/1 accepted/tizen/unified/20230712.040722
Tomasz Swierczek [Mon, 10 Jul 2023 05:23:58 +0000 (07:23 +0200)]
Fix static analysis issues

Change-Id: I89454cf5d3014234114ac3ff720ccac24716a47a

2 years agouse /usr/lib64 as PLUGIN_PATH for 64bit machine 23/286023/1 accepted/tizen/unified/20221228.165939
Dongsun Lee [Mon, 26 Dec 2022 09:26:00 +0000 (18:26 +0900)]
use /usr/lib64 as PLUGIN_PATH for 64bit machine

Change-Id: I063d43e524eaa725f6155db8c936674442beca37

2 years agoMerge "Update xmlsec callback logging" into tizen
Dariusz Michaluk [Thu, 15 Dec 2022 09:08:52 +0000 (09:08 +0000)]
Merge "Update xmlsec callback logging" into tizen

2 years agoUpdate xmlsec callback logging 63/285563/1
Krzysztof Jackiewicz [Wed, 14 Dec 2022 16:26:55 +0000 (17:26 +0100)]
Update xmlsec callback logging

The main purpose of this commit is to help with debugging memory leaks in a
client app.
* Log file closing callback to make sure that files are closed eventually.
* Log only filename without the prefix in file opening callback. The prefix is
  logged elsewhere anyway. This is to avoid log truncating on some images.

Change-Id: I20bd376c18b9c2f0ab865cf9dccdaf8cedbec202

3 years agoRemove unused sec_build_binary_debug_enable build macro 02/267102/1
Dariusz Michaluk [Thu, 25 Nov 2021 11:02:37 +0000 (12:02 +0100)]
Remove unused sec_build_binary_debug_enable build macro

Change-Id: I09cd433b893b3a0ceb1d920d3511415db424177c

4 years agoChange systemd-devel package name 92/252892/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified_hotfix tizen_6.5 tizen_7.0_hotfix accepted/tizen/6.5/unified/20211028.121307 accepted/tizen/7.0/unified/20221110.062401 accepted/tizen/7.0/unified/hotfix/20221116.105526 accepted/tizen/unified/20210210.130318 submit/tizen/20210209.101030 submit/tizen_6.5/20211028.162401 tizen_6.5.m2_release tizen_7.0_m2_release
INSUN PYO [Wed, 3 Feb 2021 04:22:55 +0000 (13:22 +0900)]
Change systemd-devel package name

Change-Id: I4cd8301827e11a8c4a8f305d2458d1119ee1421a

5 years agoFix cert-svc-test build 75/226275/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.114827 accepted/tizen/6.0/unified/hotfix/20201103.003652 accepted/tizen/unified/20200302.041959 submit/tizen/20200228.120953 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 tizen_6.0.m2_release
Dariusz Michaluk [Fri, 28 Feb 2020 12:02:17 +0000 (13:02 +0100)]
Fix cert-svc-test build

Change-Id: I89e8c5dbe8c4d9ac3f410384ef8d22ea74dd9f08

5 years agoFix static analysis issues 32/226032/2
Tomasz Swierczek [Wed, 26 Feb 2020 07:26:44 +0000 (08:26 +0100)]
Fix static analysis issues

Change-Id: Ifce959c552cdd1605c1304220e5769b101e0433c

5 years agoFix static analysis issues 68/224968/2 accepted/tizen/unified/20200217.213841 submit/tizen/20200214.123052
Tomasz Swierczek [Fri, 14 Feb 2020 09:38:48 +0000 (10:38 +0100)]
Fix static analysis issues

Change-Id: Ie3aaef254c8767a5ebe39a4168958ef580a7475d

5 years agoEven more gcc 9 fixes after adding Wall to build root params 66/222466/2 accepted/tizen/unified/20200116.101852 submit/tizen/20200115.072123
Tomasz Swierczek [Wed, 15 Jan 2020 07:05:42 +0000 (08:05 +0100)]
Even more gcc 9 fixes after adding Wall to build root params

Change-Id: I02f46b0d9d4661cc9fdbbdc3689ff1dc7d670bd1

5 years agoAdjust to gcc 9 accepted/tizen/unified/20200113.130615 submit/tizen/20200110.061056
Tomasz Swierczek [Fri, 10 Jan 2020 06:06:52 +0000 (07:06 +0100)]
Adjust to gcc 9

Change-Id: I74da408463618ec011f83be49573689eda5036eb

5 years agoDisable automatic dependencies for test binaries 16/217716/3
Krzysztof Jackiewicz [Wed, 13 Nov 2019 12:53:41 +0000 (13:53 +0100)]
Disable automatic dependencies for test binaries

Tests package contains binaries compiled with different gcc versions. RPMs calls
ldd on them adding libgcc(3.5) to the package dependencies. As a result the
package can't be installed without --nodeps option.

This commit moves the test binaries to a separate package with automatic
dependencies disabled.

Change-Id: Ic77c85125f4d8348c8449dc04fc35116646f40c0

5 years agoMigrate to openssl 1.1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20200220.122628 accepted/tizen/5.5/unified/wearable/hotfix/20201027.113121 accepted/tizen/unified/20191113.123553 submit/tizen/20191029.112455 submit/tizen/20191107.131533 submit/tizen_5.5/20191107.131452 submit/tizen_5.5/20200211.042532 submit/tizen_5.5_wearable_hotfix/20201026.184304
Dariusz Michaluk [Mon, 8 Jul 2019 14:53:15 +0000 (16:53 +0200)]
Migrate to openssl 1.1

Change-Id: I3f19d16650b4d9b12287029480b36d14b8b041f0

5 years agoFix memory leaks reported by Coverity accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv accepted/tizen/5.5/unified/20191031.022701 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090440 accepted/tizen/unified/20191017.011726 submit/tizen/20191015.062638 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 tizen_5.5.m2_release
Krzysztof Jackiewicz [Mon, 14 Oct 2019 11:46:04 +0000 (13:46 +0200)]
Fix memory leaks reported by Coverity

Change-Id: I88fc5c33eaf1596f1ae81f7d2728710f7a0c5b8d

5 years agoAdd return value checking to xmlSecIORegisterCallbacks 14/212814/1 accepted/tizen/unified/20190905.112935 submit/tizen/20190829.054701 submit/tizen/20190905.044627
Tomasz Swierczek [Tue, 27 Aug 2019 05:01:45 +0000 (07:01 +0200)]
Add return value checking to xmlSecIORegisterCallbacks

Change-Id: Ib1b240c5994cb1c12844d45731e1dccf6c0fa133

5 years agoFix ocsp and vcore test T0031_check_positive 63/211263/2 accepted/tizen/unified/20190802.111334 submit/tizen/20190801.142251
Konrad Lipinski [Wed, 31 Jul 2019 18:26:50 +0000 (20:26 +0200)]
Fix ocsp and vcore test T0031_check_positive

* supplied new certificates for the test (leaf expires 2021.04.30)
* existing ocsp engine had problems handling those certificates so
  modified vcore ocsp implementation to alleviate the issue;
  used key-manager's implementation, particularly the commit
  eacd8b321de92d38288294d2584ef98d517caead, as a guideline

Change-Id: Idfd944bfaa2d94d07f5073f0d3d21f873d355481

5 years agoFix pkcs12 tests (generate expired certs anew) 56/211256/1
Konrad Lipinski [Wed, 31 Jul 2019 13:20:42 +0000 (15:20 +0200)]
Fix pkcs12 tests (generate expired certs anew)

Change-Id: I0e041bc89c545a5707c6cc62875288b4f0d0326f

5 years agoFix capi tests (generate expired certificates anew) 48/211248/1
Konrad Lipinski [Tue, 30 Jul 2019 17:10:26 +0000 (19:10 +0200)]
Fix capi tests (generate expired certificates anew)

Change-Id: Id94e35ae2840b63255aae7bb2266836691ad392d

5 years agoDisable cert-server.service startup at boot time 81/209581/1 submit/tizen/20190712.120054
INSUN PYO [Tue, 9 Jul 2019 05:19:39 +0000 (14:19 +0900)]
Disable cert-server.service startup at boot time

Cert-server.service starts only by socket activation.
So, we can remove "Wants=cert-server.service" from cert-server.service.

Change-Id: Id5e8d50c59513b9f9ec6e19a7661737c9bd98de3

5 years agoRemove FINGERPRINT_LIST_RW_PATH 68/198768/2 submit/tizen/20190704.080200
Dongsun Lee [Tue, 29 Jan 2019 08:56:58 +0000 (17:56 +0900)]
Remove FINGERPRINT_LIST_RW_PATH

Change-Id: I9cc1840acfca421c676190775924d3795180dc0c
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
6 years agoRemove unnecessary openssl dependency 15/207515/1 submit/tizen/20190606.103314
Dariusz Michaluk [Wed, 5 Jun 2019 12:43:40 +0000 (14:43 +0200)]
Remove unnecessary openssl dependency

openssl binary is needed only during building, not in runtime

Change-Id: Ic018ad98e3f41bf2419bae00dea5cf5fcf413e7f

6 years agoFix c++test defects (realpath, snprintf, strncpy usage) 88/205188/2
Konrad Lipinski [Mon, 29 Apr 2019 17:49:02 +0000 (19:49 +0200)]
Fix c++test defects (realpath, snprintf, strncpy usage)

Change-Id: I76c43ce065b751f10e1ec6026cc8f17fa4b668e4

6 years agoAdd arbitrary key-value map data interface to pass data between plugins and API clients 49/198949/3 accepted/tizen/unified/20190202.022436 submit/tizen/20190131.135638 submit/tizen/20190201.054001
Tomasz Swierczek [Thu, 31 Jan 2019 07:40:34 +0000 (08:40 +0100)]
Add arbitrary key-value map data interface to pass data between plugins and API clients

cert-svc allows to use validator plugins that can have any arbitrary logic embedded.
Installers may need to get special information, characteristic for plugins, from cert-svc.
New SignatureData class methods allow to set (on plugin side) and retrieve (on installer side)
simple string values that can have their meaning defined by plugin logic.

Installer should depend on specific plugin's key name definition (alternative is hard-coding)
and check for values using SignatureData interface.

Change-Id: I098a33b981d2b175ea72ba16cd8c968048ff116d

6 years agoAdd no auto requires to examples to fix build break 28/198928/1
Jaechul Lee [Wed, 21 Mar 2018 06:42:17 +0000 (15:42 +0900)]
Add no auto requires to examples to fix build break

[Problem]
- Build failed due to prebuilt example binary requires lower version of
  libc automatically
[Cause & Measure]
- Exclude auto requires not to require lower version of libc from
  cert-svc rpm
[Developer] jc815.lee

Change-Id: Ie2544b847317d865e904e80c4382677bc4dee428
Signed-off-by: Jaechul Lee <jc815.lee@samsung.com>