X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fpacket_receive.c;h=f91d0aa119c5eeac0ddb370147e982e9188299a5;hb=fbcba64240f0accf54c44249df6b03652bb86dfc;hp=ac06a7d2e4c6c0f0c5d4eb74c503febc4d1c0509;hpb=ea35a2214bc62cbdb314cd28f389fd78fe3a31e0;p=silc.git diff --git a/apps/silcd/packet_receive.c b/apps/silcd/packet_receive.c index ac06a7d2..f91d0aa1 100644 --- a/apps/silcd/packet_receive.c +++ b/apps/silcd/packet_receive.c @@ -2681,7 +2681,6 @@ void silc_server_new_channel(SilcServer server, SilcUInt32 name_len; unsigned char *id; SilcUInt32 id_len; - SilcUInt32 mode; SilcServerEntry server_entry; SilcChannelEntry channel; @@ -3033,10 +3032,10 @@ void silc_server_connection_auth_request(SilcServer server, int ret; SilcAuthMethod auth_meth = SILC_AUTH_NONE; - SILC_LOG_DEBUG(("Start")); - - if (packet->src_id_type && packet->src_id_type != SILC_ID_CLIENT) + if (packet->src_id_type && packet->src_id_type != SILC_ID_CLIENT) { + SILC_LOG_DEBUG(("Request not from client")); return; + } /* Parse the payload */ ret = silc_buffer_unformat(packet->buffer, @@ -3064,6 +3063,11 @@ void silc_server_connection_auth_request(SilcServer server, auth_meth = SILC_AUTH_PUBLIC_KEY; } + SILC_LOG_DEBUG(("Authentication method is [%s]", + (auth_meth == SILC_AUTH_NONE ? "None" : + auth_meth == SILC_AUTH_PASSWORD ? "Passphrase" : + "Digital signatures"))); + /* Send it back to the client */ silc_server_send_connection_auth_request(server, sock, conn_type, auth_meth); }