X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fclient.c;h=089ea87aeee92e53eecb29c5ac529052691f9843;hb=c49f7330c61ba13940fadef90377ec4012145e37;hp=300789bfa14fdb4c902742799363700c95c3d278;hpb=fd1db6d58b83f27f508e03c33038f2fd019af214;p=silc.git diff --git a/lib/silcclient/client.c b/lib/silcclient/client.c index 300789bf..089ea87a 100644 --- a/lib/silcclient/client.c +++ b/lib/silcclient/client.c @@ -419,18 +419,18 @@ SILC_TASK_CALLBACK(silc_client_connect_to_server_second) 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)) - { - /* XXX do AUTH_REQUEST resolcing with server */ - proto_ctx->auth_meth = SILC_AUTH_NONE; - } + &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_meth = SILC_AUTH_NONE; + } /* Free old protocol as it is finished now */ silc_protocol_free(protocol); if (ctx->packet) silc_packet_context_free(ctx->packet); silc_free(ctx); - /* silc_free(ctx->keymat....); */ sock->protocol = NULL; /* Allocate the authentication protocol. This is allocated here