diff options
author | dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-03-31 21:07:44 +0000 |
---|---|---|
committer | dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-03-31 21:07:44 +0000 |
commit | a69d0a19b02485fff8939a336e181e23f61b8301 (patch) | |
tree | 08ad9028ef27122231ce93b30671d4f5b4126336 | |
parent | bcbb3cc9b2ee3c1bac50e8306e9db1a49e2aab7e (diff) |
BUILD : 1.7.0 (20) BUGS : none NOTES : Fixed MySQL double encryption if using MD5.
git-svn-id: svn://svn.anope.org/anope/trunk@20 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@13 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | encrypt.h | 3 | ||||
-rw-r--r-- | extern.h | 4 | ||||
-rw-r--r-- | mysql.c | 5 | ||||
-rw-r--r-- | version.log | 6 |
5 files changed, 16 insertions, 3 deletions
@@ -1,6 +1,7 @@ Anope Version 1.7.0 -------------------- Provided by Anope Dev. <dev@anope.org> +2004/03/31 Fixed MySQL double encryption if using MD5. 2004/03/31 Implemented MySQL Phase2 (see docs/MYSQL file) 2004/03/31 Modules can now add Commands/Messages from outside of AnopeInit 2004/03/31 Fixed a bug with recersive module callbacks. @@ -8,10 +8,9 @@ * Based on the original code of Epona by Lara. * Based on the original code of Services by Andy Church. * - * $Id: encrypt.h,v 1.4 2003/07/20 01:15:49 dane Exp $ + * $Id$ * */ extern int encrypt(const char *src, int len, char *dest, int size); -extern int encrypt_in_place(char *buf, int size); extern int check_password(const char *plaintext, const char *password); @@ -863,5 +863,9 @@ E void db_mysql_load_exceptions(void); E void db_mysql_load_news(void); #endif +#ifdef USE_ENCRYPTION +extern int encrypt_in_place(char *buf, int size); +#endif + #endif /* EXTERN_H */ @@ -208,6 +208,10 @@ void db_mysql_save_ns_req(NickRequest * nr) char *db_mysql_secure(char *pass) { +#ifdef USE_ENCRYPTION + /* If we use the builtin encryption don't double encrypt! */ + return sstrdup(pass); +#else char epass[BUFSIZE]; if (!pass) { @@ -226,6 +230,7 @@ char *db_mysql_secure(char *pass) } return sstrdup(epass); +#endif } diff --git a/version.log b/version.log index d484fdba0..4b78645bd 100644 --- a/version.log +++ b/version.log @@ -8,11 +8,15 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="0" -VERSION_BUILD="19" +VERSION_BUILD="20" VERSION_EXTRA="" # $Log$ # +# BUILD : 1.7.0 (20) +# BUGS : none +# NOTES : Fixed MySQL double encryption if using MD5. +# # BUILD : 1.7.0 (19) # BUGS : none # NOTES : Refixed compile error if no RDB :( |