Code

SSL utils: Include the relevant filename in all error messages.
authorSebastian Harl <sh@tokkee.org>
Fri, 30 Jan 2015 10:27:16 +0000 (11:27 +0100)
committerSebastian Harl <sh@tokkee.org>
Fri, 30 Jan 2015 10:27:16 +0000 (11:27 +0100)
src/utils/ssl.c

index f75223c03667d18d077be5bc770b9198d254aefc..d9ad060bb2270a86157135cb57e442b1a15af76e 100644 (file)
@@ -191,7 +191,8 @@ sdb_ssl_client_create(sdb_ssl_options_t *opts)
 
        if (! SSL_CTX_load_verify_locations(client->ctx,
                                client->opts.ca_file, NULL)) {
-               ssl_log(SDB_LOG_ERR, "ssl: Failed to load CA file");
+               ssl_log(SDB_LOG_ERR, "ssl: Failed to load CA file '%s'",
+                               client->opts.ca_file);
                sdb_ssl_client_destroy(client);
                return NULL;
        }