platform/core/security/webauthn.git
10 months agoReplace to absolute path for chsmack 05/314905/2
Yonggoo Kang [Tue, 23 Jul 2024 06:17:02 +0000 (15:17 +0900)]
Replace to absolute path for chsmack

Change-Id: Idf47621eccd84dc4922599509a8fc5e87dd2052d

10 months agoBump major version 15/314915/2 accepted/tizen/7.0/unified/20240730.133852 accepted/tizen/8.0/unified/20240730.132253 accepted/tizen/unified/20240726.010951 accepted/tizen/unified/dev/20240729.000832 accepted/tizen/unified/x/20240801.044207
Krzysztof Jackiewicz [Tue, 23 Jul 2024 06:56:32 +0000 (08:56 +0200)]
Bump major version

This is due to backward incompatible changes in the API.

Also:
* Fix the pc files and include versioning in them.
* Fix cmake warning

Change-Id: If0229cb0e8d54ed57604377ed9386d651eacd5ba

10 months agoFix ACR related issues 47/310547/22
Krzysztof Jackiewicz [Tue, 30 Apr 2024 19:51:34 +0000 (21:51 +0200)]
Fix ACR related issues

* Fix issues reported by review script
https://github.sec.samsung.net/RPO7-TIZEN/tizen-native-api-review-script/
* Fix issues reported in ACR review comments
https://jira.sec.samsung.net/browse/ACR-1843
* Add known causes of errors
* Add privileges & features
* Add unconcactable authenticator error
* Update tests
* Check features (but add option to disable it for emulator builds)

Change-Id: Idcd751571fd92bce3c5cf1c3e8906dc3a77f317a

10 months agoFix nullptr dereference 65/314765/3
Krzysztof Malysa [Thu, 18 Jul 2024 13:45:03 +0000 (15:45 +0200)]
Fix nullptr dereference

If the callbacks structure is freed/reused before the last call to
callbacks->linked_data_callback there would be a use-after-free.

This patch fixes this by coping the callbacks structure to the thread
context so it can be used safely without imposing restrictions on the
lifetime of the callbacks structure on the user.

Change-Id: I20c6ef9f142f9163e0fa16adb042bd13e9e65e12

10 months agoAdd Log for debug 97/314697/3
Yonggoo Kang [Wed, 17 Jul 2024 13:58:34 +0000 (22:58 +0900)]
Add Log for debug

- Add Request log for API parameters
- Add LinkedData log for reponse
- minor fix

Change-Id: Ibcd140a5f743a72e34fd5e6f0a59f8ad28359f72

12 months agoAutomate code coverage measurement 49/312649/3 accepted/tizen/unified/20240620.050722 accepted/tizen/unified/20240621.010432 accepted/tizen/unified/dev/20240701.072857 accepted/tizen/unified/toolchain/20240624.121359 accepted/tizen/unified/x/20240624.031926 accepted/tizen/unified/x/asan/20240625.092220
Dariusz Michaluk [Wed, 12 Jun 2024 12:50:15 +0000 (14:50 +0200)]
Automate code coverage measurement

To gather unit tests coverage report:
- build with: --define "gcov 1",
- instal webauthn-gcov rpm,
- run webauthn-coverage.sh script.

Change-Id: I9d3cdb38733a412e64bcfea9924b9292d43d633a

12 months agoAdd webauthn-image-viewer 27/312027/4 accepted/tizen/7.0/unified/20240605.045128 accepted/tizen/8.0/unified/20240604.163225 accepted/tizen/8.0/unified/20240604.163336 accepted/tizen/unified/20240604.160835 accepted/tizen/unified/dev/20240620.000208 accepted/tizen/unified/x/20240605.012728
Dongsun Lee [Mon, 3 Jun 2024 03:54:06 +0000 (12:54 +0900)]
Add webauthn-image-viewer

The image-viewer application is not supported in VD products

Change-Id: I0027b45ca15c431813cbc1689ddcd186818acc22

12 months agoAdd missing header file to libwebauth-client-devel 15/311915/1 accepted/tizen/unified/20240603.032345
Dongsun Lee [Thu, 30 May 2024 09:09:41 +0000 (18:09 +0900)]
Add missing header file to libwebauth-client-devel

Change-Id: I8e626cef2aea4c8e62cce5fef239ea1f1f8e5aad

12 months agoFix waiting conditions for update linked data 03/311803/2
Yonggoo Kang [Tue, 28 May 2024 07:07:44 +0000 (16:07 +0900)]
Fix waiting conditions for update linked data

Change-Id: I7857495d8b5c223f8f24ab8b2e9cf55dc6c87142

12 months agoResolve DEREF_OF_NULL.RET.ALLOC.MINOR issue 00/311700/2
Yonggoo Kang [Fri, 24 May 2024 05:18:56 +0000 (14:18 +0900)]
Resolve DEREF_OF_NULL.RET.ALLOC.MINOR issue

Change-Id: I4a1318c4462408a420ce0b225b45cbe3f178a271

12 months agoSupport update_linked_data callback and apply manual test 99/311699/1
Yonggoo Kang [Fri, 24 May 2024 04:50:22 +0000 (13:50 +0900)]
Support update_linked_data callback and apply manual test

Change-Id: I8ebfce98fa4d4c0c491ab62e91b755aab10243fb

13 months agoRemove unnecessary prints in unittests 67/310867/1 accepted/tizen/unified/20240520.131855 accepted/tizen/unified/x/20240521.022219
Yonggoo Kang [Thu, 9 May 2024 06:34:45 +0000 (15:34 +0900)]
Remove unnecessary prints in unittests

Change-Id: Iab2be919c3fd0339c6410314725c3f3091a4b632

13 months agoRename unit-tests to unittests for coverage naming rule 25/310625/2 accepted/tizen/unified/20240503.115804 accepted/tizen/unified/toolchain/20240508.012344 accepted/tizen/unified/x/20240507.050952
Yonggoo Kang [Fri, 3 May 2024 02:43:35 +0000 (11:43 +0900)]
Rename unit-tests to unittests for coverage naming rule

Change-Id: Ib0a43a3a7a64d9d32fbdf57f413eff1536053342

13 months agoEdit LICENSE with 2023 - 2024 20/310320/3 accepted/tizen/unified/toolchain/20240507.011845 accepted/tizen/unified/x/20240430.094747
Yonggoo Kang [Thu, 25 Apr 2024 08:51:50 +0000 (17:51 +0900)]
Edit LICENSE with 2023 - 2024

- Minor fix on Heading comments

Change-Id: Id503ad08bfaead3a301211e93e87b92ecf8fef4f

13 months agoAdd build flags for PIE 04/310404/1 accepted/tizen/7.0/unified/20240502.113454 accepted/tizen/8.0/unified/20240502.163823 accepted/tizen/unified/20240430.020645
Dongsun Lee [Fri, 26 Apr 2024 09:48:26 +0000 (18:48 +0900)]
Add build flags for PIE

Change-Id: Iffaac9946139daa0bfd2da41f20ed45b048e4d10

13 months agoSetup for automatic coverage measurement accepted/tizen/7.0/unified/20240429.105738 accepted/tizen/8.0/unified/20240429.063534
Yonggoo Kang [Wed, 24 Apr 2024 05:02:43 +0000 (14:02 +0900)]
Setup for automatic coverage measurement

- Setup automatic coverage measurement by run-unittest.sh
- Merge coverage data with webauthn-server daemon

Change-Id: I1d903ed1d8ce06f0e8b72ec31dc20d5836f9019c

13 months agoAdd unit tests for utils
Yonggoo Kang [Tue, 23 Apr 2024 03:39:48 +0000 (12:39 +0900)]
Add unit tests for utils

Change-Id: Ia838f962ee2ffa783f99dbe0d1fbadb46ca2db83

13 months agoMove SocketManager's exception to exception header
Yonggoo Kang [Tue, 23 Apr 2024 03:39:22 +0000 (12:39 +0900)]
Move SocketManager's exception to exception header

Change-Id: I01cd901b9dfe94b0f72f119dc2a848bf56f97450

13 months agoUpdate remarks of wauthn_cb_update_linked_data callback 47/309747/4
Dongsun Lee [Tue, 16 Apr 2024 07:24:35 +0000 (16:24 +0900)]
Update remarks of wauthn_cb_update_linked_data callback

Change-Id: I9b4872796bada4443b7c44dddc91c276b7a179df

13 months agoChange since_tizen from 9.0 to 7.0 93/310093/2
Dongsun Lee [Mon, 22 Apr 2024 09:28:55 +0000 (18:28 +0900)]
Change since_tizen from 9.0 to 7.0

The DA uses tizen 7.0 this year. So we need to support tizen 7.0, too.

Change-Id: Ib7b22c7e9e24b86db8a51d6e27229614b92959ae

13 months agoLimit permissions of the lock file for non-owner 31/309931/1 accepted/tizen/unified/20240423.164622
Yonggoo Kang [Thu, 18 Apr 2024 07:53:28 +0000 (16:53 +0900)]
Limit permissions of the lock file for non-owner

Change-Id: I230ba7b9467c04e83f5cf48630055b174faded1f

13 months agoMitigate possibility of DoS attack from throwing bad_alloc 02/309902/1
Yonggoo Kang [Thu, 18 Apr 2024 05:33:57 +0000 (14:33 +0900)]
Mitigate possibility of DoS attack from throwing bad_alloc

Change-Id: I5c45e0a2e11915f5a4388ec4d960fa1051b7eb20

13 months agoIntegration manual test with webautn-ble for state-assisted transaction 51/309851/2
Yonggoo Kang [Wed, 17 Apr 2024 09:11:25 +0000 (18:11 +0900)]
Integration manual test with webautn-ble for state-assisted transaction

- Support manual test for state-assisted transactions.
- INCLUDED:
  The webauthn call the update_linked_data callback manually after call response callback.
  It will be removed with the webauthn-ble support the update callback.

Change-Id: I723f02b6c0ada491d05b3f8bae416ea79cd148b2

13 months agoUpdate the callback logic for handle the wauthn_cb_update_linked_data 97/309697/9
Yonggoo Kang [Mon, 15 Apr 2024 16:21:04 +0000 (01:21 +0900)]
Update the callback logic for handle the wauthn_cb_update_linked_data

 - Add wauthn_cb_update_linked_data related logic and unittests
 - Fix bug on the __checkValidity() about valid range
 - Move UnsetBusy() into the Response Callback
 - Minor fix about naming
 - Ready for manual test with the added callback

Change-Id: I31794d5e6c9036f142ae8aaf0b58552e59c98546

14 months agoadd wauthn_cb_update_linked_data to support 2 min wait 35/309635/12
Dongsun Lee [Mon, 15 Apr 2024 01:11:30 +0000 (10:11 +0900)]
add wauthn_cb_update_linked_data to support 2 min wait

Change-Id: Ic6f6600f2ba1abf597fd7d14216c2580029f65fd

14 months agoadd identity_key to wauthn_hybrid_linked_data_s 34/309634/5
Dongsun Lee [Mon, 15 Apr 2024 01:09:57 +0000 (10:09 +0900)]
add identity_key to wauthn_hybrid_linked_data_s

Change-Id: I82b82e8f9feaf08dc8d54c51cf78e808721dedbc

14 months agoIntegration manual test with webautn-ble for QR initiated transaction 57/309457/2
Yonggoo Kang [Thu, 11 Apr 2024 04:40:27 +0000 (13:40 +0900)]
Integration manual test with webautn-ble for QR initiated transaction

Change-Id: If380da9e8a855089f8d5cd26ac26fe444785f2a9

14 months agoSplit initialization from constructor of ClientRequest 90/308990/1
Yonggoo Kang [Wed, 3 Apr 2024 09:01:47 +0000 (18:01 +0900)]
Split initialization from constructor of ClientRequest

Change-Id: I0d82a955f0dc88e9317bcc74fe82e09b138f6882

14 months agoFix typos 75/308575/4
Krzysztof Malysa [Wed, 27 Mar 2024 18:11:38 +0000 (19:11 +0100)]
Fix typos

Change-Id: Ib135c77a6f900ae1b24471dc28c2fdddc6d6146e

14 months agoAdd tests for cancel API and ClientRequest classes 47/308547/1
Yonggoo Kang [Wed, 27 Mar 2024 08:10:08 +0000 (17:10 +0900)]
Add tests for cancel API and ClientRequest classes

Change-Id: Id09b9e92a10b06662a556ade657aa2172828280c

14 months agoHandle not supported client's api call when shared library does not linked 44/308544/3
Yonggoo Kang [Wed, 27 Mar 2024 07:45:51 +0000 (16:45 +0900)]
Handle not supported client's api call when shared library does not linked

- Patch for the Change 308485
- Remove throwing exception in the constructor of DLLoader
- Add funtions for check if the webauthn-ble shared lib is linked
- Minor fix

Change-Id: I46a2d98e5808741334f388ed5163b2804ea09bca

14 months agoRemove unnecessary README.md file for now 31/308531/1
Yonggoo Kang [Wed, 27 Mar 2024 05:57:08 +0000 (14:57 +0900)]
Remove unnecessary README.md file for now

Change-Id: Ifb2a1e6e36e4ccdbb12cde9f1da5b013aaf1729a

14 months agoMove some implementation from header to cpp 97/308497/1
Yonggoo Kang [Tue, 26 Mar 2024 11:11:57 +0000 (20:11 +0900)]
Move some implementation from header to cpp

- Patch for the comment on the change-id 308437

Change-Id: I670332d39aa606f270792cc35b16da153a480fb8

14 months agoMake exception type for invalid shared library 85/308485/1
Yonggoo Kang [Tue, 26 Mar 2024 08:55:43 +0000 (17:55 +0900)]
Make exception type for invalid shared library

Change-Id: If79f76ffb5ea1abab8ff80f80037c57ad2b9002b

14 months agoMove common data and functions into TestCommon 77/308477/1
Yonggoo Kang [Tue, 26 Mar 2024 08:16:42 +0000 (17:16 +0900)]
Move common data and functions into TestCommon

Change-Id: I272698f8191d8dd1fa1be219494edfd17591c857

14 months agoMake abstraction of ClientRequest, DLLoader, Service 37/308437/1
Yonggoo Kang [Mon, 25 Mar 2024 13:23:25 +0000 (22:23 +0900)]
Make abstraction of ClientRequest, DLLoader, Service

- Enable to test each class
- Add m_notifyMe fd to notify to stop main loop
- Modify unittests to WebAuthn API
- Add unittests to ClientRequest
- Add unittests to DLLoader
- Add unittests to SocketManager

Change-Id: I721e08bae1515ac95f91aed4e2751acd7ea61bcb

14 months agoAdd references and decritpions to API 52/308352/2
Dongsun Lee [Thu, 21 Mar 2024 07:58:19 +0000 (16:58 +0900)]
Add references and decritpions to API

Change-Id: Ifee871537be2642236244788b4a2d4ca76c41da3

14 months agoRemove challenge from API 31/308331/1
Dongsun Lee [Thu, 21 Mar 2024 09:44:57 +0000 (18:44 +0900)]
Remove challenge from API

Change-Id: If2d938965c210d19c0c0029ca5ed7f36fd0254e3

14 months agoRemove json_data from API 10/308310/2
Dongsun Lee [Thu, 21 Mar 2024 07:59:32 +0000 (16:59 +0900)]
Remove json_data from API

Change-Id: Ibc9199bbd076e9ac05119c1f9b342b2ee92b761d

14 months agoRemove unused WEBAUTHN_MAX_USER_ID_LENGTH from API 75/308175/2
Dongsun Lee [Tue, 19 Mar 2024 04:47:43 +0000 (13:47 +0900)]
Remove unused WEBAUTHN_MAX_USER_ID_LENGTH from API

Change-Id: Ie81fb9ab1d0ce4ff4c97948a30bfd890f8637fa7

14 months agoremove is_conditional_mediation_available from API 68/308168/1
Dongsun Lee [Tue, 19 Mar 2024 03:01:01 +0000 (12:01 +0900)]
remove is_conditional_mediation_available from API

Change-Id: I78addbf3907abbda9fa9b8006da498b1a75a3c1a

15 months agoRefine FileLocker and add unittests 65/308065/1
Yonggoo Kang [Fri, 15 Mar 2024 12:19:34 +0000 (21:19 +0900)]
Refine FileLocker and add unittests

- Move Exception for FileLocker to exception.h
- Add lockFile parameter into constructor of ServiceFileLocker
- Change throwing exception to logging error
- Add unittests for FileLocker
- Move the FILE_LOCKER to header

Change-Id: I4c7883d1558e20d2d63c05732a4d2feb4810d3d3

15 months agoRemove sleep on unittest 63/308063/1
Yonggoo Kang [Fri, 15 Mar 2024 12:09:40 +0000 (21:09 +0900)]
Remove sleep on unittest

- The webauthn-server need to be stopped by manual or script before pull gcda files

Change-Id: I8c49b8233d638ecee18bc69b0134bc5c33286f81

15 months agoFix typo 62/308062/1
Yonggoo Kang [Fri, 15 Mar 2024 12:07:48 +0000 (21:07 +0900)]
Fix typo

Change-Id: Ibf9a488e90d343417f881e7d680a17743c673b46

15 months agoRemove unused util function 61/308061/1
Yonggoo Kang [Fri, 15 Mar 2024 12:06:48 +0000 (21:06 +0900)]
Remove unused util function

Change-Id: I3bfa17afaaf6fc39efc7e9ad3e99c35aa8460198

15 months agoRefine QRCallback logic of request on server side 57/308057/2
Yonggoo Kang [Fri, 15 Mar 2024 11:25:21 +0000 (20:25 +0900)]
Refine QRCallback logic of request on server side

- Prevent to access to nullptr
- Remove unnecessary exception types
- Remove duplicated code block
- Move the result log from GetUserData() to outside

Change-Id: If654b9bd568cf088df94ec55f51489ef579be381

15 months agoFix minor 47/307947/3
Yonggoo Kang [Thu, 14 Mar 2024 12:00:20 +0000 (21:00 +0900)]
Fix minor

- Fix typo
- Add a missing header
- Remove unnecessary newlines

Change-Id: Id9b5f287a4dbdca9b997fcfb6241a07b783772fd

15 months agoRemove repeated condition 46/307946/3
Yonggoo Kang [Thu, 14 Mar 2024 11:57:38 +0000 (20:57 +0900)]
Remove repeated condition

Change-Id: I93fe37003d075fa04fb4d90f1dbf1a8fdc7de1bb

15 months agoCheck user_data first and remove unnecessary logic of tail 45/307945/3
Yonggoo Kang [Thu, 14 Mar 2024 11:52:55 +0000 (20:52 +0900)]
Check user_data first and remove unnecessary logic of tail

Change-Id: I2a2b17ef2174c9077f8db34f8835dc01c3fe805b

15 months agoEnable gcov 12/307912/3
Yonggoo Kang [Thu, 14 Mar 2024 07:03:40 +0000 (16:03 +0900)]
Enable gcov

 - Add settings
 - Change filename tests/main.cpp to unittests.cpp to distinguish it from server/main.cpp

Change-Id: I60a32e2eb1a347987bfde1e2a5aacd151dac3a7e

15 months agoAdd const to data buffers and strings in data types 32/307832/1
Krzysztof Malysa [Wed, 13 Mar 2024 11:36:07 +0000 (12:36 +0100)]
Add const to data buffers and strings in data types

Specifically:
- change char* to const char* in input data
- change wauthn_buffer_s to wauthn_const_buffer_s in input data

This prevents the need to use const_cast while creating the input data.

Change-Id: I3d6c06848010b8d962eb7a337a3b3a1d27601e16

15 months agoAdd a build option to check shadow declaration 48/307448/2 accepted/tizen/unified/20240312.132025 accepted/tizen/unified/x/20240313.092053 accepted/tizen/unified/x/20240314.073506
Yonggoo Kang [Fri, 8 Mar 2024 09:45:28 +0000 (18:45 +0900)]
Add a build option to check shadow declaration

Change-Id: I0bf6839b3a82749a89e83e5efa536773cbb04737

15 months agoPrevent COPY_INSTEAD_OF_MOVE 22/307322/1
Yonggoo Kang [Thu, 7 Mar 2024 07:41:21 +0000 (16:41 +0900)]
Prevent COPY_INSTEAD_OF_MOVE

Change-Id: I95bd05dc4c1362f6d7f4c64a002e9de93353f1bb

15 months agoRemove unnecessary dynamic_cast 05/307305/1
Yonggoo Kang [Thu, 7 Mar 2024 04:23:30 +0000 (13:23 +0900)]
Remove unnecessary dynamic_cast

Change-Id: Icf65af5556e5d5749553d45845794167db607b40

15 months agoModify expectation flow for unsigned char pointer test 02/307302/2
Yonggoo Kang [Thu, 7 Mar 2024 03:27:32 +0000 (12:27 +0900)]
Modify expectation flow for unsigned char pointer test

Change-Id: I61f11b8991cbfe931f0b2205d297ab29578cedab

15 months agoPrevent integer overflow 99/307299/1
Yonggoo Kang [Thu, 7 Mar 2024 03:02:23 +0000 (12:02 +0900)]
Prevent integer overflow

Change-Id: Ieb82a6d5f789dde5b658fa2e4f1eab2c79de6390

15 months agoRemove trailing whitespace 96/307296/2
Yonggoo Kang [Thu, 7 Mar 2024 02:22:16 +0000 (11:22 +0900)]
Remove trailing whitespace

Change-Id: Icbfa6f1b3101adf88b59277f32e2ea41d49336f8

15 months agoInit variables and split multiple serializaion test by parameter type 77/307277/2
Yonggoo Kang [Wed, 6 Mar 2024 13:48:25 +0000 (22:48 +0900)]
Init variables and split multiple serializaion test by parameter type

Change-Id: I5bda599854d7cf74a6c73cb581fbf7fdf7ca6d23

15 months agoRemove deadcode and add initial value 76/307276/1
Yonggoo Kang [Wed, 6 Mar 2024 12:44:19 +0000 (21:44 +0900)]
Remove deadcode and add initial value

Change-Id: I0ae36b8249ff0e9ba91fb43509684533835061a6

15 months agoRemove unused fd_set 61/307261/1
Yonggoo Kang [Wed, 6 Mar 2024 10:35:58 +0000 (19:35 +0900)]
Remove unused fd_set

Change-Id: Ibe5262d0d4bcaf4d65d0f6744a0254d1b7d684bd

15 months agoReplace pointer to smart pointer for RAII 58/307258/2
Yonggoo Kang [Wed, 6 Mar 2024 10:13:55 +0000 (19:13 +0900)]
Replace pointer to smart pointer for RAII

Change-Id: I1f987e62ff3b6284151aeec562c41d743610f267

15 months agoPrevent INTEGER_OVERFLOW 46/307246/2
Yonggoo Kang [Wed, 6 Mar 2024 09:17:50 +0000 (18:17 +0900)]
Prevent INTEGER_OVERFLOW

Change-Id: I6ec53dfec59ab3bef8bcc457ca29cf7a15389751

15 months agoPrevent access to null pointer 39/307239/2
Yonggoo Kang [Wed, 6 Mar 2024 08:24:11 +0000 (17:24 +0900)]
Prevent access to null pointer

Change-Id: I3bf17ed4cabbe008a6fe43ffdd2d325d447fab0a

15 months agoRemove unused dependencies of test package 38/307238/1
Dongsun Lee [Wed, 6 Mar 2024 08:12:32 +0000 (17:12 +0900)]
Remove unused dependencies of test package

Change-Id: I82803195cd3f1292720f17ff1c07513392c132f2

15 months agoInitialize class members and move a debug log 20/307220/6
Yonggoo Kang [Wed, 6 Mar 2024 06:00:59 +0000 (15:00 +0900)]
Initialize class members and move a debug log

Change-Id: I7e282eee3d2207a38c41a151e349c72209859141

15 months agoRemove unused tests 47/307047/1 accepted/tizen/unified/20240306.174145 accepted/tizen/unified/toolchain/20240311.064833 accepted/tizen/unified/x/20240308.033444
Dongsun Lee [Mon, 4 Mar 2024 07:14:04 +0000 (16:14 +0900)]
Remove unused tests

Change-Id: Id9109f626fbeb57efecd4685282054f6e3393ee5

15 months agoAdd exception for failed to connect to socket 58/306758/3
Yonggoo Kang [Tue, 27 Feb 2024 06:09:12 +0000 (15:09 +0900)]
Add exception for failed to connect to socket

Change-Id: I068c6d19a3a713943687a53fae15e5dd21152d36

15 months agoImplement on-demand socket activation 57/306757/2
Yonggoo Kang [Tue, 27 Feb 2024 06:08:44 +0000 (15:08 +0900)]
Implement on-demand socket activation

Change-Id: Ibedf871acbb60df9e0007af148e98e43c74fada5

15 months agoFix path of socket 56/306756/1
Yonggoo Kang [Tue, 27 Feb 2024 06:07:46 +0000 (15:07 +0900)]
Fix path of socket

Change-Id: I5d4770d3790bd33b2e6a915bd8e4173f225d9f82

15 months agoAdd default value and error type for timeout 73/306273/1
Yonggoo Kang [Mon, 19 Feb 2024 09:04:05 +0000 (18:04 +0900)]
Add default value and error type for timeout

Change-Id: I267d77778d3d4fbce977a6f37e7c8fc64694e990

15 months agoChange memory space from heap to stack for use instance variables 44/306244/1 accepted/tizen/unified/20240220.115627 accepted/tizen/unified/20240220.144631 accepted/tizen/unified/x/20240221.033404
Yonggoo Kang [Mon, 19 Feb 2024 06:28:12 +0000 (15:28 +0900)]
Change memory space from heap to stack for use instance variables

Change-Id: Iedd600a4cb57cf365b5391504b7c26a88eab85e7

16 months agoReuse some code blocks using typename <RequestX> (#48)
강용구/Security&Privacy팀(SR)/삼성전자 [Tue, 6 Feb 2024 04:33:11 +0000 (13:33 +0900)]
Reuse some code blocks using typename <RequestX> (#48)

* Add Request classes
* Reuse code block using typename <RequestX>
* Change to snake case in server-side
* Remove unused lines
* Change local variables to lower camel case
* Add ClientRequest classes
* Apply typename for reuse some code blocks in client-side
* add explicit to prevent converting constructor operation

16 months agoImplement Dynamic Library Loader and Link Hybrid Plugin (#47)
강용구/Security&Privacy팀(SR)/삼성전자 [Thu, 1 Feb 2024 02:08:57 +0000 (11:08 +0900)]
Implement Dynamic Library Loader and Link Hybrid Plugin (#47)

* Fix Path of SO file
* Add Dynamic Library Loader
* Link Hybrid Plugin using DLLoader
* Modify API test code for call the QR Callback
* Minor fix thr cancel API and remove unused test code

16 months agoFix typo (#46)
강용구/Security&Privacy팀(SR)/삼성전자 [Tue, 23 Jan 2024 00:01:18 +0000 (09:01 +0900)]
Fix typo (#46)

* Fix typo
* Remove end space of line

16 months agoAdd description for transports
Dongsun Lee [Mon, 22 Jan 2024 04:56:38 +0000 (13:56 +0900)]
Add description for transports

16 months agochange enums to uppercase
Dongsun Lee [Mon, 22 Jan 2024 04:27:30 +0000 (13:27 +0900)]
change enums to uppercase

16 months agoUse different namespace for TestData
Dongsun Lee [Mon, 22 Jan 2024 04:21:57 +0000 (13:21 +0900)]
Use different namespace for TestData

16 months agoAdjust to (de)serialization implementation (#42)
강용구/Security&Privacy팀(SR)/삼성전자 [Mon, 22 Jan 2024 01:54:40 +0000 (10:54 +0900)]
Adjust to (de)serialization implementation  (#42)

* Add a recv(T&&) function
* Adjust to (de)serialization implementation
* Modify simple test code for API test
* Remove unnecessary comment
* Add pass logic when a recv is failed
* Add util functions for handle excetpion and check parameter
* Add and move Exception classes into the exception header
* Add exception logic
* Modify simple test code
* Check parameters by workers in server-side
* Remove qrcode_callback if the linked_data exists
* Add pass logic on recv(T&) when a recv is failed
* Check and handle exception case in qrcode_callback

16 months agoAdd @see descriptions (#43)
강용구/Security&Privacy팀(SR)/삼성전자 [Wed, 17 Jan 2024 06:18:40 +0000 (15:18 +0900)]
Add @see descriptions (#43)

* Fix type of transports data
* Revoke type change and Add description

16 months agoAdd more defense logic for exceptional cases
Dongsun Lee [Mon, 15 Jan 2024 04:35:28 +0000 (13:35 +0900)]
Add more defense logic for exceptional cases

16 months agoImplements message serialization
Dongsun Lee [Wed, 3 Jan 2024 09:18:26 +0000 (18:18 +0900)]
Implements message serialization

16 months agoRemove unused origin from header
Dongsun Lee [Tue, 16 Jan 2024 06:20:01 +0000 (15:20 +0900)]
Remove unused origin from header

16 months agoFix TYPO in header(attestion->attestation)
Dongsun Lee [Tue, 16 Jan 2024 06:04:24 +0000 (15:04 +0900)]
Fix TYPO in header(attestion->attestation)

16 months agochange type of port from int to unsigned short
Dongsun Lee [Mon, 15 Jan 2024 04:43:54 +0000 (13:43 +0900)]
change type of port from int to unsigned short

17 months agoMove free into caller's block
Yonggoo Kang [Fri, 12 Jan 2024 03:26:19 +0000 (12:26 +0900)]
Move free into caller's block

17 months agoMark points will be changed
Yonggoo Kang [Fri, 12 Jan 2024 03:08:46 +0000 (12:08 +0900)]
Mark points will be changed

17 months agoMark points will be changed
Yonggoo Kang [Fri, 12 Jan 2024 02:58:12 +0000 (11:58 +0900)]
Mark points will be changed

17 months agoAdd simple test logic
Yonggoo Kang [Fri, 12 Jan 2024 02:57:23 +0000 (11:57 +0900)]
Add simple test logic

17 months agoLink pthread in test module
Yonggoo Kang [Fri, 12 Jan 2024 02:57:05 +0000 (11:57 +0900)]
Link pthread in test module

17 months agoFix name of member variables (#36)
강용구/Security&Privacy팀(SR)/삼성전자 [Thu, 11 Jan 2024 02:53:14 +0000 (11:53 +0900)]
Fix name of member variables (#36)

17 months agoRemove unnecessary shared ptr (#37)
강용구/Security&Privacy팀(SR)/삼성전자 [Thu, 11 Jan 2024 02:53:04 +0000 (11:53 +0900)]
Remove unnecessary shared ptr (#37)

17 months agoModify server's worker logic (#35)
강용구/Security&Privacy팀(SR)/삼성전자 [Wed, 10 Jan 2024 04:48:52 +0000 (13:48 +0900)]
Modify server's worker logic (#35)

* Modify service interface and Add descriptions
* Minor fix
* Remove unused logic

17 months agoBusy and Cancel logics (#33)
강용구/Security&Privacy팀(SR)/삼성전자 [Tue, 9 Jan 2024 08:02:13 +0000 (17:02 +0900)]
Busy and Cancel logics (#33)

17 months agofix a variable name in header file(transports->descriptors)
Dongsun Lee [Tue, 9 Jan 2024 07:46:01 +0000 (16:46 +0900)]
fix a variable name in header file(transports->descriptors)

17 months agoAdd thread logic for callbacks (#32)
강용구/Security&Privacy팀(SR)/삼성전자 [Fri, 5 Jan 2024 07:35:46 +0000 (16:35 +0900)]
Add thread logic for callbacks (#32)

* Add functions and Minor fix
* Add callbacks in creating thread at client-side
* Add callbacks in creating thread at server-side
* Remove service-thread
* Modify SocketManager for remove service-thread

17 months agoDefines WEBAUTHN_HYBRID_PLUGIN_SO_PATH in rpm macro file
Dongsun Lee [Thu, 4 Jan 2024 00:05:57 +0000 (09:05 +0900)]
Defines WEBAUTHN_HYBRID_PLUGIN_SO_PATH in rpm macro file

17 months agoChange callback definitions to function pointer
Dongsun Lee [Wed, 3 Jan 2024 04:47:37 +0000 (13:47 +0900)]
Change callback definitions to function pointer

18 months agoMake HAL API void
Krzysztof Jackiewicz [Mon, 11 Dec 2023 10:19:53 +0000 (11:19 +0100)]
Make HAL API void

All the errors will be returned via callbacks.

18 months agoRemove cancellation id from CAPI (#27)
강용구/Security Assurance Lab(SR)/삼성전자 [Thu, 7 Dec 2023 01:40:17 +0000 (10:40 +0900)]
Remove cancellation id from CAPI (#27)

* Remove cancellation id from CAPI and modify testcode
* Minor fix in serialization for long type
* Fix description

18 months agoAdd result param into response callback (#26)
강용구/Security Assurance Lab(SR)/삼성전자 [Tue, 5 Dec 2023 07:52:41 +0000 (16:52 +0900)]
Add result param into response callback (#26)

* Add result into response callback
* Minor fix on doc
* Drop "NONE" from name of cancelled