Commit Graph

20 Commits

Author SHA1 Message Date
Levi Neely c687484707
Implement add, remove, and list sync folder commands (#59)
* list_sync_folders seems to work

* list_sync_folders breaks with sync folders in db; message size problem?

* fixed sync folders list

* fix double free and buffer overflow

* wip: add and remove sync folder; need to fix request->value in instance_thread

* remove comment

* removed pclsync_lib_c.{h,cpp}

* cleanup get_answer_to_request

* update comment

* changed reply struct to type response containing payload and msg

* cleanup

* refactored overlay_client, and poverlay; added docs

* better naming

* sock path in poverlay_protocol.h

* clarify comment

* refactor psync_overlay_get_response

* clarifications

* response_messages work with and without payload

* removed commented code

* syncadd works, but i need to fix the error handling

* remove sync folder

* remove commented code, change printfs to debug or simply remove

* removed unnecessary print

* removed more prints

* removed dead var

* update error handling in add_sync_folder, fix memleak

* simplified finalize
2024-08-25 21:54:41 +02:00
Levi Neely ed06599b7d
Bug fixes, build containers, minor updates (#54)
* openssl is a dependency

* openssl is not a real dpendency

* static link by default

* wip: build containers

* rm comments

* build containers, fix DEADLYSIGNAL on run with no args

* debug tools in deb/ubuntu, fix #44

* no slack container :(

* ensure P_LINUX_OS always defined

* error check fuse unmount ops

* fsanitize=thread temporarily

* undo

* clang static analysis

* fix dead assignment

* makefile quality of life stuff

* make install and uninstall; ignore scan results

* addressed dead assignments from static analysis

* debug and release builds possible

* gcc still default compiler

* debug symbols on debug build only
2024-08-20 22:00:38 +02:00
Levi Neely ccbfc3e7b7
Static build opt (#49)
* static build option

* make install static condition

* fix error
2024-08-20 01:21:55 +02:00
Levi Neely ef66640919
Static build opt (#48)
* static build option

* make install static condition
2024-08-20 01:19:29 +02:00
Levi Neely 4cd556cb13
static build option (#47)
make STATIC=1 to statically link libpcloudcc_lib.so
2024-08-20 01:15:56 +02:00
Levi Neely 0a3b596492
Merge pclsync and poverlay_linux (#46)
* fixed 2 of the 3 memory leaks

* fixed more memleaks

* more leaks

* another one

* BUGHUNT mode to look for more mem leaks

* merge poverlay_linux and pclsync
2024-08-18 15:09:21 +02:00
Levi Neely 8d3c496754
memleak fixes (#40)
* fixed 2 of the 3 memory leaks

* fixed more memleaks

* more leaks

* another one

* BUGHUNT mode to look for more mem leaks
2024-08-15 23:06:55 +02:00
Levi Neely bec97722cd
reorg source tree, link system mbedtls (#38)
* reorg source tree, link system mbedtls

* remove cmakelists.txt

* update ci workflow

* -Werror to -Wall

* libpcloudcc_so in makefile

* single makefile works

* removed extra makefiles
2024-08-15 19:49:57 +02:00
Levi Neely ea16dce3a9
install rule (#37) 2024-08-15 11:18:55 +02:00
Levi Neely 51001d37b7
makefile destdir (#36) 2024-08-15 11:12:36 +02:00
Levi Neely c364996aad
Aur pkg prep (#35)
* version placeholder and makefile updates

* fixes
2024-08-15 10:47:59 +02:00
Levi Neely 536608ccd9
upgrade mbedtls to 2.x (#30)
* tagged mbedtls lib with version

* added source tree for mbedtls 2.1.14

* pcloudcc compiles with upgraded library mbedtls-2.x

* working on a segfault

* Revert "pcloudcc compiles with upgraded library mbedtls-2.x"

This reverts commit 8ccdb71ab8.

* build with debugging symbols

* trying a different approach; upgrading pupload.c

* updated mbedtls headers, using compat header

* all but pssl now using new headers

* updated pssl.h dependencies

* mbedtls2 rename.pl on all but pssl.{c,h}

* removed more commented code

* removed mbedtls-1.x from cmakelists

* program compiles with mbedtls 2.x, but remains offline.. why?

* removed mbedtls-1.x from source tree

* fixed handshake, now peer cert returning null

* mbedtls upgrade to 2.x completed!

* compat header removed; startcrypto no longer working

* fix start_crypto handler; need to check ret == 0

* fix linking problem on first login

* fixed startcrypto!
2024-08-14 23:50:09 +02:00
Levi Neely 27d34be43f
Fix finalize cmd crash (#29)
* build with debug symbols

* ignore overlay_client test binary

* fix SendCall memory leaks

* fixed crash, now investigating why it's returning failed

* safer sendcalls in control_tools

* error codes and stray strndup

* fixed finalize command crash

* removed ret from caller checks; fixed stopcrypto and startcrypto
2024-08-14 22:12:28 +02:00
Levi Neely 7801d1af76 more reorganization 2024-06-27 22:32:13 +02:00
Levi Neely 952f931be0 wrong option 2024-06-27 22:14:53 +02:00
Levi Neely 7343b7ec1e working on cmakelists and makefile 2024-06-27 22:14:32 +02:00
Levi Neely e7fae7b935 fixed makefile 2024-06-27 22:08:56 +02:00
Levi Neely 2a01c043ff simplified directory structure 2024-06-27 22:05:44 +02:00
Levi Neely 8c3d737815 pCloudCC/ formatting 2024-06-25 13:12:55 +02:00
Levi Neely 8a07a7b1e8 independent fork of pcloudcc/console-client 2024-06-25 01:09:07 +02:00