summaryrefslogtreecommitdiff
path: root/functions.h
diff options
context:
space:
mode:
Diffstat (limited to 'functions.h')
-rw-r--r--functions.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/functions.h b/functions.h
index 07fdf09..c91bfdc 100644
--- a/functions.h
+++ b/functions.h
@@ -161,4 +161,9 @@ void cleanexit(SSL *server_ssl, struct client *clients, int sourcefd, struct irc
// Returns 1 on success or 0 on failure.
int rehash(struct settings *settings, char *failuremsg);
+// Check the password provided in the string 'str' against what is in
+// the settings structure 'settings'.
+// Return 0 for password mismatch, or 1 for password match.
+int checkpassword(char *password, struct settings *settings);
+
#endif