summaryrefslogtreecommitdiff
path: root/svr-auth.c
diff options
context:
space:
mode:
authorFran?ois Perrad <francois.perrad@gadz.org>2018-02-26 14:31:15 +0100
committerFran?ois Perrad <francois.perrad@gadz.org>2018-02-26 14:31:15 +0100
commitcc9151aaa84a7ba3d23f4febd1a16384911181ea (patch)
tree8d0a56ad7df1ba61b327352d626ca36446aac898 /svr-auth.c
parent8a53d7ea3f79a6f692ba7c412873f3bab92cfed8 (diff)
downloaddropbear-cc9151aaa84a7ba3d23f4febd1a16384911181ea.tar.gz
more linting (#58)
* const parameter * fix indentation
Diffstat (limited to 'svr-auth.c')
-rw-r--r--svr-auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svr-auth.c b/svr-auth.c
index 90334e0..59d027e 100644
--- a/svr-auth.c
+++ b/svr-auth.c
@@ -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;