platform/core/security/trust-anchor.git
4 years agoFix coverity defect 28/225028/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.0/unified/20201030.115309 accepted/tizen/6.0/unified/hotfix/20201103.004108 accepted/tizen/6.5/unified/20211028.121524 accepted/tizen/7.0/unified/20221110.062552 accepted/tizen/7.0/unified/hotfix/20221116.105639 accepted/tizen/unified/20200218.145934 submit/tizen/20200217.042237 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 submit/tizen_6.5/20211028.162401 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release
Sangwan Kwon [Mon, 17 Feb 2020 01:04:53 +0000 (10:04 +0900)]
Fix coverity defect

- Unchecked return value from library

Change-Id: Ifcb2672f3545dcc1adef9b942e80ee298c1c3c9c
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years agoMigrate to openssl 1.1 76/206976/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.023217 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090759 accepted/tizen/5.5/unified/wearable/hotfix/20201027.113417 accepted/tizen/unified/20190705.110757 submit/submit/tizen/20190704.112637/20190704.112815 submit/tizen/20190619.044623 submit/tizen/20190704.112637 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 submit/tizen_5.5_wearable_hotfix/20201026.184304 tizen_5.5.m2_release
Konrad Lipinski [Wed, 29 May 2019 14:14:40 +0000 (16:14 +0200)]
Migrate to openssl 1.1

Change-Id: Ib7d23bbfad2347edd01d3b7b088e6dc3f54bf56d

5 years agoUpgrade version to 2.1.2 24/189324/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.021707 accepted/tizen/unified/20180918.152324 submit/tizen/20180918.011006 submit/tizen_5.0/20181101.000004
sangwan.kwon [Mon, 17 Sep 2018 05:02:30 +0000 (14:02 +0900)]
Upgrade version to 2.1.2

- Enable RTTI for custom exception
- Add package dependency to security-config
- Fix coverity defects
- Fix macro name as unique

Change-Id: I274a18b288d1b7f3711ba279c98948abd5c056b9
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoEnable RTTI for custom exception 23/189323/1
sangwan.kwon [Mon, 17 Sep 2018 04:58:36 +0000 (13:58 +0900)]
Enable RTTI for custom exception

Change-Id: Ie51e88a5cebd0fa998f07e98693eb9099e47f475
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoAdd package dependency to security-config 38/187738/1 accepted/tizen/unified/20180829.142544 submit/tizen/20180828.064652
sangwan.kwon [Tue, 28 Aug 2018 06:05:23 +0000 (15:05 +0900)]
Add package dependency to security-config

- Package(security-config) includes security_fw label(user/group)

Change-Id: I81529c63deabb5497f9f7719eb55f21d4087e753
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix coverity defects 95/173695/2 accepted/tizen/unified/20180405.064317 submit/tizen/20180404.020934 submit/tizen/20180404.064013
sangwan.kwon [Fri, 23 Mar 2018 07:01:48 +0000 (16:01 +0900)]
Fix coverity defects

- Error handling issues
- Control flow issues

Change-Id: I1de11998b681834f179a86b93e8f8638a02d6d95
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix macro name as unique 99/172099/1 accepted/tizen/unified/20180329.125122 submit/tizen/20180312.013912 submit/tizen/20180322.011823 submit/tizen/20180327.003656
sangwan.kwon [Mon, 12 Mar 2018 00:39:54 +0000 (09:39 +0900)]
Fix macro name as unique

Change-Id: I86e3b679de357ab27625233410f0a5c50947e3a7
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoUpgrade version to 2.1.1 74/157974/1 accepted/tizen/unified/20171030.161602 submit/tizen/20171027.063458
sangwan.kwon [Fri, 27 Oct 2017 05:42:58 +0000 (14:42 +0900)]
Upgrade version to 2.1.1

- Fix log level of NOT_INSTALLED as INFO
- Grant System::Shared label to pakage-directory

Change-Id: Ib0963bd215b29dc17df24c5ecc2d8fc03b926805
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix log level of NOT_INSTALLED as INFO 65/157965/2
sangwan.kwon [Fri, 27 Oct 2017 04:48:55 +0000 (13:48 +0900)]
Fix log level of NOT_INSTALLED as INFO

Change-Id: I0e152da4340c8cf6c84632cb1822ba2b6f25b03a
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoGrant System::Shared label to pakage-directory 51/157951/1
sangwan.kwon [Fri, 27 Oct 2017 02:46:39 +0000 (11:46 +0900)]
Grant System::Shared label to pakage-directory

[Background]
- App-installer is run as System label and it handles
  package-directory of trust-anchor
- Launchpad is run as User label and it reads package-directory

[Problem]
- Files of package-directory is made by app-installer as System label.
  So, Launchpad cannot read it.

[Solution]
- Grant System::Shared label.

Change-Id: I492ec4c5e4ddd2d530b88581eb2fbfc8d32a4874
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoUpgrade version to 2.1.0 38/157738/1 accepted/tizen/unified/20171027.152034 submit/tizen/20171026.071605
sangwan.kwon [Thu, 26 Oct 2017 04:57:49 +0000 (13:57 +0900)]
Upgrade version to 2.1.0

[MAJOR]
- Add error code about trust-anchor is not installed
- Fix uninstall API policy

[MINOR]
- Replace std::rewind to std::fseek
- Update documentation according to version 2.0.0

Change-Id: Ifdef2eef5b35b83c6e105c60f09a92b7fdb3943c
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoAdd error code about trust-anchor is not installed 30/157730/1
sangwan.kwon [Wed, 25 Oct 2017 08:33:51 +0000 (17:33 +0900)]
Add error code about trust-anchor is not installed

[Background]
- Launcher-pad cannot get information of the package
  which trust-anchor is installed or not.

[Solution]
- Add new error code (TRUST_ANCHOR_ERROR_NOT_INSTALLED)

Change-Id: I45543949a96bcdaac3d0b933cc87ace20866f5df
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoReplace std::rewind to std::fseek 23/150323/1
sangwan.kwon [Wed, 13 Sep 2017 04:49:02 +0000 (00:49 -0400)]
Replace std::rewind to std::fseek

std::rewind cannot handle error indicators.

Change-Id: I8c4006c5378a19c6e761708df619f1d77261d8bd
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoUpdate documentation according to version 2.0.0 74/142474/1
sangwan.kwon [Fri, 4 Aug 2017 05:16:56 +0000 (14:16 +0900)]
Update documentation according to version 2.0.0

Change-Id: I89bd8ac8c9b4659a1e7f19d83a9667e18b65a0d8
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix uninstall API policy 32/141132/1 accepted/tizen/4.0/unified/20170816.012820 accepted/tizen/4.0/unified/20170829.020430 accepted/tizen/unified/20170731.153835 submit/tizen/20170731.054223 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100004 submit/tizen_4.0/20170828.110004
sangwan.kwon [Fri, 28 Jul 2017 07:48:54 +0000 (16:48 +0900)]
Fix uninstall API policy

[AS-IS]
- If trust-anchor is never installed and uninstall API is called,
  return FAILED-status error code.

[TO-BE]
- If trust-anchor is never installed and uninstall API is called,
  notify to log as warning and process continue.

Change-Id: I2aff6aca3622dba4e7edaa811c5a735c3ffb67c4
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoUpgrade version to 2.0.0 00/139700/2 accepted/tizen/unified/20170728.195546 submit/tizen/20170720.071940 submit/tizen/20170724.061427 submit/tizen/20170724.094119 submit/tizen/20170727.084517
sangwan.kwon [Thu, 20 Jul 2017 07:06:29 +0000 (16:06 +0900)]
Upgrade version to 2.0.0

[MAJOR]
- [API Changed] Refine launch, uninstall API
- [API Changed] Unify API sets(global, usr)

[MINOR]
- Add testcase about Uninstall API
- Fix logger usage according to KLAY API changed
- Include error-header to API header explicitly

Change-Id: Id012103f98927ab7452d4f1d86ea7fccb236a184
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoAdd testcase about Uninstall API 70/139470/1
sangwan.kwon [Wed, 19 Jul 2017 05:32:21 +0000 (14:32 +0900)]
Add testcase about Uninstall API

- Even though original package's certificates are removed
  after install API called, uninstall API should be succeed.
- This TC is related with klay patch
  (https://review.tizen.org/gerrit/#/c/138903/)

Change-Id: I71008b44d78acb91f95ac4c8e3f5ca516fcd2376
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix logger usage according to KLAY API changed 97/139197/1 accepted/tizen/unified/20170727.190710 submit/tizen/20170726.025713
sangwan.kwon [Mon, 17 Jul 2017 08:23:27 +0000 (17:23 +0900)]
Fix logger usage according to KLAY API changed

Change-Id: I60fb8056ee8866eef6d17a95dcc5d84ba7b4a5ef
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years ago[API Changed] Refine launch, uninstall API 20/138520/2 accepted/tizen/unified/20170726.013008 submit/tizen/20170725.065700 submit/tizen/20170725.091352
sangwan.kwon [Wed, 12 Jul 2017 10:50:55 +0000 (19:50 +0900)]
[API Changed] Refine launch, uninstall API

[AS-IS]
- Installer should save data(1):"package-certs-path".
- Launcher should be able to get data(1) for using launch API.
- Installer should be able to get data(1) for using uninstall API.

[TO-BE]
- Installer does not need to save and get data(1).
- Launcher does not need to get data(1).

Change-Id: Ieeec21a62830d5a02e53c592999e041feef1dc5a
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years ago[API Changed] Unify API sets(global, usr) 10/138410/1
sangwan.kwon [Wed, 12 Jul 2017 06:27:24 +0000 (15:27 +0900)]
[API Changed] Unify API sets(global, usr)

Since global package has own uid, API can be unified.

Change-Id: Iefd89f86a00fc52bf143de45b0341662651c9f42
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoInclude error-header to API header explicitly 69/138369/1
sangwan.kwon [Wed, 12 Jul 2017 02:50:40 +0000 (11:50 +0900)]
Include error-header to API header explicitly

Change-Id: I7424d6d664200d88876453e16ecb8370f71b8dee
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoRelease 1.0.0 32/134232/1 accepted/tizen/unified/20170629.085837 submit/tizen/20170623.014003
sangwan.kwon [Thu, 15 Jun 2017 10:08:30 +0000 (19:08 +0900)]
Release 1.0.0

Change-Id: I6dd9bf61fa1cdb35688e935d82b2e87bf439eed8
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoUpgrade version to 1.0.0 31/134231/2
sangwan.kwon [Thu, 15 Jun 2017 08:45:45 +0000 (17:45 +0900)]
Upgrade version to 1.0.0

Change-Id: I9c45b0bfdc81534b7c3a1672e81c932163e460e6
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoAdd class diagram 14/134214/1
sangwan.kwon [Thu, 15 Jun 2017 08:38:34 +0000 (17:38 +0900)]
Add class diagram

Change-Id: Iba30892b484c4c882d564b3489e11e4ef9bc67ca
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoRefactor implementation of TrustAnchor 33/132433/3
sangwan.kwon [Fri, 2 Jun 2017 08:30:47 +0000 (17:30 +0900)]
Refactor implementation of TrustAnchor

- According to class diagram v2

Change-Id: I31c920ff155f96981e6b6ba838d7ccd07dabd459
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix typo on test-init script 75/131575/1
sangwan.kwon [Tue, 30 May 2017 05:30:37 +0000 (14:30 +0900)]
Fix typo on test-init script

Change-Id: I3bbdc294d0fbf9efa1b3f95992b63aa118d18913
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years ago[API Changed] Refine launch API 05/130605/2
sangwan.kwon [Tue, 23 May 2017 05:51:29 +0000 (14:51 +0900)]
[API Changed] Refine launch API

[AS-IS]
- Installer should save data(1):"whether app uses sysCerts or not".
- Launcher should be able to get data(1).

[TO-BE]
- Installer does not need to save data(1).
- Launcher does not need to get data(1).

Change-Id: I7f622b90d5f38dd9e52633a563f9ebcfc0dea001
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoDetach SSL testcases from internal testcases 09/128209/2
sangwan.kwon [Mon, 8 May 2017 04:34:10 +0000 (13:34 +0900)]
Detach SSL testcases from internal testcases

Change-Id: I5193a8933592a0d8d1bcbf97ee6038ed91bfe943
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd API examples about installer and launcher 44/125144/3
sangwan.kwon [Fri, 14 Apr 2017 04:07:48 +0000 (13:07 +0900)]
Add API examples about installer and launcher

Change-Id: I2a839f5b56884fc0eed1f8db156357e07595f071
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoMeasure performance of API 81/124981/1
sangwan.kwon [Thu, 13 Apr 2017 08:04:48 +0000 (17:04 +0900)]
Measure performance of API

[Result - Elapsed time]
- trust-anchor install operation : 11ms, 36ms(with system certs)
- trust-anchor launch operation : 2ms, 2ms(with system certs)

Change-Id: If0b75e9142d1fc746bdf491350218bb90d5be20d
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix visibility to hidden 28/124928/1
sangwan.kwon [Thu, 13 Apr 2017 05:16:20 +0000 (14:16 +0900)]
Fix visibility to hidden

Change-Id: Icf005ec5d9e35adb3a7771936df5bf1ce098e674
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd SSL communication testcase 51/124151/3
sangwan.kwon [Mon, 10 Apr 2017 10:02:12 +0000 (19:02 +0900)]
Add SSL communication testcase

Change-Id: I9936cab98398e0abb550b997ebe8026171a44739
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd documentation about doxygen and usecase 93/124093/1
sangwan.kwon [Mon, 10 Apr 2017 07:08:01 +0000 (16:08 +0900)]
Add documentation about doxygen and usecase

Change-Id: I15b98d3c72facede5b949883ef49055e93b7df20
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd smack label to test programs 87/122087/3
sangwan.kwon [Thu, 30 Mar 2017 06:59:43 +0000 (15:59 +0900)]
Add smack label to test programs

Change-Id: I4dd5cc9677b6425e629935632bf022c856c2c296
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoRefine error/exception handling logic 60/121260/6
sangwan.kwon [Mon, 27 Mar 2017 10:16:46 +0000 (19:16 +0900)]
Refine error/exception handling logic

Change-Id: Idf22a826277c872c9a180cfc9196d2193d30d6f7
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd gitignore file 46/121146/1
sangwan.kwon [Mon, 27 Mar 2017 07:31:07 +0000 (16:31 +0900)]
Add gitignore file

Change-Id: I7749373ee9fec0af967b9beef13fc84fa7b19138
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix CAPI description 45/121145/1
sangwan.kwon [Mon, 27 Mar 2017 07:28:46 +0000 (16:28 +0900)]
Fix CAPI description

Change-Id: I877bdb595079a5f1d017b8e82da63f70cc00a381
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoChange hard-coded bundle name to parsed string 59/120759/1
sangwan.kwon [Fri, 24 Mar 2017 04:41:13 +0000 (13:41 +0900)]
Change hard-coded bundle name to parsed string

Change-Id: Ie6848d8f0a48c1b4d8bda1c866e16878779d2e14
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd testcases of trust-anchor library 05/120005/2
sangwan.kwon [Mon, 20 Mar 2017 08:24:46 +0000 (17:24 +0900)]
Add testcases of trust-anchor library

Change-Id: Ia31dedd92c33000df652a55824a95b8918e0e5b7
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd implemetation of trust-anchor library 04/120004/1
sangwan.kwon [Thu, 16 Mar 2017 13:12:14 +0000 (22:12 +0900)]
Add implemetation of trust-anchor library

Change-Id: Id8ea3c9d3c18806daa310b1455064530640fd9b7
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd API headers and build/packaging system 00/119300/1
sangwan.kwon [Thu, 16 Mar 2017 08:45:49 +0000 (17:45 +0900)]
Add API headers and build/packaging system

Change-Id: I11178429164b9c60e6e0f76d8e9c5fdad1e8a918
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoInitial empty repository master
Tizen Infrastructure [Tue, 14 Mar 2017 07:21:20 +0000 (00:21 -0700)]
Initial empty repository