aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-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 8e11430..b1eaad7 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 c70f6bd..373ec07 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 7ce5d1e..8c0fe95 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"))