From 45a227ef769df9fc0d198f323d2f919aa74375e1 Mon Sep 17 00:00:00 2001 From: Santiago Torres Date: Fri, 22 Apr 2016 10:52:04 -0400 Subject: 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 Signed-off-by: Santiago Torres Reviewed-by: Eric Sunshine Signed-off-by: Junio C Hamano --- tag.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tag.h') diff --git a/tag.h b/tag.h index f4580aea42..a5721b6731 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 */ -- cgit v1.2.3