aboutsummaryrefslogtreecommitdiffstats
path: root/gpg-interface.h
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2025-10-30 13:33:28 +0100
committerJunio C Hamano <gitster@pobox.com>2025-10-30 07:06:58 -0700
commitee74c5b167372c4053ab4b3e0b798a1cd51d7e85 (patch)
tree68dea6e4ff41dfd20bc50533d32eec30c45b643c /gpg-interface.h
parentSync with Git 2.51.2 (diff)
downloadgit-ee74c5b167372c4053ab4b3e0b798a1cd51d7e85.tar.gz
git-ee74c5b167372c4053ab4b3e0b798a1cd51d7e85.zip
gpg-interface: simplify ssh fingerprint parsing
In "gpg-interface.c", the 'parse_ssh_output()' function takes a 'struct signature_check *sigc' argument and populates many members of this 'sigc' using information parsed from 'sigc->output' which contains the ouput of an `ssh-keygen -Y ...` command that was used to verify an SSH signature. When it populates 'sigc->fingerprint' though, it uses `xstrdup(strstr(line, "key ") + 4)` while `strstr(line, "key ")` has already been computed a few lines above and is already available in the `key` variable. Let's simplify this. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions