summaryrefslogtreecommitdiff
path: root/tag.h
diff options
context:
space:
mode:
authorSantiago Torres <santiago@nyu.edu>2016-04-22 14:52:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-04-22 21:06:46 (GMT)
commit45a227ef769df9fc0d198f323d2f919aa74375e1 (patch)
tree589177c7f6862378883c52f12c0e78f2015b60c3 /tag.h
parent78ccd4419525562a2c9d2b7cebddba0914bde151 (diff)
downloadgit-45a227ef769df9fc0d198f323d2f919aa74375e1.zip
git-45a227ef769df9fc0d198f323d2f919aa74375e1.tar.gz
git-45a227ef769df9fc0d198f323d2f919aa74375e1.tar.bz2
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tag.h b/tag.h
index f4580ae..a5721b6 100644
--- a/tag.h
+++ b/tag.h
@@ -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 */