aboutsummaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-04-18 17:50:56 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-04-18 17:50:56 +0200
commit3bf1ffa559ab7a1f25d452aea55c7fc73244215e (patch)
tree9b6e0f91c48978009b1d2dcb8c464e7acdb140a6 /degesch.c
parentcbda184461162e17297f335491acf956d756d0ea (diff)
downloadxK-3bf1ffa559ab7a1f25d452aea55c7fc73244215e.tar.gz
xK-3bf1ffa559ab7a1f25d452aea55c7fc73244215e.tar.xz
xK-3bf1ffa559ab7a1f25d452aea55c7fc73244215e.zip
degesch: fix some remaining print_*()
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/degesch.c b/degesch.c
index 7536b7f..0c9e19f 100644
--- a/degesch.c
+++ b/degesch.c
@@ -1185,8 +1185,7 @@ ca_error:
}
// Only inform the user if we're not actually verifying
- // FIXME: print to the server buffer
- print_warning ("%s", error->message);
+ buffer_send_error (ctx, ctx->server_buffer, "%s", error->message);
error_free (error);
return true;
}
@@ -1210,13 +1209,13 @@ irc_initialize_ssl (struct app_context *ctx, struct error **e)
{
char *path = resolve_config_filename (ssl_cert);
if (!path)
- // FIXME: print to the global buffer
- print_error ("%s: %s", "cannot open file", ssl_cert);
+ buffer_send_error (ctx, ctx->global_buffer,
+ "%s: %s", "Cannot open file", ssl_cert);
// XXX: perhaps we should read the file ourselves for better messages
else if (!SSL_use_certificate_file (ctx->ssl, path, SSL_FILETYPE_PEM)
|| !SSL_use_PrivateKey_file (ctx->ssl, path, SSL_FILETYPE_PEM))
- // FIXME: print to the global buffer
- print_error ("%s: %s", "setting the SSL client certificate failed",
+ buffer_send_error (ctx, ctx->global_buffer,
+ "%s: %s", "Setting the SSL client certificate failed",
ERR_error_string (ERR_get_error (), NULL));
free (path);
}