diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-09-08 07:47:41 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-09-08 07:47:41 (GMT) |
commit | fbb80d00d8ac456451963d52af24fcccbbc1d751 (patch) | |
tree | 232d2f63378bf30db17c33c399cedc28fc13d4f9 /src/analysis/db/cdb.c | |
parent | 1a85f36e0505d75a51ab7b7f2c5078da7ef6bd98 (diff) |
Updated the database protocol for bookmarks.
Diffstat (limited to 'src/analysis/db/cdb.c')
-rw-r--r-- | src/analysis/db/cdb.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/analysis/db/cdb.c b/src/analysis/db/cdb.c index 74e8501..597242f 100644 --- a/src/analysis/db/cdb.c +++ b/src/analysis/db/cdb.c @@ -939,9 +939,19 @@ static void *g_cdb_archive_process(GCdbArchive *archive) sizeof(uint32_t), true); if (!status) goto gcap_bad_reply; + status = extend_packed_buffer(&out_pbuf, (uint8_t []) { 0x1 }, sizeof(uint8_t), true); + if (!status) goto gcap_bad_reply; + status = pack_all_collection_updates(archive->collections, &out_pbuf); if (!status) goto gcap_bad_reply; + status = extend_packed_buffer(&out_pbuf, (uint32_t []) { DBC_SET_ALL_ITEMS }, + sizeof(uint32_t), true); + if (!status) goto gcap_bad_reply; + + status = extend_packed_buffer(&out_pbuf, (uint8_t []) { 0x0 }, sizeof(uint8_t), true); + if (!status) goto gcap_bad_reply; + status = ssl_send_packed_buffer(&out_pbuf, archive->clients[i].ssl_fd); if (!status) goto gcap_bad_reply; |