summaryrefslogtreecommitdiff
path: root/legacy/eet/src/bin
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2008-12-05 09:42:06 +0000
committerCedric BAIL <cedric.bail@free.fr>2008-12-05 09:42:06 +0000
commit9c381ceb1fade2d1cfe9b6908860a275bad2412a (patch)
treed82dc9ac8bd311ed931230e39c9cbf515654eb4e /legacy/eet/src/bin
parent0b63514546a04006e4049b70f65b2f67395901dc (diff)
Better error handling with eet identity.
SVN revision: 37937
Diffstat (limited to 'legacy/eet/src/bin')
-rw-r--r--legacy/eet/src/bin/eet_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/legacy/eet/src/bin/eet_main.c b/legacy/eet/src/bin/eet_main.c
index 114fffe51a..79dd490bfa 100644
--- a/legacy/eet/src/bin/eet_main.c
+++ b/legacy/eet/src/bin/eet_main.c
@@ -248,6 +248,11 @@ do_eet_sign(const char *file, const char *private_key, const char *public_key)
248 } 248 }
249 249
250 key = eet_identity_open(public_key, private_key, NULL); 250 key = eet_identity_open(public_key, private_key, NULL);
251 if (!key)
252 {
253 fprintf(stdout, "cannot open key '%s:%s'.\n", public_key, private_key);
254 exit(-1);
255 }
251 256
252 fprintf(stdout, "Using the following key to sign `%s`.\n", file); 257 fprintf(stdout, "Using the following key to sign `%s`.\n", file);
253 eet_identity_print(key, stdout); 258 eet_identity_print(key, stdout);