search for: 1b109e634

Displaying 2 results from an estimated 2 matches for "1b109e634".

2017 Apr 23
0
[PATCH v7 1/7] daemon: expose file upload logic
...ad_to_fd (int fd, const char *filename); + /* ordinary daemon functions use these to indicate errors * NB: you don't need to prefix the string with the current command, * it is added automatically by the client-side RPC stubs. diff --git a/daemon/upload.c b/daemon/upload.c index 655baf29d..1b109e634 100644 --- a/daemon/upload.c +++ b/daemon/upload.c @@ -54,19 +54,50 @@ write_cb (void *data_vp, const void *buf, size_t len) return 0; } +int +upload_to_fd (int fd, const char *filename) +{ + int r = 0, err = 0; + struct write_cb_data data = { .fd = fd, .written = 0 }; + + r = receive_file...
2017 Apr 23
11
[PATCH v7 0/7] Feature: Yara file scanning
v7: - Fixes according to comments - Rebase on top of 1.37.12 Matteo Cafasso (7): daemon: expose file upload logic appliance: add yara dependency New API: yara_load New API: yara_destroy New API: internal_yara_scan New API: yara_scan yara_scan: added API tests appliance/packagelist.in | 4 + configure.ac | 1 + daemon/Makefile.am