Re: [PATCH 6/8] gpg-interface: do not hardcode the key string len anymore

2018-07-06 Thread Junio C Hamano
Henning Schild writes: > 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. > > Signed-off-by:

[PATCH 6/8] gpg-interface: do not hardcode the key string len anymore

2018-07-03 Thread Henning Schild
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. Signed-off-by: Henning Schild --- gpg-interface.