* Removed silc_client_packet_send_flush from the client library
as it is not needed. Affected file lib/silcclient/client.[ch].
+ * Added printing of message of unresolved authentication method
+ to the Irssi SILC client. Added it to the module formats.
+ Removed the same message from the client library.
+
Thu May 31 13:57:33 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
* Added new distribution feature, DISTLABEL. Every distribution
{ "auth_failed", "Authentication failed", 0 },
{ "set_away", "You have meen marked as being away (away message: {hilight $0})", 1, { 0 } },
{ "unset_away", "You are no longer marked as being away", 0 },
+ { "auth_meth_unresolved", "Could not resolve authentication method to use, assume no authentication", 0 },
{ NULL, NULL, 0 }
};
SILCTXT_AUTH_FAILED,
SILCTXT_SET_AWAY,
SILCTXT_UNSET_AWAY,
+ SILCTXT_AUTH_METH_UNRESOLVED,
+
};
extern FORMAT_REC fecommon_silc_formats[];
unsigned char **auth_data,
uint32 *auth_data_len)
{
+ bool ret = TRUE;
+ SILC_SERVER_REC *server = conn ? conn->context : NULL;
/* XXX must resolve from configuration whether this connection has
any specific authentication data */
*auth_data = NULL;
*auth_data_len = 0;
- return TRUE;
+ if (ret == FALSE) {
+ printformat_module("fe-common/silc", server, NULL,
+ MSGLEVEL_MODES, SILCTXT_AUTH_METH_UNRESOLVED);
+ }
+
+ return ret;
}
/* Notifies application that failure packet was received. This is called
if (!client->ops->get_auth_method(client, sock->user_data, sock->hostname,
sock->port, &proto_ctx->auth_meth,
&proto_ctx->auth_data,
- &proto_ctx->auth_data_len)) {
- client->ops->say(client, ctx->sock->user_data,
- "Could not resolve authentication method to use, "
- "assume no authentication");
+ &proto_ctx->auth_data_len))
proto_ctx->auth_meth = SILC_AUTH_NONE;
- }
/* Free old protocol as it is finished now */
silc_protocol_free(protocol);