Changes in crypting.c [1ee6c18:c2295f7]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
crypting.c
r1ee6c18 rc2295f7 46 46 } irc_t; 47 47 48 #define set_add( a, b, c, d )49 #define set_find( a, b ) NULL50 51 48 #include "md5.h" 52 49 #include "crypting.h" … … 69 66 void setpassnc (irc_t *irc, const char *pass) 70 67 { 71 if (!set_find (irc, "password"))72 set_add (irc, "password", NULL, passchange);73 74 68 if (irc->password) g_free (irc->password); 75 69 … … 82 76 } 83 77 84 char *passchange (irc_t *irc, void *set, char *value) { 85 setpassnc (irc, value); 86 return (NULL); 87 } 88 89 int setpass (irc_t *irc, const char *pass, char* md5sum) { 78 int setpass (irc_t *irc, const char *pass, const char* md5sum) 79 { 90 80 md5_state_t md5state; 91 81 md5_byte_t digest[16];
Note: See TracChangeset
for help on using the changeset viewer.