diff options
author | Santiago Torres <santiago@nyu.edu> | 2016-04-22 10:52:04 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-22 14:06:46 -0700 |
commit | 45a227ef769df9fc0d198f323d2f919aa74375e1 (patch) | |
tree | 589177c7f6862378883c52f12c0e78f2015b60c3 /tag.h | |
parent | 78ccd4419525562a2c9d2b7cebddba0914bde151 (diff) | |
download | git-45a227ef769df9fc0d198f323d2f919aa74375e1.tar.gz |
verify-tag: move tag verification code to tag.c
The PGP verification routine for tags could be accessed by other modules
that require to do so.
Publish the verify_tag function in tag.c and rename it to gpg_verify_tag
so it does not conflict with builtin/mktag's static function.
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Santiago Torres <santiago@nyu.edu>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tag.h')
-rw-r--r-- | tag.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -17,5 +17,7 @@ extern int parse_tag_buffer(struct tag *item, const void *data, unsigned long si extern int parse_tag(struct tag *item); extern struct object *deref_tag(struct object *, const char *, int); extern struct object *deref_tag_noverify(struct object *); +extern int gpg_verify_tag(const unsigned char *sha1, + const char *name_to_report, unsigned flags); #endif /* TAG_H */ |