summaryrefslogtreecommitdiff
path: root/include/encrypt.h
diff options
context:
space:
mode:
authorsjaz <sjaz@5417fbe8-f217-4b02-8779-1006273d7864>2009-01-01 12:00:20 +0000
committersjaz <sjaz@5417fbe8-f217-4b02-8779-1006273d7864>2009-01-01 12:00:20 +0000
commitc777c8d9aa7cd5c2e9a399727a7fa9985a77fb1c (patch)
tree9e996ae4a1bbb833cec036c5cd4d87a590149e85 /include/encrypt.h
Anope Stable Branch
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@1902 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/encrypt.h')
-rw-r--r--include/encrypt.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/encrypt.h b/include/encrypt.h
new file mode 100644
index 000000000..7ac3d884a
--- /dev/null
+++ b/include/encrypt.h
@@ -0,0 +1,22 @@
+/* Include file for high-level encryption routines.
+ *
+ * (C) 2003-2008 Anope Team
+ * Contact us at info@anope.org
+ *
+ * Please read COPYING and README for furhter details.
+ *
+ * Based on the original code of Epona by Lara.
+ * Based on the original code of Services by Andy Church.
+ *
+ * $Id$
+ *
+ */
+
+typedef struct encryption_ {
+ int (*encrypt)(const char *src, int len, char *dest, int size);
+ int (*encrypt_in_place)(char *buf, int size);
+ int (*encrypt_check_len)(int passlen, int bufsize);
+ int (*decrypt)(const char *src, char *dest, int size);
+ int (*check_password)(const char *plaintext, const char *password);
+} Encryption;
+