Home GnuPG
Diffusion GnuPG 4d7ac43ff71f

common: New function compare_version_strings.
4d7ac43ff71fUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

common: New function compare_version_strings.

* common/stringhelp.c (parse_version_number): New.
(parse_version_string): New.
(compare_version_strings): New.
* common/t-stringhelp.c (test_compare_version_strings): New.
(main): Call test.  Return ERRCOUNT instead of 0.

The code for that function is based on code from libgcrypt. Similar
code is in all GnuPG related libraries this function is
a candidates for inclusion in libgpg-error.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jan 8 2016, 8:58 AM
Parents
rG496643291e1e: common: New function get_assuan_server_version.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG4d7ac43ff71f: common: New function compare_version_strings. (authored by Werner Koch <wk@gnupg.org>).Jan 8 2016, 8:58 AM