updates
[silc.git] / lib / silcske / silcske_status.h
index f512354f1179aee5c0a0cdcaa0ba50546a2768cd..3dc0ad6160f60be2872d634fbe488359e1cf7544 100644 (file)
@@ -2,9 +2,9 @@
 
   silcske_status.h
 
-  Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
+  Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2000 Pekka Riikonen
+  Copyright (C) 2000 - 2001 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
 /* Status flags returned by all SKE routines */
 typedef enum {
   /* These are defined by the protocol */
-  SILC_SKE_STATUS_OK = 0,
-  SILC_SKE_STATUS_ERROR = 1,
-  SILC_SKE_STATUS_BAD_PAYLOAD = 2,
-  SILC_SKE_STATUS_UNKNOWN_GROUP = 3,
-  SILC_SKE_STATUS_UNKNOWN_CIPHER = 4,
-  SILC_SKE_STATUS_UNKNOWN_PKCS = 5,
-  SILC_SKE_STATUS_UNKNOWN_HASH_FUNCTION = 6,
-  SILC_SKE_STATUS_UNSUPPORTED_PUBLIC_KEY = 7,
-  SILC_SKE_STATUS_INCORRECT_SIGNATURE = 8,
-
+  SILC_SKE_STATUS_OK                     = 0,
+  SILC_SKE_STATUS_ERROR                  = 1,
+  SILC_SKE_STATUS_BAD_PAYLOAD            = 2,
+  SILC_SKE_STATUS_UNKNOWN_GROUP          = 3,
+  SILC_SKE_STATUS_UNKNOWN_CIPHER         = 4,
+  SILC_SKE_STATUS_UNKNOWN_PKCS           = 5,
+  SILC_SKE_STATUS_UNKNOWN_HASH_FUNCTION  = 6,
+  SILC_SKE_STATUS_UNKNOWN_HMAC           = 7,
+  SILC_SKE_STATUS_UNSUPPORTED_PUBLIC_KEY = 8,
+  SILC_SKE_STATUS_INCORRECT_SIGNATURE    = 9,
+  SILC_SKE_STATUS_BAD_VERSION            = 10,
+  SILC_SKE_STATUS_INVALID_COOKIE         = 11,
+
+  SILC_SKE_STATUS_PENDING,
+  SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED,
   SILC_SKE_STATUS_KEY_EXCHANGE_NOT_ACTIVE,
   SILC_SKE_STATUS_BAD_RESERVED_FIELD,
   SILC_SKE_STATUS_BAD_PAYLOAD_LENGTH,
   SILC_SKE_STATUS_INCORRECT_HASH,
   SILC_SKE_STATUS_INCORRECT_PUBLIC_KEY,
+  SILC_SKE_STATUS_FREED,
 } SilcSKEStatus;
 
 #endif