aboutsummaryrefslogtreecommitdiffstats
path: root/crypting.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypting.c')
-rw-r--r--crypting.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/crypting.c b/crypting.c
index 4091ed08..e46f0b92 100644
--- a/crypting.c
+++ b/crypting.c
@@ -66,7 +66,8 @@ typedef struct irc
/* USE WITH CAUTION!
Sets pass without checking */
-void setpassnc (irc_t *irc, char *pass) {
+void setpassnc (irc_t *irc, const char *pass)
+{
if (!set_find (irc, "password"))
set_add (irc, "password", NULL, passchange);
@@ -80,12 +81,13 @@ void setpassnc (irc_t *irc, char *pass) {
}
}
-char *passchange (irc_t *irc, void *set, char *value) {
+char *passchange (irc_t *irc, void *set, const char *value) {
setpassnc (irc, value);
return (NULL);
}
-int setpass (irc_t *irc, 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;