aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2018-09-27 09:14:30 -0400
committerDavid Howells <dhowells@redhat.com>2018-11-02 14:51:10 +0000
commit7db3f0a6a99e913a9a708f866cd856e00e367a3e (patch)
tree14719396f550747f9cff113389a4b6e170a0c58d
parentf9c7b4e4437ae9dae455b3e9760df397571c29d7 (diff)
downloadkeyutils-7db3f0a6a99e913a9a708f866cd856e00e367a3e.tar.gz
keyctl: fix error path message names
Signed-off-by: Ben Boeckel <mathstuf@gmail.com> Signed-off-by: David Howells <dhowells@redhat.com>
-rw-r--r--keyctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/keyctl.c b/keyctl.c
index 61990b4..0847a39 100644
--- a/keyctl.c
+++ b/keyctl.c
@@ -953,7 +953,7 @@ static void act_keyctl_describe(int argc, char *argv[])
/* get key description */
ret = keyctl_describe_alloc(key, &buffer);
if (ret < 0)
- error("keyctl_describe");
+ error("keyctl_describe_alloc");
/* parse it */
uid = 0;
@@ -1714,7 +1714,7 @@ static void act_keyctl_dh_compute_kdf(int argc, char *argv[])
ret = keyctl_dh_compute_kdf(private, prime, base, argv[5], NULL, 0,
buffer, buflen);
if (ret < 0)
- error("keyctl_dh_compute_alloc");
+ error("keyctl_dh_compute_kdf");
/* hexdump the contents */
printf("%u bytes of data in result:\n", ret);
@@ -1778,7 +1778,7 @@ static void act_keyctl_dh_compute_kdf_oi(int argc, char *argv[])
ret = keyctl_dh_compute_kdf(private, prime, base, argv[5], oi, oilen,
buffer, buflen);
if (ret < 0)
- error("keyctl_dh_compute_alloc");
+ error("keyctl_dh_compute_kdf");
/* hexdump the contents */
printf("%u bytes of data in result:\n", ret);