degesch: fix some remaining print_*()
This commit is contained in:
parent
cbda184461
commit
3bf1ffa559
11
degesch.c
11
degesch.c
|
@ -1185,8 +1185,7 @@ ca_error:
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only inform the user if we're not actually verifying
|
// Only inform the user if we're not actually verifying
|
||||||
// FIXME: print to the server buffer
|
buffer_send_error (ctx, ctx->server_buffer, "%s", error->message);
|
||||||
print_warning ("%s", error->message);
|
|
||||||
error_free (error);
|
error_free (error);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1210,13 +1209,13 @@ irc_initialize_ssl (struct app_context *ctx, struct error **e)
|
||||||
{
|
{
|
||||||
char *path = resolve_config_filename (ssl_cert);
|
char *path = resolve_config_filename (ssl_cert);
|
||||||
if (!path)
|
if (!path)
|
||||||
// FIXME: print to the global buffer
|
buffer_send_error (ctx, ctx->global_buffer,
|
||||||
print_error ("%s: %s", "cannot open file", ssl_cert);
|
"%s: %s", "Cannot open file", ssl_cert);
|
||||||
// XXX: perhaps we should read the file ourselves for better messages
|
// XXX: perhaps we should read the file ourselves for better messages
|
||||||
else if (!SSL_use_certificate_file (ctx->ssl, path, SSL_FILETYPE_PEM)
|
else if (!SSL_use_certificate_file (ctx->ssl, path, SSL_FILETYPE_PEM)
|
||||||
|| !SSL_use_PrivateKey_file (ctx->ssl, path, SSL_FILETYPE_PEM))
|
|| !SSL_use_PrivateKey_file (ctx->ssl, path, SSL_FILETYPE_PEM))
|
||||||
// FIXME: print to the global buffer
|
buffer_send_error (ctx, ctx->global_buffer,
|
||||||
print_error ("%s: %s", "setting the SSL client certificate failed",
|
"%s: %s", "Setting the SSL client certificate failed",
|
||||||
ERR_error_string (ERR_get_error (), NULL));
|
ERR_error_string (ERR_get_error (), NULL));
|
||||||
free (path);
|
free (path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue