+2005-03-19 Michael Poole <mdpoole@troilus.org>
+
+ * doc/example.conf (Operator): Correct the comment explaining
+ hashed passwords.
+
+ * ircd/m_oper.c (oper_password_match): Check correct variable to
+ determine whether the hashed password matched.
+
2005-03-08 Michael Poole <mdpoole@troilus.org>
* ircd/match.c (ipmask_parse): Explicitly zero-initialize the mask
# # and the default setting.
# };
#
-# The encrypted password is optional. If you wish to encrypt your
-# password, there is a utility in the ircd. Please read the file
-# tools/README.
+# By default, the password is hashed using the system's native crypt()
+# function. Other password mechanisms are available; the umkpasswd
+# utility from the ircd directory can hash passwords using those
+# mechanisms.
+#
# All privileges are shown with their default values; if you wish to
# override defaults, you should set only those privileges for the
# operator. Listing defaulted privileges just makes things harder to
crypt_clear if it's enabled -- hikari */
crypted = ircd_crypt(to_match, passwd);
- if (to_match == NULL)
+ if (!crypted)
return 0;
res = strcmp(crypted, passwd);
MyFree(crypted);