From a5d4a4b32b11814d673241d62624ecec1d577571 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 15 Nov 2018 19:18:53 +0100 Subject: core: New API gpgrt_cmp_version * src/gpg-error.h.in: New API gpgrt_cmp_version. * src/visibility.c (gpgrt_cmp_version): New wrapper. * src/version.c (parse_version_string): Revamped. (do_cmp_version): New. (_gpgrt_cmp_version): New. (_gpg_error_check_version): Re-implemented using the new func. * tests/t-version.c: Include t-common.h. (t_gpgrt_cmp_version): New test. (main): Run new test. Change test for new version number to require a 2 level number. -- We have implementations of very similar functions in all out libs. Thus it makes sense to provide a generic version. This version is actually derived from the ftp-indexer.c we use for the gnupg website (see the gnupg-doc repo). Signed-off-by: Werner Koch --- Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index b602c7f..4991911 100644 --- a/Makefile.am +++ b/Makefile.am @@ -15,6 +15,7 @@ # # You should have received a copy of the GNU Lesser General Public # License along with this program; if not, see . +# SPDX-License-Identifier: LGPL-2.1-or-later # Location of the released tarball archives. Note that this is an # internal archive and before uploading this to the public server, -- cgit v1.2.3