diff options
| author | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-10-17 20:42:40 +0000 |
|---|---|---|
| committer | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-10-17 20:42:40 +0000 |
| commit | 9bf8366451b60148699657ed966c0913fbae9465 (patch) | |
| tree | 3a48a1aaa582ec259657ff1029dd691b3a99fb92 /include/encrypt.h | |
| parent | 3dbe219758f5c9712a5c1935d85be1434cf0eee8 (diff) | |
BUILD : 1.7.17 (1185) BUGS : N/A NOTES : Encryption now offers the choice of none, old and md5 - the md5 module is nicely taken from irc-services and actaully works, yes, real md5, in anope, wow eh?
git-svn-id: svn://svn.anope.org/anope/trunk@1185 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@905 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/encrypt.h')
| -rw-r--r-- | include/encrypt.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/encrypt.h b/include/encrypt.h index 45569b5fb..fd17a00ee 100644 --- a/include/encrypt.h +++ b/include/encrypt.h @@ -12,4 +12,11 @@ * */ -E int encrypt(const char *src, int len, char *dest, int size); +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; + |
