ERROR_TIMEOUT SilcClientConnectionStatus errors.
+Wed Jan 14 18:42:44 EET 2004 Pekka Riikonen <priikone@silcnet.org>
+
+ * Added SILC_CLIENT_CONN_ERROR_KE, ERROR_AUTH, ERROR_RESUME and
+ ERROR_TIMEOUT SilcClientConnectionStatus errors. Affected
+ files are lib/silcclient/silcclient.h, client.c.
+
Mon Jan 12 13:01:10 CET 2004 Jochen Eisinger <jochen@penguin-breeder.org>
* When resuming a session fails, notify the user that the session
SilcClient client = (SilcClient)ctx->client;
client->internal->ops->connected(client, ctx->sock->user_data,
- SILC_CLIENT_CONN_ERROR);
+ SILC_CLIENT_CONN_ERROR_KE);
if (ctx->packet)
silc_packet_context_free(ctx->packet);
silc_free(ctx);
SilcClient client = (SilcClient)ctx->client;
client->internal->ops->connected(client, ctx->sock->user_data,
- SILC_CLIENT_CONN_ERROR);
+ SILC_CLIENT_CONN_ERROR_AUTH);
silc_free(ctx);
}
silc_free(ctx);
/* Notify application of failure */
- client->internal->ops->connected(client, conn, SILC_CLIENT_CONN_ERROR);
+ client->internal->ops->connected(client, conn,
+ SILC_CLIENT_CONN_ERROR_TIMEOUT);
}
return;
}
/* Notify application that connection is created to server */
client->internal->ops->connected(client, conn, success ?
SILC_CLIENT_CONN_SUCCESS_RESUME :
- SILC_CLIENT_CONN_ERROR);
+ SILC_CLIENT_CONN_ERROR_RESUME);
if (success) {
/* Issue INFO command to fetch the real server name and server
* DESCRIPTION
*
* This type is returned to the `connect' client operation to indicate
- * the status of the created connection. It can indicated if it was
+ * the status of the created connection. It can indicate if it was
* successful or whether an error occurred.
*
* SOURCE
SILC_CLIENT_CONN_SUCCESS, /* Successfully connected */
SILC_CLIENT_CONN_SUCCESS_RESUME, /* Successfully connected and
resumed old detached session */
- SILC_CLIENT_CONN_ERROR, /* Error occurred during connecting */
+ SILC_CLIENT_CONN_ERROR, /* Unknown error occurred during
+ connecting */
+ SILC_CLIENT_CONN_ERROR_KE, /* Key Exchange failed */
+ SILC_CLIENT_CONN_ERROR_AUTH, /* Authentication failed */
+ SILC_CLIENT_CONN_ERROR_RESUME, /* Resuming failed */
+ SILC_CLIENT_CONN_ERROR_TIMEOUT, /* Timeout during connecting */
} SilcClientConnectionStatus;
/***/