X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fircd_crypt_plain.c;h=2b96a735b32900420b609cf53ec00f5751ae8744;hb=refs%2Fheads%2Fupstream-ssl;hp=5cb5965fc68dd622db8967905100916fee31c3c3;hpb=9170762c2e7dc3c06729f6d3c87d7087c7cde0b4;p=ircu2.10.12-pk.git diff --git a/ircd/ircd_crypt_plain.c b/ircd/ircd_crypt_plain.c index 5cb5965..2b96a73 100644 --- a/ircd/ircd_crypt_plain.c +++ b/ircd/ircd_crypt_plain.c @@ -16,18 +16,34 @@ * 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 +/* #include -- Now using assert in ircd_log.h */ #include -/* 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;