aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/samplesshd-kbdint.c2
-rw-r--r--examples/samplesshd-tty.c2
-rw-r--r--examples/samplesshd.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/samplesshd-kbdint.c b/examples/samplesshd-kbdint.c
index 8e11430a..b1eaad70 100644
--- a/examples/samplesshd-kbdint.c
+++ b/examples/samplesshd-kbdint.c
@@ -59,7 +59,7 @@ static void cleanup_pcap(){
#endif
-static int auth_password(char *user, char *password){
+static int auth_password(const char *user, const char *password){
if(strcmp(user, SSHD_USER))
return 0;
if(strcmp(password, SSHD_PASSWORD))
diff --git a/examples/samplesshd-tty.c b/examples/samplesshd-tty.c
index c70f6bdc..373ec079 100644
--- a/examples/samplesshd-tty.c
+++ b/examples/samplesshd-tty.c
@@ -62,7 +62,7 @@ static void cleanup_pcap(){
#endif
-static int auth_password(char *user, char *password){
+static int auth_password(const char *user, const char *password){
if(strcmp(user, SSHD_USER))
return 0;
if(strcmp(password, SSHD_PASSWORD))
diff --git a/examples/samplesshd.c b/examples/samplesshd.c
index 7ce5d1e8..8c0fe954 100644
--- a/examples/samplesshd.c
+++ b/examples/samplesshd.c
@@ -58,7 +58,7 @@ void cleanup_pcap(){
#endif
-static int auth_password(char *user, char *password){
+static int auth_password(const char *user, const char *password){
if(strcmp(user,"aris"))
return 0;
if(strcmp(password,"lala"))