diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-04-06 00:39:12 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-04-12 17:17:34 +0200 |
commit | 8eb096b3ef1676064c8e6f5c43c8790e8bab6bfa (patch) | |
tree | e773505c182e8153e54e0caa1d2383c11db081d7 /src/plugins/relay/relay.c | |
parent | dec237b1048479b29e3386d5c8ce593803f2d81d (diff) | |
download | weechat-8eb096b3ef1676064c8e6f5c43c8790e8bab6bfa.zip |
relay: rename "ssl" options and protocol to "tls" (issue #1903)
Diffstat (limited to 'src/plugins/relay/relay.c')
-rw-r--r-- | src/plugins/relay/relay.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/plugins/relay/relay.c b/src/plugins/relay/relay.c index 0677c7e8b..b2e07a7b2 100644 --- a/src/plugins/relay/relay.c +++ b/src/plugins/relay/relay.c @@ -90,7 +90,7 @@ relay_signal_upgrade_cb (const void *pointer, void *data, { struct t_relay_server *ptr_server; struct t_relay_client *ptr_client; - int quit, ssl_disconnected; + int quit, tls_disconnected; /* make C compiler happy */ (void) pointer; @@ -117,24 +117,24 @@ relay_signal_upgrade_cb (const void *pointer, void *data, } quit = (signal_data && (strcmp (signal_data, "quit") == 0)); - ssl_disconnected = 0; + tls_disconnected = 0; for (ptr_client = relay_clients; ptr_client; ptr_client = ptr_client->next_client) { /* - * FIXME: it's not possible to upgrade with SSL clients connected (GnuTLS + * FIXME: it's not possible to upgrade with TLS clients connected (GnuTLS * lib can't reload data after upgrade), so we close connection for - * all SSL clients currently connected + * all TLS clients currently connected */ - if ((ptr_client->sock >= 0) && (ptr_client->ssl || quit)) + if ((ptr_client->sock >= 0) && (ptr_client->tls || quit)) { if (!quit) { - ssl_disconnected++; + tls_disconnected++; weechat_printf (NULL, _("%s%s: disconnecting from client %s%s%s because " - "upgrade can't work for clients connected via SSL"), + "upgrade can't work for clients connected via TLS"), weechat_prefix ("error"), RELAY_PLUGIN_NAME, RELAY_COLOR_CHAT_CLIENT, @@ -144,15 +144,15 @@ relay_signal_upgrade_cb (const void *pointer, void *data, relay_client_set_status (ptr_client, RELAY_STATUS_DISCONNECTED); } } - if (ssl_disconnected > 0) + if (tls_disconnected > 0) { weechat_printf (NULL, /* TRANSLATORS: "%s" after "%d" is "client" or "clients" */ - _("%s%s: disconnected from %d %s (SSL connection " + _("%s%s: disconnected from %d %s (TLS connection " "not supported with upgrade)"), weechat_prefix ("error"), RELAY_PLUGIN_NAME, - ssl_disconnected, - NG_("client", "clients", ssl_disconnected)); + tls_disconnected, + NG_("client", "clients", tls_disconnected)); } return WEECHAT_RC_OK; |