Page MenuHomePhorge

No OneTemporary

Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
diff --git a/lib/acte.h b/lib/acte.h
index 619a0d24f..23cff9dc9 100644
--- a/lib/acte.h
+++ b/lib/acte.h
@@ -1,23 +1,52 @@
+/* acte.h -- Interface for IMAP AUTHENTICATE mechanisms
+ *
+ * (C) Copyright 1994 by Carnegie Mellon University
+ *
+ * All Rights Reserved
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation for any purpose and without fee is hereby granted,
+ * provided that the above copyright notice appear in all copies and that
+ * both that copyright notice and this permission notice appear in
+ * supporting documentation, and that the name of CMU not be
+ * used in advertising or publicity pertaining to distribution of the
+ * software without specific, written prior permission.
+ *
+ * CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
+ * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
+ * CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
+ * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+ * SOFTWARE.
+ *
+ */
+
+/* Client-side authentication mechanism */
struct acte_client {
char *auth_type;
int (*start)();
int (*auth)();
+ void (*query_state)();
void (*free_state)();
-}
+};
+/* Server-side authentication mechanism */
struct acte_server {
char *auth_type;
int (*start)();
int (*auth)();
void (*query_state)();
void (*free_state)();
-}
-
+};
+/* Protection mechanisms */
#define ACTE_PROT_NONE 1
#define ACTE_PROT_INTEGRITY 2
#define ACTE_PROT_PRIVACY 4
+#define ACTE_PROT_ANY (ACTE_PROT_NONE|ACTE_PROT_INTEGRITY|ACTE_PROT_PRIVACY)
+
+#define ACTE_FAIL 1 /* Authentication failed */
-#define ACTE_FAIL_SOFT 1 /* Try some other authentication method */
-#define ACTE_FAIL_HARD 2 /* Don't try some other authentication method */
#define ACTE_DONE 3 /* Server has authenticated user */
+

File Metadata

Mime Type
text/x-diff
Expires
Sun, Apr 5, 10:04 PM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18831355
Default Alt Text
(2 KB)

Event Timeline