platform/core/api/vine.git
3 years agovine-verifier: fix wrong parameter 01/258701/1
Cheoleun Moon [Mon, 24 May 2021 10:44:19 +0000 (19:44 +0900)]
vine-verifier: fix wrong parameter

Change-Id: I54d7f595860f9ab43304b136ad2c309e784d1e9c
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agotool: Use a different timerfd per each dp 58/258558/2
Seonah Moon [Thu, 20 May 2021 07:03:53 +0000 (16:03 +0900)]
tool: Use a different timerfd per each dp

Change-Id: Ic0d922609c98bd430f557b525198b609f0b0ccfa

3 years agoMerge "Do not clone if security is NULL" into tizen
cheoleun moon [Thu, 20 May 2021 06:53:47 +0000 (06:53 +0000)]
Merge "Do not clone if security is NULL" into tizen

3 years agoVineQueue: modify pop() to operate like std::queue 77/258377/2
Seonah Moon [Fri, 14 May 2021 08:57:01 +0000 (17:57 +0900)]
VineQueue: modify pop() to operate like std::queue

Change-Id: I92f75a430848b630d9cc280d7d336749c26d122d

3 years agoDo not clone if security is NULL 18/258318/5
Cheoleun Moon [Thu, 13 May 2021 10:44:23 +0000 (19:44 +0900)]
Do not clone if security is NULL

Change-Id: I959db97652ebcb8850214248b51198e2277a3fbc
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoInvoke recv_cb() when all fragments of a message is arrived 17/258317/5
Seonah Moon [Thu, 13 May 2021 10:41:45 +0000 (19:41 +0900)]
Invoke recv_cb() when all fragments of a message is arrived

Change-Id: Ic5b01ee73c771503315e478b60e6d45f8aab9de9

3 years agoMerge "Remove ununsed enum(vine_data_path_type_e)" into tizen
seonah moon [Fri, 14 May 2021 07:08:14 +0000 (07:08 +0000)]
Merge "Remove ununsed enum(vine_data_path_type_e)" into tizen

3 years agoMerge "Rename vine-data-path functions for consistency" into tizen
seonah moon [Fri, 14 May 2021 07:08:11 +0000 (07:08 +0000)]
Merge "Rename vine-data-path functions for consistency" into tizen

3 years agoRemove ununsed enum(vine_data_path_type_e) 81/258181/1
Seonah Moon [Wed, 12 May 2021 02:33:54 +0000 (11:33 +0900)]
Remove ununsed enum(vine_data_path_type_e)

Change-Id: I2601a01927c826650a94fcd4ed407342e39db6e1

3 years agoMerge "Use gtest instead of gmock" into tizen accepted/tizen/unified/20210526.010314 submit/tizen/20210510.064912 submit/tizen/20210523.234938
cheoleun moon [Wed, 12 May 2021 02:17:42 +0000 (02:17 +0000)]
Merge "Use gtest instead of gmock" into tizen

3 years agoRename vine-data-path functions for consistency 76/258176/1
Seonah Moon [Wed, 12 May 2021 01:50:26 +0000 (10:50 +0900)]
Rename vine-data-path functions for consistency

Change-Id: I300799e4393f32a09efe5cb1b5545ff717fd8f49

3 years agoUse memmove to prevent memory overlapping 56/258156/1 submit/tizen/20210512.020301
Cheoleun Moon [Tue, 11 May 2021 10:10:22 +0000 (19:10 +0900)]
Use memmove to prevent memory overlapping

Change-Id: I1d7b95a72327b8d86a8b353b4dab0879ed59ee1d
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoAdd vine_dp_get_remote_ip 19/257919/3
Cheoleun Moon [Thu, 6 May 2021 10:40:36 +0000 (19:40 +0900)]
Add vine_dp_get_remote_ip

Change-Id: I36f6612643c6e4edbde615ff7af720972378429e
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoUse gtest instead of gmock 31/258131/1
Cheoleun Moon [Tue, 11 May 2021 05:19:44 +0000 (14:19 +0900)]
Use gtest instead of gmock

Change-Id: Idbf0ae4e98757a9f042ceef9a040ab8363942042
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoFix parsing of txt record 41/257841/1 accepted/tizen/unified/20210505.141431 submit/tizen/20210504.072230
Cheoleun Moon [Tue, 4 May 2021 07:04:23 +0000 (16:04 +0900)]
Fix parsing of txt record

Change-Id: If2ac2fb5a87a9c42910d189621b204ab65fc28f5
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agolibwebsockets: remove unused files 09/257709/1
Seonah Moon [Fri, 30 Apr 2021 02:19:25 +0000 (11:19 +0900)]
libwebsockets: remove unused files

Change-Id: Iea3f49d0b8cc4a62706b18feadf656b1b951f508

3 years agoPass a service name when connecting to a pubsub server 90/257490/3
Seonah Moon [Tue, 27 Apr 2021 02:00:28 +0000 (11:00 +0900)]
Pass a service name when connecting to a pubsub server

Change-Id: I0645a28898cac74aa8d7b715c7caa9e92885a471

3 years agoAdd peer joined/left callback 65/257465/1
Seonah Moon [Mon, 26 Apr 2021 09:22:49 +0000 (18:22 +0900)]
Add peer joined/left callback

Change-Id: I54bbf692560032b3b9f12b261f8f287012d34257

3 years agoFix coverity issues 34/257434/1 accepted/tizen/unified/20210427.085741 submit/tizen/20210426.035717
Cheoleun Moon [Mon, 26 Apr 2021 03:18:21 +0000 (12:18 +0900)]
Fix coverity issues

Change-Id: Ib5a0ca09a03d7dff840ead3e437c8668bd128ab4
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoMerge "verifier: clone the discovered vine_service" into tizen
cheoleun moon [Mon, 26 Apr 2021 02:14:01 +0000 (02:14 +0000)]
Merge "verifier: clone the discovered vine_service" into tizen

3 years agoverifier: clone the discovered vine_service 85/257385/2
Cheoleun Moon [Fri, 23 Apr 2021 08:05:10 +0000 (17:05 +0900)]
verifier: clone the discovered vine_service

Change-Id: I50b1e27e9fa163ee14129621c39d0536ade7611a
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoHandle DP operation based on DP_OPEN_STATE 86/257386/2
Seonah Moon [Fri, 23 Apr 2021 08:08:07 +0000 (17:08 +0900)]
Handle DP operation based on DP_OPEN_STATE

Change-Id: Ie0d99153e03b57543b3ea632f0140b730c1f8eb9

3 years agoSend a single message when WRITEABLE state (#237) 54/257354/1
문선아/Tizen Platform Lab(SR)/Engineer/삼성전자 [Thu, 22 Apr 2021 10:37:24 +0000 (19:37 +0900)]
Send a single message when WRITEABLE state (#237)

* Send a single message when WRITEABLE state

* Update libwebsockets-plugin.cpp

* Remove write_request

* Check write queue size before requesting writable callback

Change-Id: I89317d7fc8dc39ccc2eeb3e9a864940b7184228f

3 years agoUse a service name to check already connected service 37/257137/4
Seonah Moon [Tue, 20 Apr 2021 02:05:54 +0000 (11:05 +0900)]
Use a service name to check already connected service

Change-Id: I22c6491a091ed6d750ec85f17b45053b681b8782

3 years agoAdd set/get_token plugin API 02/257002/4
Seonah Moon [Fri, 16 Apr 2021 08:08:43 +0000 (17:08 +0900)]
Add set/get_token plugin API

Change-Id: Ic0ffb001c9d20be9dba35ea11cc0597782d3883c

3 years agoFix crash issues 36/256936/4 accepted/tizen/unified/20210416.011800 submit/tizen/20210415.090745
Seonah Moon [Thu, 15 Apr 2021 06:27:53 +0000 (15:27 +0900)]
Fix crash issues

Change-Id: I04413f0cad969934f8cbaf3861cde409f6b00319

3 years agoUnset ip_resolved_cb on vine_service_destroy 35/256935/1 submit/tizen/20210415.061314
Cheoleun Moon [Thu, 15 Apr 2021 05:50:57 +0000 (14:50 +0900)]
Unset ip_resolved_cb on vine_service_destroy

Change-Id: I3bea15795b67256e9f646113d64f257714728cc8
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agounittest: remove unused wrapper function 89/256889/1 accepted/tizen/unified/20210415.000533 submit/tizen/20210414.073506
Seonah Moon [Wed, 14 Apr 2021 07:31:32 +0000 (16:31 +0900)]
unittest: remove unused wrapper function

Change-Id: I69af0fd7e4c5bc325ebe3d3cecff06f066361b41

3 years agopubsub: create a disc handle for ip_resolve() 84/256884/2
Seonah Moon [Wed, 14 Apr 2021 06:54:35 +0000 (15:54 +0900)]
pubsub: create a disc handle for ip_resolve()

Change-Id: Ie693e2fea547fafc202ec9c5825ceff9ce4b265b

3 years agoMerge changes If464cbac,If043f6ea into tizen submit/tizen/20210414.043047
cheoleun moon [Wed, 14 Apr 2021 04:23:38 +0000 (04:23 +0000)]
Merge changes If464cbac,If043f6ea into tizen

* changes:
  Do not use memcpy for vine_service_s
  Clone the found service

3 years agoDo not use memcpy for vine_service_s 15/256815/6
Cheoleun Moon [Tue, 13 Apr 2021 11:17:22 +0000 (20:17 +0900)]
Do not use memcpy for vine_service_s

Change-Id: If464cbac64927bce1347a540fbd46d48071072c2
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoHandle a duplicated service name (#232) 07/256807/1
문선아/Tizen Platform Lab(SR)/Engineer/삼성전자 [Tue, 13 Apr 2021 09:28:15 +0000 (18:28 +0900)]
Handle a duplicated service name (#232)

* Handle a duplicated service name

* Consider null character appended automatically

Change-Id: If6cf46c6fe19179f7d98e09234911294fe0f0918

3 years agoClone the found service 01/256801/1
Cheoleun Moon [Tue, 13 Apr 2021 07:45:26 +0000 (16:45 +0900)]
Clone the found service

Change-Id: If043f6eaa55c05cfeb821fd8d69d737363f1df14
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoFix incorrect variable name 87/256787/1 accepted/tizen/unified/20210414.000932 submit/tizen/20210413.055832
Cheoleun Moon [Tue, 13 Apr 2021 05:28:08 +0000 (14:28 +0900)]
Fix incorrect variable name

Change-Id: Id5ffbaef058f40089f0bbec9737488effa1dd18c
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoCheck return value of lws_get_socket_fd 85/256785/1
Cheoleun Moon [Tue, 13 Apr 2021 04:43:21 +0000 (13:43 +0900)]
Check return value of lws_get_socket_fd

Change-Id: I86ae9d5f0c314af46a0f47832915b0aec325e239
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoCreate disc_handle for each ip_resolving operation 84/256784/1
Cheoleun Moon [Tue, 13 Apr 2021 04:41:03 +0000 (13:41 +0900)]
Create disc_handle for each ip_resolving operation

Change-Id: I5bb1995d2be217b5f2aa4c291387c2a5bdd29240
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoSome changes for PSK (#228) 25/256725/1 accepted/tizen/unified/20210413.021236 submit/tizen/20210412.063618
문선아/Tizen Platform Lab(SR)/Engineer/삼성전자 [Mon, 12 Apr 2021 03:48:29 +0000 (12:48 +0900)]
Some changes for PSK (#228)

* Use calloc/free for auth frame

* Limit PSK length to 512

Change-Id: I17afa6dc51cffb463f8ef9e44e0725b8ff4dc06e

3 years agoFree allocated memories before strdup 21/256721/3
Cheoleun Moon [Mon, 12 Apr 2021 03:10:19 +0000 (12:10 +0900)]
Free allocated memories before strdup

Change-Id: Iba469a2a10df78a19af1c6107bdea240fdce999b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoLimits the file size to be sent to INT_MAX 20/256720/2
Cheoleun Moon [Mon, 12 Apr 2021 02:33:17 +0000 (11:33 +0900)]
Limits the file size to be sent to INT_MAX

Change-Id: Ia8ff7e3429364f5e645dc987fcf23125199773e6
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoUse localtime_r instead of localtime 19/256719/1
Cheoleun Moon [Mon, 12 Apr 2021 02:32:31 +0000 (11:32 +0900)]
Use localtime_r instead of localtime

Change-Id: I808747c6f88c42b2794a08bbcc2d0c0abf653eaa
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agotests: Free after use (3) 49/256649/2 accepted/tizen/unified/20210409.064102 submit/tizen/20210408.103639
Cheoleun Moon [Thu, 8 Apr 2021 10:26:41 +0000 (19:26 +0900)]
tests: Free after use (3)

Change-Id: Ia7c27f9713fb3b23ebbad43f8876682383f21eac
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoChange the package name to capi-network-vine 42/256642/1 submit/tizen/20210408.092019
Seonah Moon [Thu, 8 Apr 2021 09:17:04 +0000 (18:17 +0900)]
Change the package name to capi-network-vine

Change-Id: I3b9a7a196ba61bdb91b15dd5831d89bbbf7521e6

3 years agotests: Free after use (2) 38/256638/1 submit/tizen/20210408.090200
Cheoleun Moon [Thu, 8 Apr 2021 08:48:45 +0000 (17:48 +0900)]
tests: Free after use (2)

Change-Id: I59ecb802b1b4f79c3cc143b99589e4aa711b3a6a
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoReduce MAX_VINE_EPOLL_EVENTS to 512 32/256632/1
Cheoleun Moon [Thu, 8 Apr 2021 07:56:02 +0000 (16:56 +0900)]
Reduce MAX_VINE_EPOLL_EVENTS to 512

Change-Id: I73ede551a16e4fb6bda8b78904892f95919a39da
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agotests: Free after use 31/256631/3
Cheoleun Moon [Thu, 8 Apr 2021 07:46:02 +0000 (16:46 +0900)]
tests: Free after use

Change-Id: I92b74905b6fc64567be9ae748f13bc1882b38074
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoCasting for delete (2) 27/256627/1
Cheoleun Moon [Thu, 8 Apr 2021 07:36:31 +0000 (16:36 +0900)]
Casting for delete (2)

Change-Id: I9ae14dc0e433e2b35278a172b1a574cafac22a54
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoCasting for delete 26/256626/1
Cheoleun Moon [Thu, 8 Apr 2021 07:19:06 +0000 (16:19 +0900)]
Casting for delete

Change-Id: Ifc3e1a2a78397452396ad1d6a1072c983dc73c3b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoUse delete for memory allocated by new (2) 25/256625/1
Cheoleun Moon [Thu, 8 Apr 2021 07:11:21 +0000 (16:11 +0900)]
Use delete for memory allocated by new (2)

Change-Id: I7be8a20c08eefaf188a764a8f64a0cc26325081a
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoUse delete for memory allocated by new 24/256624/2
Cheoleun Moon [Thu, 8 Apr 2021 06:58:10 +0000 (15:58 +0900)]
Use delete for memory allocated by new

Change-Id: I03241c8845df2bd9b0f305da4cc56577b57b9169
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoMerge "Release resources" into tizen
cheoleun moon [Thu, 8 Apr 2021 06:51:37 +0000 (06:51 +0000)]
Merge "Release resources" into tizen

3 years agoFix coverity issues 15/256615/1
Seonah Moon [Thu, 8 Apr 2021 06:11:00 +0000 (15:11 +0900)]
Fix coverity issues

Change-Id: Ia16714ca983ab92b60c50e40df96cd34de4f2b0e

3 years agoRelease resources 13/256613/1
Cheoleun Moon [Thu, 8 Apr 2021 06:05:44 +0000 (15:05 +0900)]
Release resources

Change-Id: Ib1f5a133a57bad976e5e97dddeca7715ff302d7c
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoFix resource leak 10/256610/3
Cheoleun Moon [Thu, 8 Apr 2021 05:35:34 +0000 (14:35 +0900)]
Fix resource leak

Change-Id: I2ca6f040a8a0002a852143d02a39b573864c888d
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
3 years agoFix svace issues 09/256609/2
Seonah Moon [Thu, 8 Apr 2021 05:23:57 +0000 (14:23 +0900)]
Fix svace issues

Change-Id: Id3be83c815b0a3af4046cf0b9ba89237c3be953f

3 years agoRelease Vine 1.0.0 00/256600/3
Seonah Moon [Thu, 8 Apr 2021 02:10:03 +0000 (11:10 +0900)]
Release Vine 1.0.0

Change-Id: I61c273b544eec559ce155165d0525ce47c212ece

3 years agoInitial empty repository master
Tizen Infrastructure [Mon, 18 Jan 2021 02:16:08 +0000 (02:16 +0000)]
Initial empty repository