X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccore%2Fsilcprotocol.h;h=6d5ef0b529d89455536b9fea1c5bf02ab06feb4c;hb=4d35af3be05cacf69ca4bd634973cdcd25118e98;hp=620ca85b7027ce4fe253f259e7a72e2350f19434;hpb=e14cef8f772a6f73f05254ae220a3a83981ea753;p=silc.git diff --git a/lib/silccore/silcprotocol.h b/lib/silccore/silcprotocol.h index 620ca85b..6d5ef0b5 100644 --- a/lib/silccore/silcprotocol.h +++ b/lib/silccore/silcprotocol.h @@ -31,14 +31,20 @@ typedef unsigned char SilcProtocolState; the START state or you break every protocol. */ #define SILC_PROTOCOL_STATE_UNKNOWN 0 #define SILC_PROTOCOL_STATE_START 1 -#define SILC_PROTOCOL_STATE_END 253 -#define SILC_PROTOCOL_STATE_ERROR 254 +#define SILC_PROTOCOL_STATE_END 252 +#define SILC_PROTOCOL_STATE_FAILURE 253 /* Received failure from remote */ +#define SILC_PROTOCOL_STATE_ERROR 254 /* Local error at our end */ /* Connection Authentication protocols' authentication methods */ #define SILC_PROTOCOL_CONN_AUTH_NONE 0 #define SILC_PROTOCOL_CONN_AUTH_PASSWORD 1 #define SILC_PROTOCOL_CONN_AUTH_PUBLIC_KEY 2 +/* XXX These don't belong here really! */ +/* Connection authentication protocol status message */ +#define SILC_CONN_AUTH_OK 0 +#define SILC_CONN_AUTH_FAILED 1 + /* Type definition for above auth methods */ typedef unsigned char SilcProtocolAuthMeth;