added gnutls backend and moved backend code into new files
[ircu2.10.12-pk.git] / ircd / ircd_crypt_plain.c
index 5cb5965fc68dd622db8967905100916fee31c3c3..2b96a735b32900420b609cf53ec00f5751ae8744 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id$
+ */
+/**
+ * @file
+ * @brief Routines for PLAIN passwords.
+ * @version $Id$
+ * 
+ * PLAIN text encryption.  Oxymoron and a half that.
  */
 #include "config.h"
 #include "ircd_crypt.h"
 #include "ircd_crypt_plain.h"
+#include "ircd_log.h"
 #include "s_debug.h"
 #include "ircd_alloc.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <unistd.h>
 
-/* yes I know it's an oxymoron, but still, it's handy for testing */
+/** Just sends back the supplied password.
+ * @param key The password
+ * @param salt The salt
+ * @return The password
+ * 
+ * Yes I know it's an oxymoron, but still, it's handy for testing.
+ * 
+ * What you need more help with seeing what this does?
+ * 
+ */
 const char* ircd_crypt_plain(const char* key, const char* salt)
 {
   assert(NULL != salt);
@@ -41,7 +57,11 @@ const char* ircd_crypt_plain(const char* key, const char* salt)
   return key;
 }
 
-/* register ourself with the list of crypt mechanisms -- hikari */
+/** register ourself with the list of crypt mechanisms 
+ * Registers the PLAIN mechanism in the list of available crypt mechanisms.  
+ * When we're modular this will be the entry function for the module.
+ * 
+ * -- hikari */
 void ircd_register_crypt_plain(void)
 {
 crypt_mech_t* crypt_mech;