summaryrefslogtreecommitdiff
path: root/mysql.c
diff options
context:
space:
mode:
authordane 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
committerdane 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
commita69d0a19b02485fff8939a336e181e23f61b8301 (patch)
tree08ad9028ef27122231ce93b30671d4f5b4126336 /mysql.c
parentbcbb3cc9b2ee3c1bac50e8306e9db1a49e2aab7e (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
Diffstat (limited to 'mysql.c')
-rw-r--r--mysql.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql.c b/mysql.c
index 44eb07397..ff23c0b5f 100644
--- a/mysql.c
+++ b/mysql.c
@@ -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
}