core: display a warning when the file with certificate authorities is not found (option weechat.network.gnutls_ca_file)

This commit is contained in:
Sébastien Helleu 2021-05-04 20:37:15 +02:00
parent 9f0e7fb47e
commit e95fdc3a0a
15 changed files with 147 additions and 16 deletions

View File

@ -28,6 +28,7 @@ New features::
Bug fixes::
* core: display a warning when the file with certificate authorities is not found (option weechat.network.gnutls_ca_file)
* core: evaluate left/right part of comparison after split on the comparison operator in ${if:xxx} (issue #1627)
* core: prevent switching to start of visited buffers when jumping to next (issue #1591, issue #1592)
* core: recreate buflist and fset bars on /reload when WeeChat is started without configuration files (issue #1618)

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-04-11 09:28+0200\n"
"POT-Creation-Date: 2021-05-04 20:34+0200\n"
"PO-Revision-Date: 2021-02-06 15:55+0100\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4321,6 +4321,14 @@ msgstr ""
"Pokud používá tento soubor jiný proces WeeChat, skuste WeeChat pustit\n"
"s jiným domovským adresářem pomocí \"--dir\" volby příkazové řádky.\n"
#, fuzzy, c-format
msgid "%sWarning: failed to load certificate authorities from file %s"
msgstr "%sgnutls: nemůžu číst certifikát \"%s\""
#, c-format
msgid "%sWarning: no certificate authorities loaded (file not found: %s)"
msgstr ""
msgid "set server name indication (SNI) failed"
msgstr ""

View File

@ -24,7 +24,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-04-11 09:28+0200\n"
"POT-Creation-Date: 2021-05-04 20:34+0200\n"
"PO-Revision-Date: 2021-04-13 11:40+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
@ -5249,6 +5249,15 @@ msgstr ""
"Verwendung der \"--dir\" Kommandozeilenoption, WeeChat in einem anderen "
"Verzeichnis zu starten.\n"
#, fuzzy, c-format
msgid "%sWarning: failed to load certificate authorities from file %s"
msgstr ""
"%sgnutls: Zertifikat für Fingerprint (%s) konnte nicht berechnet werden"
#, c-format
msgid "%sWarning: no certificate authorities loaded (file not found: %s)"
msgstr ""
msgid "set server name indication (SNI) failed"
msgstr "Server Name Indication (SNI) konnte nicht gesetzt werden"

View File

@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-04-11 09:28+0200\n"
"POT-Creation-Date: 2021-05-04 20:34+0200\n"
"PO-Revision-Date: 2021-02-06 15:55+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4516,6 +4516,14 @@ msgstr ""
"con otro directorio de inicio usando la opción de línea de comandos \"--dir"
"\"\n"
#, fuzzy, c-format
msgid "%sWarning: failed to load certificate authorities from file %s"
msgstr "%sgnutls: no es posible leer el certificado \"%s\""
#, c-format
msgid "%sWarning: no certificate authorities loaded (file not found: %s)"
msgstr ""
msgid "set server name indication (SNI) failed"
msgstr ""

View File

@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-04-11 09:28+0200\n"
"PO-Revision-Date: 2021-04-11 09:29+0200\n"
"POT-Creation-Date: 2021-05-04 20:34+0200\n"
"PO-Revision-Date: 2021-05-04 20:35+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@ -5120,6 +5120,18 @@ msgstr ""
"un autre répertoire de base en utilisant l'option de ligne de commande \"--"
"dir\".\n"
#, c-format
msgid "%sWarning: failed to load certificate authorities from file %s"
msgstr ""
"%sAttention : échec de chargement des autorités de certification depuis le "
"fichier %s"
#, c-format
msgid "%sWarning: no certificate authorities loaded (file not found: %s)"
msgstr ""
"%sAttention : aucune autorité de certification chargée (fichier non trouvé : "
"%s)"
msgid "set server name indication (SNI) failed"
msgstr "la définition de l'indication de nom de serveur (SNI) a échoué"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-04-11 09:28+0200\n"
"POT-Creation-Date: 2021-05-04 20:34+0200\n"
"PO-Revision-Date: 2021-02-06 15:55+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -3878,6 +3878,14 @@ msgstr ""
"Ha egy másik WeeChat folyamat használja ezt a fájlt, próbálja másik\n"
"saját könyvtárral futtatni a WeeChat-et a \"--dir\" opció segítségével!\n"
#, fuzzy, c-format
msgid "%sWarning: failed to load certificate authorities from file %s"
msgstr "Nem sikerült a(z) \"%s\" naplófájlt írni\n"
#, c-format
msgid "%sWarning: no certificate authorities loaded (file not found: %s)"
msgstr ""
msgid "set server name indication (SNI) failed"
msgstr ""

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-04-11 09:28+0200\n"
"POT-Creation-Date: 2021-05-04 20:34+0200\n"
"PO-Revision-Date: 2021-02-06 15:55+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4634,6 +4634,14 @@ msgstr ""
"Se un'altra istanza di WeeChat usa questo file, eseguire WeeChat\n"
"con un'altra home usando l'opzione da riga di comando \"--dir\".\n"
#, fuzzy, c-format
msgid "%sWarning: failed to load certificate authorities from file %s"
msgstr "%sgnutls: impossibile leggere il certificato \"%s\""
#, c-format
msgid "%sWarning: no certificate authorities loaded (file not found: %s)"
msgstr ""
msgid "set server name indication (SNI) failed"
msgstr ""

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-04-11 09:28+0200\n"
"POT-Creation-Date: 2021-05-04 20:34+0200\n"
"PO-Revision-Date: 2021-02-06 15:55+0100\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@ -4858,6 +4858,14 @@ msgstr ""
"他の WeeChat プロセスがこのファイルを使用している場合は、\n"
"\"--dir\" コマンドラインオプションをつけて WeeChat を起動してみてください。\n"
#, fuzzy, c-format
msgid "%sWarning: failed to load certificate authorities from file %s"
msgstr "%sgnutls: 証明書指紋の計算に失敗しました (%s)"
#, c-format
msgid "%sWarning: no certificate authorities loaded (file not found: %s)"
msgstr ""
msgid "set server name indication (SNI) failed"
msgstr "サーバ名表示 (SNI) の設定に失敗しました"

View File

@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-04-11 09:28+0200\n"
"POT-Creation-Date: 2021-05-04 20:34+0200\n"
"PO-Revision-Date: 2021-03-14 13:37+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: Polish <kde-i18n-doc@kde.org>\n"
@ -5004,6 +5004,14 @@ msgstr ""
"Jeżeli inny proces WeeChat używa tego pliku, spróbuj uruchomić WeeChat\n"
"w innym katalogu domowym używając w linii komend opcji \"--dir\".\n"
#, fuzzy, c-format
msgid "%sWarning: failed to load certificate authorities from file %s"
msgstr "%sgnutls: nie udało się wyliczyć odcisku certyfikatu (%s)"
#, c-format
msgid "%sWarning: no certificate authorities loaded (file not found: %s)"
msgstr ""
msgid "set server name indication (SNI) failed"
msgstr "ustawianie wskaźnika nazwy serwera (SNI) się nie powiodło"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-04-11 09:28+0200\n"
"POT-Creation-Date: 2021-05-04 20:34+0200\n"
"PO-Revision-Date: 2021-02-06 15:55+0100\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@ -4893,6 +4893,14 @@ msgstr ""
"WeeChat\n"
"com outro diretório usando a opção \"--dir\" na linha de comandos.\n"
#, fuzzy, c-format
msgid "%sWarning: failed to load certificate authorities from file %s"
msgstr "%sgnutls: falha ao calcular impressão digital do certificado (%s)"
#, c-format
msgid "%sWarning: no certificate authorities loaded (file not found: %s)"
msgstr ""
msgid "set server name indication (SNI) failed"
msgstr "falha ao definir indicação do nome de servidor (SNI)"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-04-11 09:28+0200\n"
"POT-Creation-Date: 2021-05-04 20:34+0200\n"
"PO-Revision-Date: 2021-03-05 20:43+0100\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4506,6 +4506,14 @@ msgid ""
"with another home using the \"--dir\" command line option.\n"
msgstr ""
#, fuzzy, c-format
msgid "%sWarning: failed to load certificate authorities from file %s"
msgstr "%sgnutls: não foi possível ler certificado \"%s\""
#, c-format
msgid "%sWarning: no certificate authorities loaded (file not found: %s)"
msgstr ""
msgid "set server name indication (SNI) failed"
msgstr ""

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-04-11 09:28+0200\n"
"POT-Creation-Date: 2021-05-04 20:34+0200\n"
"PO-Revision-Date: 2021-02-06 15:55+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -3908,6 +3908,14 @@ msgstr ""
"WeeChat\n"
"с другой домашней директорией используя параметр \"--dir\".\n"
#, fuzzy, c-format
msgid "%sWarning: failed to load certificate authorities from file %s"
msgstr "Не могу записать лог-файл \"%s\"\n"
#, c-format
msgid "%sWarning: no certificate authorities loaded (file not found: %s)"
msgstr ""
msgid "set server name indication (SNI) failed"
msgstr ""

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-04-11 09:28+0200\n"
"POT-Creation-Date: 2021-05-04 20:34+0200\n"
"PO-Revision-Date: 2021-02-06 15:55+0100\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -3520,6 +3520,14 @@ msgid ""
"with another home using the \"--dir\" command line option.\n"
msgstr ""
#, fuzzy, c-format
msgid "%sWarning: failed to load certificate authorities from file %s"
msgstr "%sHata: dosya \"%s\" oluşturulamaz"
#, c-format
msgid "%sWarning: no certificate authorities loaded (file not found: %s)"
msgstr ""
msgid "set server name indication (SNI) failed"
msgstr ""

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2021-04-11 09:28+0200\n"
"POT-Creation-Date: 2021-05-04 20:34+0200\n"
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -3509,6 +3509,14 @@ msgid ""
"with another home using the \"--dir\" command line option.\n"
msgstr ""
#, c-format
msgid "%sWarning: failed to load certificate authorities from file %s"
msgstr ""
#, c-format
msgid "%sWarning: no certificate authorities loaded (file not found: %s)"
msgstr ""
msgid "set server name indication (SNI) failed"
msgstr ""

View File

@ -61,6 +61,7 @@
#include "wee-config.h"
#include "wee-proxy.h"
#include "wee-string.h"
#include "../gui/gui-chat.h"
#include "../plugins/plugin.h"
@ -102,8 +103,28 @@ network_set_gnutls_ca_file ()
ca_path2 = string_replace (ca_path, "%h", weechat_home);
if (ca_path2)
{
gnutls_certificate_set_x509_trust_file (gnutls_xcred, ca_path2,
GNUTLS_X509_FMT_PEM);
if (access (ca_path2, R_OK) == 0)
{
if (gnutls_certificate_set_x509_trust_file (gnutls_xcred, ca_path2,
GNUTLS_X509_FMT_PEM) < 0)
{
gui_chat_printf (
NULL,
_("%sWarning: failed to load certificate authorities "
"from file %s"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
ca_path2);
}
}
else
{
gui_chat_printf (
NULL,
_("%sWarning: no certificate authorities loaded "
"(file not found: %s)"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
ca_path2);
}
free (ca_path2);
}
free (ca_path);