summaryrefslogtreecommitdiff
path: root/src/certtool.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2007-02-13 20:41:42 +0000
committerSimon Josefsson <simon@josefsson.org>2007-02-13 20:41:42 +0000
commit71767e23dc13ef169f01852715524ecaa2721131 (patch)
treeaf5cf180c53233b20bf9fcf57bc574b0a7f01db4 /src/certtool.c
parent6e6601e9fb0e9f1b681ae11aed3c3c9db77019fd (diff)
downloadgnutls-71767e23dc13ef169f01852715524ecaa2721131.tar.gz
Better errors.
Diffstat (limited to 'src/certtool.c')
-rw-r--r--src/certtool.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/certtool.c b/src/certtool.c
index 62a4e209ad..70bd71206d 100644
--- a/src/certtool.c
+++ b/src/certtool.c
@@ -2573,10 +2573,7 @@ smime_to_pkcs7 (void)
{
len = getline (&lineptr, &linesize, infile);
if (len == -1)
- {
- fprintf (stderr, "Cannot find RFC 2822 header/body separator\n");
- exit (1);
- }
+ error (EXIT_FAILURE, 0, "Cannot find RFC 2822 header/body separator");
}
while (strcmp (lineptr, "\r\n") != 0 && strcmp (lineptr, "\n") != 0);
@@ -2584,8 +2581,7 @@ smime_to_pkcs7 (void)
{
len = getline (&lineptr, &linesize, infile);
if (len == -1)
- {
- fprintf (stderr, "Message has RFC 2822 header but no body\n");
+ error (EXIT_FAILURE, 0, "Message has RFC 2822 header but no body");
exit (1);
}
}