aboutsummaryrefslogtreecommitdiffstats
path: root/src/decrypt.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-04-18 09:12:46 +0000
committerWerner Koch <[email protected]>2018-04-18 09:12:46 +0000
commited1052842df633bc149b14c4cb17859e3c66afe4 (patch)
treef5ca182acdf9ae2e873ebd38b3d7c91d9fb3513d /src/decrypt.c
parentjson: Add meta command ,read to gpgme-json. (diff)
downloadgpgme-ed1052842df633bc149b14c4cb17859e3c66afe4.tar.gz
gpgme-ed1052842df633bc149b14c4cb17859e3c66afe4.zip
json: Add command "getmore" to gpgme-json.
* src/gpgme-json.c (MIN_REPLY_CHUNK_SIZE): New const. (DEF_REPLY_CHUNK_SIZE): New const. (MAX_REPLY_CHUNK_SIZE): New const. (pending_data): New var. (add_base64_to_object): Chnage to take a plain data pointer. (get_chunksize): New. (make_data_object): New. (op_encrypt): Get chunksize and use make_data_object. (op_getmore): New. (process_request): Release pending data for all commands but "getmore" and "help". -- Native messaging has a limit on the data it may receive in one request. Thus the caller needs to watch for the "more" flag and request the remaining data using "getmore" in a loop. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/decrypt.c')
0 files changed, 0 insertions, 0 deletions