From: Santiago Torres Date: Sun, 03 Apr 2016 21:43:55 GMT Subject: Re: [PATCH v3 4/4] tag: use pgp_verify_function in tag -v call Message-ID: <20160403214354.GA28933@LykOS> In-Reply-To: <20160403045600.GD1519@sigill.intra.peff.net> > > if (cmdmode == 'v') > > - return for_each_tag_name(argv, verify_tag); > > + return for_each_tag_name(argv, pgp_verify_tag, > > + GPG_VERIFY_VERBOSE); > > but I think that is coupling too closely. What happens later when the > public, multi-file pgp_verify_tag function changes its interface? Or we > want to change our interface here, and it no longer matches > pgp_verify_tag? The results ripple a lot further than they should. > > I think you probably want to keep a simple adapter callback in this > file, like: > > int verify_tag(const char *name, const char *ref, const unsigned char *sha1) > { > return pgp_verify_tag(name, GPG_VERIFY_VERBOSE)); > } Yes, agreed. I'll give this a go Thanks! -Santiago