aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-03-10 11:23:45 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-03-10 11:23:45 +0100
commit633d6532beb8cb8bd4f44732177499d4023fe624 (patch)
tree1005d5a483e9237e71dd5991958e2ea3094dcd0d
parent7e921b7afb86d6741d62d893ba141e5a2582b7af (diff)
downloadlibssh-633d6532beb8cb8bd4f44732177499d4023fe624.tar.gz
libssh-633d6532beb8cb8bd4f44732177499d4023fe624.tar.xz
libssh-633d6532beb8cb8bd4f44732177499d4023fe624.zip
example: Use const in auth_password from samplesshd.
-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"))