diff options
Diffstat (limited to 'snac.c')
| -rw-r--r-- | snac.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -57,7 +57,7 @@ double ftime(void) | |||
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | 59 | ||
| 60 | int validate_uid(char *uid) | 60 | int validate_uid(const char *uid) |
| 61 | /* returns if uid is a valid identifier */ | 61 | /* returns if uid is a valid identifier */ |
| 62 | { | 62 | { |
| 63 | while (*uid) { | 63 | while (*uid) { |
| @@ -103,7 +103,7 @@ void snac_debug(snac *snac, int level, d_char *str) | |||
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | 105 | ||
| 106 | d_char *hash_password(char *uid, char *passwd, char *nonce) | 106 | d_char *hash_password(const char *uid, const char *passwd, const char *nonce) |
| 107 | /* hashes a password */ | 107 | /* hashes a password */ |
| 108 | { | 108 | { |
| 109 | xs *d_nonce = NULL; | 109 | xs *d_nonce = NULL; |
| @@ -120,7 +120,7 @@ d_char *hash_password(char *uid, char *passwd, char *nonce) | |||
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | 122 | ||
| 123 | int check_password(char *uid, char *passwd, char *hash) | 123 | int check_password(const char *uid, const char *passwd, const char *hash) |
| 124 | /* checks a password */ | 124 | /* checks a password */ |
| 125 | { | 125 | { |
| 126 | int ret = 0; | 126 | int ret = 0; |