aboutsummaryrefslogtreecommitdiffstats
path: root/regexp/jimregexp.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-06-26 13:21:31 +0000
committerWerner Koch <[email protected]>2020-06-26 13:21:31 +0000
commitccbb0cfeefed096a9841b6557d10eef12d55b721 (patch)
tree61a62584680d648abc4af5a22f52bdbb7a2215b3 /regexp/jimregexp.c
parentsm: Print the serial number of a cert also in decimal. (diff)
downloadgnupg-ccbb0cfeefed096a9841b6557d10eef12d55b721.tar.gz
gnupg-ccbb0cfeefed096a9841b6557d10eef12d55b721.zip
sm: Try not to output a partial new message after an error.
* sm/gpgsm.c (main) <aSign,aEncr>: Uses gpgrt_fcancel on error. -- When creating a signature or encrypting and the respective key is not available or the user canceled the PIN entry gpgsm prints the initial part of the message due to internal buffering in gpgrt. By using gpgrt_fcancel we can avoid this at least as long as the data is less than the standard buffer size (which is currently 8k). If is not a complete solution but the best we can do easily. Outputting to the tty is anyway more of a testing aid than for real use. This makes use of the new gpgrt_fcancel API. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'regexp/jimregexp.c')
0 files changed, 0 insertions, 0 deletions