diff options
author | François Perrad <francois.perrad@gadz.org> | 2018-02-26 14:31:15 +0100 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2018-02-26 21:31:15 +0800 |
commit | 2e836bb553d72d2546de80b7f4da35355efe5baf (patch) | |
tree | 0807ceaabc2f87b33d422acdcad73c45c4f80b10 /svr-auth.c | |
parent | 36ccfd21e71ecbf7c5441194b8d38bfe1ffe61a6 (diff) |
more linting (#58)
* const parameter
* fix indentation
Diffstat (limited to 'svr-auth.c')
-rw-r--r-- | svr-auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -38,7 +38,7 @@ #include "dbrandom.h" static void authclear(void); -static int checkusername(char *username, unsigned int userlen); +static int checkusername(const char *username, unsigned int userlen); /* initialise the first time for a session, resetting all parameters */ void svr_authinitialise() { @@ -263,7 +263,7 @@ static int check_group_membership(gid_t check_gid, const char* username, gid_t u /* Check that the username exists and isn't disallowed (root), and has a valid shell. * returns DROPBEAR_SUCCESS on valid username, DROPBEAR_FAILURE on failure */ -static int checkusername(char *username, unsigned int userlen) { +static int checkusername(const char *username, unsigned int userlen) { char* listshell = NULL; char* usershell = NULL; |