projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
73dc785
)
Inform user when received unsupported public key from server.
author
Pekka Riikonen
<priikone@silcnet.org>
Fri, 7 Jul 2000 11:36:09 +0000
(11:36 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Fri, 7 Jul 2000 11:36:09 +0000
(11:36 +0000)
apps/silc/protocol.c
patch
|
blob
|
history
diff --git
a/apps/silc/protocol.c
b/apps/silc/protocol.c
index 541d26dbf05b150c3c5abed1131f1ce68e1f43fc..e914d5a614e34d60bf6fe74e29730c8ec9cbfb8a 100644
(file)
--- a/
apps/silc/protocol.c
+++ b/
apps/silc/protocol.c
@@
-23,6
+23,9
@@
/*
* $Id$
* $Log$
/*
* $Id$
* $Log$
+ * Revision 1.5 2000/07/07 11:36:09 priikone
+ * Inform user when received unsupported public key from server.
+ *
* Revision 1.4 2000/07/07 06:53:45 priikone
* Added support for server public key verification.
*
* Revision 1.4 2000/07/07 06:53:45 priikone
* Added support for server public key verification.
*
@@
-299,6
+302,14
@@
SILC_TASK_CALLBACK(silc_client_protocol_key_exchange)
}
if (status != SILC_SKE_STATUS_OK) {
}
if (status != SILC_SKE_STATUS_OK) {
+
+ if (status == SILC_SKE_STATUS_UNSUPPORTED_PUBLIC_KEY) {
+ silc_say(client, "Received unsupported server %s public key",
+ ctx->sock->hostname);
+ } else {
+ silc_say(client, "Error during key exchange protocol with server %s",
+ ctx->sock->hostname);
+ }
protocol->state = SILC_PROTOCOL_STATE_ERROR;
protocol->execute(client->timeout_queue, 0, protocol, fd, 0, 0);
return;
protocol->state = SILC_PROTOCOL_STATE_ERROR;
protocol->execute(client->timeout_queue, 0, protocol, fd, 0, 0);
return;