Added SilcAuthResult.
authorPekka Riikonen <priikone@silcnet.org>
Tue, 28 Nov 2006 20:30:04 +0000 (20:30 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 28 Nov 2006 20:30:04 +0000 (20:30 +0000)
lib/silccore/silcauth.h

index 2e3d0fd419fb2cda8a7dd797077ec75cced91eaf..f707dca310a529511db77e050415a1edcd661612 100644 (file)
@@ -57,10 +57,23 @@ typedef SilcUInt16 SilcAuthMethod;
 #define SILC_AUTH_PASSWORD    1                   /* Passphrase authentication */
 #define SILC_AUTH_PUBLIC_KEY  2                   /* Public key authentication */
 
-/* Authentication protocol status message (used by all authentication
-   protocols in the SILC). */
-#define SILC_AUTH_OK          0
-#define SILC_AUTH_FAILED      1
+/****d* silccore/SilcAuthAPI/SilcAuthResult
+ *
+ * NAME
+ *
+ *    typedef SilcUInt32 SilcAuthResult;
+ *
+ * DESCRIPTION
+ *
+ *    Authentication protocol status.  Used by all authentication protocols
+ *    in SILC.
+ *
+ * SOURCE
+ */
+typedef SilcUInt32 SilcAuthResult;
+
+#define SILC_AUTH_OK          0              /* Authentication successful */
+#define SILC_AUTH_FAILED      1                     /* Authentication failed */
 /***/
 
 /****s* silccore/SilcAuthAPI/SilcAuthPayload