mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02: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:
parent
0c49a84ffb
commit
edee0ba587
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue