summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-04-07 14:05:45 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-04-07 14:05:45 +0200
commitf42b0aa551c97f801271de8443357dcfa988cd1e (patch)
tree9e13e21fb93d46cb82a595ddf875ba3e264a5221
parentb13d81a05041440fc1661be89e19e4e3382a8a11 (diff)
downloadgnutls-f42b0aa551c97f801271de8443357dcfa988cd1e.tar.gz
systemkey: improved error message on unsupported systems
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--src/systemkey.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/systemkey.c b/src/systemkey.c
index c596d69e0d..f080ce8a80 100644
--- a/src/systemkey.c
+++ b/src/systemkey.c
@@ -173,8 +173,11 @@ static void systemkey_list(FILE * out)
} while(ret >= 0);
if (ret < 0 && ret != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) {
- fprintf(stderr, "gnutls_system_key_iter_get_url: %s",
- gnutls_strerror(ret));
+ if (ret == GNUTLS_E_UNIMPLEMENTED_FEATURE) {
+ fprintf(stderr, "Native key store is not supported, or not present on this system\n");
+ } else {
+ fprintf(stderr, "Error: %s\n", gnutls_strerror(ret));
+ }
app_exit(1);
}
gnutls_system_key_iter_deinit(iter);