1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Don't error out on failure to load default certificate store.

This restores the previous behaviour.

Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
This commit is contained in:
Edward Tomasz Napierala 2017-08-10 14:35:34 +01:00
parent 0c49a84ffb
commit edee0ba587

View File

@ -386,10 +386,10 @@ gboolean irssi_ssl_init(void)
success = X509_STORE_set_default_paths(store);
if (success == 0) {
g_error("Could not load default certificates");
g_warning("Could not load default certificates");
X509_STORE_free(store);
store = NULL;
return FALSE;
/* Don't return an error; the user might have their own cafile/capath. */
}
ssl_inited = TRUE;
@ -509,7 +509,7 @@ static GIOChannel *irssi_ssl_get_iochannel(GIOChannel *handle, int port, SERVER_
g_free(scafile);
g_free(scapath);
verify = TRUE;
} else {
} else if (store != NULL) {
SSL_CTX_set_cert_store(ctx, store);
}