Dariusz Michaluk [Mon, 24 Apr 2023 08:40:45 +0000 (10:40 +0200)]
Check if DCM feature is supported on the device
Change-Id: I8cf77f3b7f48f2bc8977f81bc723cf363e831c2c
Dariusz Michaluk [Fri, 21 Apr 2023 11:24:28 +0000 (13:24 +0200)]
Add new DCM_ERROR_MSG_FORMAT error enum
In case of wrong message format we should return DCM_ERROR_MSG_FORMAT
instead of DCM_ERROR_NOT_SUPPORTED, which is designed for not supported features.
Change-Id: I794ff7a7bd41932b8099d17eaf47a23b0749c7dc
Dariusz Michaluk [Wed, 19 Apr 2023 11:49:36 +0000 (13:49 +0200)]
Release 2.1.0
Change-Id: I0430214c1c9a3aab25c21453769d0c8af21ca454
Dariusz Michaluk [Wed, 19 Apr 2023 10:03:38 +0000 (12:03 +0200)]
Remove hardcoded dcm-backend plugin version
Change-Id: If379c08c82de2b1e0559b969aa35565a6aa38388
Dariusz Michaluk [Tue, 18 Apr 2023 11:12:39 +0000 (13:12 +0200)]
Fix project versioning preserving backward compatibility
Change-Id: I892addc4101a6d568ff4e4d63b59b223f74b52a7
Dariusz Michaluk [Thu, 13 Apr 2023 14:13:56 +0000 (16:13 +0200)]
Fix documentation issues in E2EE API
Issues raised by check-header.py
https://github.sec.samsung.net/RPO7-TIZEN/tizen-native-api-review-script
Change-Id: Id9d2423315c5a4a7384f7c7acb5bc9df6ef59776
Dariusz Michaluk [Thu, 13 Apr 2023 12:25:35 +0000 (14:25 +0200)]
E2EE API will be available since Tizen 6.5
Change-Id: I9713c3722d677fe4bf69e9f1f1d12c32c3ba69e7
Dariusz Michaluk [Tue, 4 Apr 2023 10:42:43 +0000 (12:42 +0200)]
Break circular dependency
Change-Id: If31b792293891f7e80d6e143e355ae0c67e5ed42
Dariusz Michaluk [Mon, 3 Apr 2023 13:01:12 +0000 (15:01 +0200)]
Fix svace/coverity issues
Change-Id: I61f1c4f3302e741ac1b07aa826a2e8988cb80d9b
Dariusz Michaluk [Mon, 3 Apr 2023 08:58:59 +0000 (10:58 +0200)]
Fix build for 64-bit architectures.
Change-Id: I6443f62378e5f55a9b8374b5ed59a497588e8465
Dariusz Michaluk [Mon, 3 Apr 2023 08:26:44 +0000 (10:26 +0200)]
Merge branch 'e2ee' into tizen
Change-Id: I8dca833106b79ecfa23d0a95e88b82f8ccde77a0
Krzysztof Jackiewicz [Mon, 13 Mar 2023 14:46:39 +0000 (15:46 +0100)]
Return different error if backend call fails
DCM_ERROR_INVALID_PARAMETER seems more appropriate than
DCM_ERROR_NO_DATA. It's triggered e.g. when incompatible digest type is
passed as an argument.
Change-Id: I1957464c9ae4789a4c7a4d4532687f8d66d0c1a5
Krzysztof Jackiewicz [Tue, 7 Mar 2023 10:42:32 +0000 (11:42 +0100)]
E2EE signing implementation
Tests updated.
Change-Id: I61790de9a3914c3bea846e9060360c16969e65c6
Krzysztof Jackiewicz [Mon, 6 Mar 2023 18:30:44 +0000 (19:30 +0100)]
E2EE bundle API test
Change-Id: I84751e9ea417aedc06520af66c1208d76c4e091d
Krzysztof Jackiewicz [Tue, 7 Mar 2023 10:41:15 +0000 (11:41 +0100)]
Align E2EE API with existing one
Change-Id: I9f6356fe50d56860fbdb0bd2f24ad104beb1b323
Krzysztof Jackiewicz [Tue, 17 Jan 2023 09:54:54 +0000 (10:54 +0100)]
E2EE API draft
- E2EE bundle concept
- E2EE signatures
Change-Id: I5caf98d6d976752d009f56c090d442e2f9aecbf2
Tomasz Swierczek [Wed, 22 Feb 2023 12:49:24 +0000 (13:49 +0100)]
Add configuration for excluding unit tests from SAM analysis
SAM & analysis hub treats the fact that unit tests direclty
link to src/ folder as cycle dependency between various modules,
lowering its score.
Since unit tests are not part of release image and unit tests should, actually,
link with implemenation, not client library, to enable code coverage measurement,
their implementation will be removed from SAM check.
Change-Id: If0185b07526cd83cb0b9847d082254d5e367e6df
Dariusz Michaluk [Tue, 24 Jan 2023 15:03:14 +0000 (16:03 +0100)]
Fix heap-use-after-free found by AddressSanitizer
Change-Id: I7b0b0751e0c345d6424cd458e55330e6a5013339
Konrad Lipinski [Mon, 7 Jun 2021 16:14:49 +0000 (18:14 +0200)]
Fix test08_dcm_ext_api_no_privilege for sdb shell
... By switching to the System::Privileged smack label for the duration.
The label is required for the test to work due to the way cynara rules
are set up on the emulator.
Change-Id: If5bdca2f86b770f7d59de4b8b85d3c8c5aed3379
Michał Szaknis [Fri, 28 May 2021 13:19:39 +0000 (15:19 +0200)]
Add more tests for shared and dcm api.
Change-Id: I3f8afc27b66679196089c2432a9a5bb0b6c29698
Tomasz Swierczek [Mon, 29 Mar 2021 09:09:01 +0000 (11:09 +0200)]
Add API tests for new DCM EXT API
Change-Id: If68e66bd129cc0d567979243c743a5fbab640a21
Tomasz Swierczek [Thu, 25 Mar 2021 14:29:49 +0000 (15:29 +0100)]
Add server-side logic for EXT API calls
The implementation tries to call specialized backend API functions
as defined in the EXT API header.
Change-Id: I9554dbb114e2627fcde8190279076bf77b2f561e
Tomasz Swierczek [Thu, 25 Mar 2021 13:18:55 +0000 (14:18 +0100)]
Change verification of privileges
Now, the privileges are checked depending on the message
type received.
This implementation requires DCM daemon to receive
& deserialize the message 1st before checking client privileges.
This is required by the introduction of DCM EXT API which can be guarded
by specific privilege (or none) for each backend method.
Change-Id: Iaaae1bc220e497f2488d8d2700a5334fa14b61b6
Tomasz Swierczek [Fri, 5 Mar 2021 13:51:19 +0000 (14:51 +0100)]
Add client-side logic of DCM ext API
Change-Id: I2f1c806122118534adf634f5b3dbea958fc295bd
Tomasz Swierczek [Fri, 5 Mar 2021 12:13:19 +0000 (13:13 +0100)]
Add stub implementation of DCM ext API in client library
Since this commit, clients can link with new DCM ext API
library (SO file is properly provided).
Current implemenation of ext client API just returns error.
Change-Id: If07f0714a2497d84ed1673d2ce2ded05c541ea48
Tomasz Swierczek [Thu, 4 Mar 2021 10:19:46 +0000 (11:19 +0100)]
Add definitions of the new DCM ext API
New API is supposed to give DCM backends possibility
to define any custom method guarded with a Cynara privilege.
New API is not mandatory for plugins - plugins can implement
old, new, or both APIs of DCM.
This commit makes header files available for both: client
and the backend.
The DCM EXT error codes are defined in separate header
for easier management of errors returned from the daemon
to client.
Change-Id: Ia3478d1352f6eabfa913a975f7ee09c02b976939
Tomasz Swierczek [Wed, 3 Mar 2021 13:57:17 +0000 (14:57 +0100)]
Fix coverage generation in rpm 4.14.1
Debug source package directories now have different names.
Change-Id: I9b7accddcb51d5ec2c981c739c18513a3923dca8
INSUN PYO [Wed, 3 Feb 2021 04:29:51 +0000 (13:29 +0900)]
Change systemd-devel package name
Change-Id: Id9784f8af33ebde4e3f4e73c8e33c49f0c06b260
Dongsun Lee [Mon, 21 Dec 2020 07:34:13 +0000 (16:34 +0900)]
Fix a feature string not to look like a link
Change-Id: I282aee68f142a515c59d21af37138832efa22851
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
Dariusz Michaluk [Thu, 26 Nov 2020 12:14:05 +0000 (13:14 +0100)]
Add colour log formatter
Change-Id: Ic308c495a96c869542a644bc3b9b07f7dd394d41
Dariusz Michaluk [Mon, 7 Sep 2020 14:12:56 +0000 (16:12 +0200)]
Automate code coverage measurement - adjustment
To gather unit tests coverage report:
- use COVERAGE build_type,
- instal device-certificate-manager-coverage rpm,
- run device-certificate-manager-coverage.sh script.
Change-Id: Ia196db4dcfbcc0801b01301cbdd2f71d989e4dfc
Tomasz Swierczek [Fri, 11 Sep 2020 12:15:21 +0000 (14:15 +0200)]
Add error checking of boost::asio::[read|write] functions
Acc. to documentation (https://www.boost.org/doc/libs/1_60_0/boost/asio/read.hpp),
the write function should throw an error when there is a problem in reading.
Similarly, read returns number of written bytes which should be checked.
Change-Id: I301ccd4e12661f486362a9b58f7cdd8711c9112d
Dariusz Michaluk [Tue, 4 Aug 2020 12:51:18 +0000 (14:51 +0200)]
Fix stopping service when no requests
Calling DCM without privilege caused session counter overflow,
which turns into stoping service while new sessions are proceed
and finally segfault.
Change-Id: If28e52aa5283978cc34ac9cdb8d7e42e2e2a5496
Dariusz Michaluk [Thu, 2 Jul 2020 11:24:45 +0000 (13:24 +0200)]
Add sources to tests binary instead linking to client library
Change-Id: I6a166edbb09ef7ec91829abb110e354b096ef784
Dariusz Michaluk [Tue, 19 May 2020 14:50:46 +0000 (16:50 +0200)]
Automate code coverage measurement
Change-Id: Iedf2495b640d4f703f9b63dad934af7d42f9adc2
Dariusz Michaluk [Fri, 26 Jun 2020 09:49:21 +0000 (11:49 +0200)]
Remove KSE backend from README
Konai Secure Element is not supported anymore.
Change-Id: I8ea3d98def32f18852732119d650376feb23c4d7
Dariusz Michaluk [Fri, 19 Jun 2020 10:14:56 +0000 (12:14 +0200)]
Remove mbedtls dependency
mbedtls is a part of a big iotivity project,
which is not used on a product sometimes.
Change-Id: Ie73a5967d68103a6ace27c010c6274cb1c22d052
Dariusz Michaluk [Wed, 17 Jun 2020 15:19:19 +0000 (17:19 +0200)]
Backend API requires protobuf-lite instead of iotivity
Change-Id: I8d420c7e67262b7551a395d733c92cce9c86dad8
Dariusz Michaluk [Thu, 4 Jun 2020 12:39:07 +0000 (14:39 +0200)]
Refactor dcm-deamon code
- remove service_adapter class
- code formatting changes
- cleanup soresolver, dcm_session, dcm_server classes
Change-Id: I3a464c524ce6a3e17f0769f12c7a9abdd66e119d
Dariusz Michaluk [Tue, 2 Jun 2020 22:44:10 +0000 (00:44 +0200)]
Remove boost-log dependency
Some parts of code use dlog and some boost-log macros,
boost-log has configured dlog as a backend, so we can
unify logging mechanism and remove boost-log dependency.
Change-Id: I4da5688a705eaa307206b0f20b1e9003a3793dd5
Dariusz Michaluk [Mon, 1 Jun 2020 08:39:26 +0000 (10:39 +0200)]
Refactor dcm-client code
- remove dcm_client_connection_impl class
- code formatting changes
- added new error return values in some functions
Change-Id: I1db0ab5645d8c10e281e727f4c0c4a5530da0802
Dariusz Michaluk [Mon, 18 May 2020 13:29:37 +0000 (15:29 +0200)]
Add macros adding NEGATIVE_ or POSITIVE_ prefix to test name
Change-Id: I3f0681ed8697b301b061778cb9e4babb81c5ab30
Dariusz Michaluk [Thu, 28 May 2020 13:42:11 +0000 (15:42 +0200)]
Add one boost-based binary with all tests
Change-Id: I23e3cf160e2e4fdf0f7dd95dafd366a0a35babd4
Dariusz Michaluk [Thu, 28 May 2020 12:20:57 +0000 (14:20 +0200)]
Move all sources to src/ directory
Change-Id: I0ffe64f5cc8b3591d1951503f46011173f173ab3
Dariusz Michaluk [Thu, 28 May 2020 11:55:34 +0000 (13:55 +0200)]
Move example app to documentation
Change-Id: I73832e912bc78ed55c9a4a57550b76173f06d861
Dariusz Michaluk [Thu, 28 May 2020 10:53:12 +0000 (12:53 +0200)]
Set project version in one place only
Change-Id: I4e39f86e922f650c611ce41683dc6e16f77dc83b
Dariusz Michaluk [Thu, 28 May 2020 09:40:20 +0000 (11:40 +0200)]
Change code formatting in shared/protobuf_asio
Change-Id: I1fb44ed5992955dc18f340407fccdfc2169a518a
Dariusz Michaluk [Wed, 27 May 2020 21:00:32 +0000 (23:00 +0200)]
Support C API only, hide C++ symbols
Change-Id: I9977834917c6d28b99fa34fc22150f1b221b4f5e
Dariusz Michaluk [Wed, 27 May 2020 20:02:33 +0000 (22:02 +0200)]
Remove unneeded spec dependencies
Change-Id: I46756d3749085a16fa843da57698a37678ad6ba3
Dariusz Michaluk [Tue, 26 May 2020 12:09:00 +0000 (14:09 +0200)]
Rewrite cmake infrastructure
Change-Id: Ic5a94dc9c188e5e26a6b0c42647c77f03ab2d59e
Dariusz Michaluk [Wed, 27 May 2020 12:36:28 +0000 (14:36 +0200)]
Remove interprocedural optimization flags
Change-Id: Ie87b2d481a9e5442e1c146e4c75667b8127ed589
Dariusz Michaluk [Tue, 26 May 2020 10:35:01 +0000 (12:35 +0200)]
Systemd is always available
DCM is not used outside Tizen,
we can rely on systemd being always available.
Additionally not used boost::filesystem dependency was removed.
Change-Id: I61d932dfe9481f8345b3c36f4f5dc7390770260e
Dariusz Michaluk [Tue, 26 May 2020 09:52:49 +0000 (11:52 +0200)]
Cynara framework is always available
DCM is not used outside Tizen,
we can rely on cynara framework being always available.
Change-Id: Ib5e4bdeccf9a99b1dbfd935e3d5b2f32eae5877f
Dariusz Michaluk [Wed, 20 May 2020 11:47:11 +0000 (13:47 +0200)]
Replace protobuf with protobuf-lite
The "lite" library is much smaller than the full library,
and is more appropriate for resource-constrained systems such as mobile phones.
Change-Id: I4625bc971cdb509ce5a22ca2b5d98bcba69ac46a
Dariusz Michaluk [Tue, 26 May 2020 07:49:10 +0000 (09:49 +0200)]
Fix installation paths
This commit allows build/install without GBS.
Change-Id: Ie80a0baa50b868db01c7d00faad82a91de996ddf
Dariusz Michaluk [Tue, 26 May 2020 07:39:26 +0000 (09:39 +0200)]
Remove unneeded compilation flags
gcc 9 was complaining about out-of-bounds accesses in auto-generated
boost 1.66 code, since boost was upgraded to 1.71 version,
these flags are unnecessary.
Change-Id: Ifadd67f82129a00229b1b07233093ea31f7c821d
Dariusz Michaluk [Tue, 26 May 2020 07:31:05 +0000 (09:31 +0200)]
Remove unused openssl dependency
Change-Id: Ie28f2c12b2dea4be4e51aad425a330eed5e858c2
Dariusz Michaluk [Tue, 26 May 2020 07:13:00 +0000 (09:13 +0200)]
Dlog logging framework is always available
DCM is not used outside Tizen, we can use Tizen dlog framework.
In the future commits, all BOOST_LOG_* macros
should be replaced with unified logging mechanism.
Change-Id: Ibc4c9287925268c99c62c386a8ebbc9688b941a5
Dariusz Michaluk [Mon, 18 May 2020 12:49:46 +0000 (14:49 +0200)]
Simplify compile flags settings
Set C++14 and C11 as default. Add release & debug flags.
Change-Id: I1706cc8581d33f53362a557162c6e5d9bf5dddf5
Dariusz Michaluk [Mon, 25 May 2020 10:54:30 +0000 (12:54 +0200)]
Boost unit test framework is always available
Boost is widely used framework, we can assume that
unit test component is always available.
Additionally test/CMakeLists.txt file was rewritten a bit.
Change-Id: I0efba0b1e042cd8f87d327f3ad15d3bccb7fdb78
Dariusz Michaluk [Mon, 25 May 2020 09:06:13 +0000 (11:06 +0200)]
Remove boost-based cmd line program options
Available options were 'version' and 'help' only.
Checking package metadata (change-id) on platform image can be used instead.
Change-Id: I4861509f5983db6a8fcd3d3f0a615017129a7df8
Dariusz Michaluk [Tue, 16 Jun 2020 09:23:58 +0000 (11:23 +0200)]
Remove mbedtls dependency from daemon
Input validation was done on client side,
mbedtls error code replaced with system error.
Change-Id: Ie1bb4fd09079c37387a70cbcef897496c4644793
Dariusz Michaluk [Tue, 16 Jun 2020 08:50:49 +0000 (10:50 +0200)]
Remove certificate chain utilities
Reordering of certificate chain is not the role of dcm-daemon.
dcm-backend must return a certificate chain with correct order.
Change-Id: Id6d4adfa9c17d3f05501966c40e5dbf82eca40db
Sangjung Woo [Fri, 3 Jul 2020 10:11:35 +0000 (19:11 +0900)]
[Protobuf] Use ByteSizeLong() instead of deprecated ByteSize()
After bumping up to protobuffer v3.12.3, a below compile-time error
occurs.
* error: 'int google::protobuf::MessageLite::ByteSize() const' is
deprecated: Please use ByteSizeLong() instead [-Werror=deprecated-declarations]
In order to fix this bug, this patch uses the ByteSizeLong() instead of
deprecated ByteSize().
Change-Id: I8bd6c9eb951521af1ae08ff60c7bb81cf8f2c0cd
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Tomasz Swierczek [Wed, 15 Jan 2020 08:06:37 +0000 (09:06 +0100)]
Add gcc 9 fixes
Gcc 9 complais about out-of-bounds items in auto-generated source code
Change-Id: I20c4378bc5cb5b21c467cc7ca1f8fe4dc158e26f
Dongsun Lee [Fri, 13 Dec 2019 02:38:58 +0000 (11:38 +0900)]
Fix buig in link address
Change-Id: Id39c443b80a80858c25a7e042e4b1bee9d9eb1b2
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
Dongsun Lee [Fri, 13 Dec 2019 01:49:45 +0000 (10:49 +0900)]
Change developer.tizen.org to docs.tizen.org
Change-Id: I5ef281d4c9c600ecc4ce19b75c435a8b224580bc
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
Dongsun Lee [Mon, 9 Dec 2019 06:51:30 +0000 (15:51 +0900)]
Fix build failure in case of boost upgrade(1.66.0->1.71.0)
Change-Id: Ia5a0688c7712ead820fae1e5231eeb11fc3fde43
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
Tomasz Swierczek [Mon, 23 Sep 2019 10:26:37 +0000 (12:26 +0200)]
Moved boost_log_dlog_sink.h to dcm-daemon subdirectory
This file is not re-used between client & daemon.
This change should improve SAM score.
Change-Id: I6826839da1e37cf9d85813e7de7a13dcc651cf85
Pawel Kowalski [Thu, 4 Jul 2019 14:17:02 +0000 (16:17 +0200)]
Fix build break for the x86_64 architecture
In printf function, types of printed variables were adjusted.
Change-Id: I3fda0b37dc6d29338eced9415cd983c58756499c
Tomasz Swierczek [Fri, 28 Jun 2019 12:28:31 +0000 (14:28 +0200)]
Add additional GCC definitions for more warnings
Removed new warnings/fixed raised issues too.
Change-Id: I44fd371d85ded5335874c4ecb707787c0cab6f1d
Tomasz Swierczek [Thu, 27 Jun 2019 11:38:24 +0000 (13:38 +0200)]
Fix compilation warnings
Change-Id: Iaf31217dc685ca339e75ead1cfd8a5e0f7afd02a
Pawel Kowalski [Fri, 14 Jun 2019 07:49:09 +0000 (09:49 +0200)]
Add the README.md file
Change-Id: I54ed9ddcceba5aeb032945344c6c76a19937c186
Pawel Kowalski [Fri, 14 Jun 2019 13:02:38 +0000 (15:02 +0200)]
Migrate to openssl1.1
Change-Id: I6082cd4b30ae68264f5ba5524d671c07155bf4b1
Tomasz Swierczek [Mon, 3 Jun 2019 11:56:25 +0000 (13:56 +0200)]
Simplify dllresolver caching & actually use it
Change-Id: I8e6f0e18984fc8106ac48f35178e6550b91c74d8
Pawel Kowalski [Wed, 24 Apr 2019 12:34:11 +0000 (14:34 +0200)]
Move backends to the separate repository
The plugin architecture was implemented. From this commit, the backends
are loaded using the dlopen. They are libs that provide the internal
common API for requesting the certificate chain and signing the data.
The implementation depends on the device used. Also the dummy backend
may be used.
The backends are available in the repository:
platform/core/security/device-certificate-manager-backend.
Change-Id: Id69b8763e2997c3d0f3747aafd0d6cd9eeaa9d5c
Dongsun Lee [Mon, 22 Apr 2019 08:34:53 +0000 (17:34 +0900)]
Add KONAI SE plugin
Change-Id: I1fb423ae44f5df1dad3bf3fadfd7e8e6fd308875
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
Dariusz Michaluk [Thu, 18 Apr 2019 08:02:59 +0000 (10:02 +0200)]
LOG_TAG names unification, use DCM_SERVER/DCM_CLIENT.
Change-Id: I4b66931e10dd22a508c88f46f3d31a231fe38bdf
MyungJoo Ham [Tue, 26 Mar 2019 06:25:36 +0000 (15:25 +0900)]
packaging: do not hardcode protobuf package soname.
Protobuf is way too old and is being upgraded.
The version name is to be changed.
Change-Id: I6d9f102ee7ab264d4822ce637afabd00dec51897
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Tomasz Swierczek [Mon, 17 Dec 2018 09:14:04 +0000 (10:14 +0100)]
Adjust build to new dlog
Change-Id: I91b4fc5045c7ca4b10b44fd6e364206e7c6c2640
Dariusz Michaluk [Mon, 26 Nov 2018 10:59:29 +0000 (11:59 +0100)]
Fix C++Test defects
Destructor in a class 'dcm_client_connection' should be public and virtual or protected and nonvirtual
Unreachable code detected after 'switch' statement
Change-Id: I6fe82c3bb231691b693e13f964c8ddc34cf26a78
Dariusz Michaluk [Mon, 29 Oct 2018 10:16:05 +0000 (11:16 +0100)]
Fix SVACE defects
Change-Id: I03562c56c60d3df9c5401c4d9e55f8f1342df8c0
Dariusz Michaluk [Tue, 28 Aug 2018 14:07:13 +0000 (16:07 +0200)]
Minor fixes and improvements
- start device-certificate-manager service on demand,
- stop device-certificate-manager when no requests,
- cleanup security manifests,
- unify socket path,
- remove unused build variables,
- add boost-test dependency,
- unify service/socket names,
- restart/stop service/socket together,
- remove device-certificate-manager target.
Change-Id: Iade35e34a143300ba07c5958003dad53758f7f8e
Dongsun Lee [Thu, 4 Oct 2018 01:23:48 +0000 (10:23 +0900)]
Fix Build Warning
Change-Id: Ie5e737100aaa44a72d75376b69a15a0325bdd62e
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
Dongsun Lee [Wed, 12 Sep 2018 04:14:00 +0000 (13:14 +0900)]
Fix SVACE defects
- 325773 : ignoring return value of 'fread', declared with attribute warn_unused_result
- 347249 : format '%ld' expects argument of type 'long int'
Change-Id: I8ec62253afb4649cc7d8a4c810bcba5b5b03ad84
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
Pawel Kowalski [Mon, 20 Aug 2018 07:31:12 +0000 (09:31 +0200)]
Add Apache 2.0 license headers
Change-Id: I514199642ec446c7c33fe5ff3d4d2a8a132aebd3
Tomasz Swierczek [Fri, 27 Jul 2018 05:41:06 +0000 (07:41 +0200)]
Release 2.0.2 version
Change-Id: If733dc27827c1fe71316a08ad3425a32ee30f7c4
Tomasz Swierczek [Thu, 26 Jul 2018 08:06:15 +0000 (10:06 +0200)]
Add CMake options to build position-independent code (pie)
Change-Id: I35a8635d7dd42d3fa801440dfc72691ad44201c9
Dariusz Michaluk [Thu, 14 Jun 2018 14:49:20 +0000 (16:49 +0200)]
Release 2.0.1 version
Change-Id: I5455988328e7c9d90b7b0e28ce1c0fd29714f940
Dariusz Michaluk [Wed, 23 May 2018 11:16:06 +0000 (13:16 +0200)]
Fix: replace strdup with memcpy
Change-Id: Ie8923d089b5cce03b5d9a354a7ed6d0a173fc509
Dariusz Michaluk [Wed, 13 Jun 2018 13:13:00 +0000 (15:13 +0200)]
DCM API tests refactoring
Rename dcm_hw_api_test to dcm_api_test.
Remove RSA tests (not supported by device).
Fix warnings.
Change-Id: Id0143b229c3c371aadb7a30eef8d3bc209fdc430
Dariusz Michaluk [Mon, 7 May 2018 14:06:47 +0000 (16:06 +0200)]
Release 2.0 version
Change-Id: I8f7a6834aad1f21872051eb05a0173632d6d5d2d
Dongsun Lee [Mon, 26 Mar 2018 02:16:57 +0000 (11:16 +0900)]
Make dcm APIs as public API
Change-Id: I12dc1e3961f3842275c6cdcf54c0396bcec35a21
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
Signed-off-by: Dariusz Michaluk <d.michaluk@samsung.com>
Jaroslaw Pelczar [Mon, 18 Dec 2017 05:33:16 +0000 (06:33 +0100)]
SVACE fix for strerror
WID:
39508479 Use of vulnerable function 'strerror' at
serviceadapter.cpp:99. strerror makes no guaranteee of thread safety.
Use strerror_r function instead.
Change-Id: I050aea535c0caddc4baebb945d70b29766255fe9
Signed-off-by: Jaroslaw Pelczar <j.pelczar@samsung.com>
(cherry picked from commit
80a151491507a7dd8ffa4dca1064581026ba710f)
Dongsun Lee [Wed, 20 Dec 2017 00:31:12 +0000 (09:31 +0900)]
fix dependency error for libprotobuf9
Change-Id: Ie67771cbcd08487e835bf1581d72486a721533cc
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
(cherry picked from commit
fa707323feafd524fd1c53440c8c9a198d6cf7b5)
Dongsun Lee [Mon, 18 Dec 2017 07:12:08 +0000 (16:12 +0900)]
Add libraries to Requires in spec file
- protobuf and boost libraries are not loaded on tizen image by default.
- these libraries should be listed in Requires to load on tizen image with DCM.
Change-Id: Ie7ba34bfc5402610fcc472fc2fca4a9b581d13b0
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
(cherry picked from commit
3142cdd52fcfae16dedfa9d4dfd7012b70494467)
Jaroslaw Pelczar [Wed, 20 Dec 2017 08:37:37 +0000 (09:37 +0100)]
Fix systemd service script
This commit fixes service load error after installation and
service reload after reinstallation.
Change-Id: I8d66540028cd3eb78f9db9fe08992a9070685edb
Signed-off-by: Jaroslaw Pelczar <j.pelczar@samsung.com>
Jaroslaw Pelczar [Tue, 19 Dec 2017 05:21:16 +0000 (06:21 +0100)]
Use new privilege for client
New privilege is required by server:
http://tizen.org/privilege/devicecertificate
Change-Id: I1c4a39ad201b8fefc9eabf0dc70f083d4014a33b
Signed-off-by: Jaroslaw Pelczar <j.pelczar@samsung.com>
Jaroslaw Pelczar [Thu, 14 Dec 2017 07:14:42 +0000 (08:14 +0100)]
Bump DCM release to 2 in spec
Change-Id: I38d4bfbb795042c8090109f72f73b7d9a1d0a6bf
Signed-off-by: Jaroslaw Pelczar <j.pelczar@samsung.com>
Dong Sun Lee [Wed, 27 Dec 2017 05:21:51 +0000 (05:21 +0000)]
Merge "Always rewrite certificate chain from backend" into tizen