diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-07-23 15:45:16 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-07-23 15:45:16 -0700 |
| commit | 5216bcbc845023fdea43b6d56f3634c490096838 (patch) | |
| tree | 4f5984b483fbbb92da576fd4a6f9f03fae1ec54e /gpg-interface.h | |
| parent | 98813265b360ebc59371d7d32efa47eb24adda15 (diff) | |
| parent | b5b3ddbe5c56c7ded95e7c47c985dc6d61f73ea0 (diff) | |
| download | git-5216bcbc845023fdea43b6d56f3634c490096838.tar.gz | |
Merge branch 'cc/fast-import-export-signature-names'
Clean up the way how signature on commit objects are exported to
and imported from fast-import stream.
* cc/fast-import-export-signature-names:
fast-(import|export): improve on commit signature output format
Diffstat (limited to 'gpg-interface.h')
| -rw-r--r-- | gpg-interface.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gpg-interface.h b/gpg-interface.h index e09f12e8d0..60ddf8bbfa 100644 --- a/gpg-interface.h +++ b/gpg-interface.h @@ -48,6 +48,18 @@ struct signature_check { void signature_check_clear(struct signature_check *sigc); /* + * Return the format of the signature (like "openpgp", "x509", "ssh" + * or "unknown"). + */ +const char *get_signature_format(const char *buf); + +/* + * Is the signature format valid (like "openpgp", "x509", "ssh" or + * "unknown") + */ +int valid_signature_format(const char *format); + +/* * Look at a GPG signed tag object. If such a signature exists, store it in * signature and the signed content in payload. Return 1 if a signature was * found, and 0 otherwise. |
