src: Fix dummy engine versions.

Previously, 'gpgme_engine_check_version' failed for these protocols
because the version parser failed to parse the dummy versions.

* src/engine-assuan.c (llass_get_version): Use a version triple that
the parser can understand.
(llass_get_req_version): Likewise.
* src/engine-spawn.c (engspawn_get_version): Likewise.
(engspawn_get_req_version): Likewise.
* src/engine-uiserver.c (uiserver_get_version): Likewise.
(uiserver_get_req_version): Likewise.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-07-28 17:45:53 +02:00
parent 2ff58fcbd5
commit b9e6eacd06
3 changed files with 6 additions and 6 deletions

View File

@ -131,14 +131,14 @@ llass_get_home_dir (void)
static char *
llass_get_version (const char *file_name)
{
return strdup ("1.0");
return strdup ("1.0.0");
}
static const char *
llass_get_req_version (void)
{
return "1.0";
return "1.0.0";
}

View File

@ -312,14 +312,14 @@ static char *
engspawn_get_version (const char *file_name)
{
(void)file_name;
return strdup ("1.0");
return strdup ("1.0.0");
}
static const char *
engspawn_get_req_version (void)
{
return "1.0";
return "1.0.0";
}

View File

@ -123,14 +123,14 @@ static void uiserver_io_event (void *engine,
static char *
uiserver_get_version (const char *file_name)
{
return strdup ("1.0");
return strdup ("1.0.0");
}
static const char *
uiserver_get_req_version (void)
{
return "1.0";
return "1.0.0";
}