summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorLibravatar Henning Schild <henning.schild@siemens.com>2018-07-17 14:50:10 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-07-18 10:02:20 -0700
commit42149d7f4b1424b29c0bae4f564d5f50a856bcea (patch)
tree960c1960971d40bd541a239fa51ffcefe05d396b /ci
parentgpg-interface: introduce an abstraction for multiple gpg formats (diff)
downloadtgif-42149d7f4b1424b29c0bae4f564d5f50a856bcea.tar.xz
gpg-interface: do not hardcode the key string len anymore
gnupg does print the keyid followed by a space and the signer comes next. The same pattern is also used in gpgsm, but there the key length would be 40 instead of 16. Instead of hardcoding the expected length, find the first space and calculate it. Input that does not match the expected format will be ignored now, before we jumped to found+17 which might have been behind the end of an unexpected string. Signed-off-by: Henning Schild <henning.schild@siemens.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ci')
0 files changed, 0 insertions, 0 deletions