diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-12-08 15:57:13 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2005-12-08 15:57:13 +0100 |
commit | 8efa2f49816aaac986137a5da1f6c35425282195 (patch) | |
tree | 4435dc5ed5342bcc3601124b086aceb5917f3e3e /crypting.c | |
parent | 7989fcf34257201f54538f289cce1c651341e142 (diff) | |
parent | c2295f7eeac263dbcc19f84e9a61abbe778aa9f8 (diff) |
Merge some fixes from my integration branch
Diffstat (limited to 'crypting.c')
-rw-r--r-- | crypting.c | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -45,9 +45,6 @@ typedef struct irc char *password; } irc_t; -#define set_add( a, b, c, d ) -#define set_find( a, b ) NULL - #include "md5.h" #include "crypting.h" #include <string.h> @@ -68,9 +65,6 @@ typedef struct irc Sets pass without checking */ void setpassnc (irc_t *irc, const char *pass) { - if (!set_find (irc, "password")) - set_add (irc, "password", NULL, passchange); - if (irc->password) g_free (irc->password); if (pass) { @@ -81,12 +75,8 @@ void setpassnc (irc_t *irc, const char *pass) } } -char *passchange (irc_t *irc, void *set, char *value) { - setpassnc (irc, value); - return (NULL); -} - -int setpass (irc_t *irc, const char *pass, char* md5sum) { +int setpass (irc_t *irc, const char *pass, const char* md5sum) +{ md5_state_t md5state; md5_byte_t digest[16]; int i, j; |