summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-server.c
diff options
context:
space:
mode:
authorGravatar m0gg2006-04-21 08:39:11 +0000
committerGravatar m0gg2006-04-21 08:39:11 +0000
commit10da665cbcf682158428c491cdadf86c7b17825b (patch)
tree1bf66d164f4a1408a2f8afc6d7c7ea8db35d966a /nanohttp/nanohttp-server.c
parent5d681769c60b2d3216d76c1efe4f112a24baf519 (diff)
downloadcsoap-10da665cbcf682158428c491cdadf86c7b17825b.tar.gz
csoap-10da665cbcf682158428c491cdadf86c7b17825b.tar.bz2
Added a hrequest_t parameter to authentication function
Diffstat (limited to 'nanohttp/nanohttp-server.c')
-rw-r--r--nanohttp/nanohttp-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nanohttp/nanohttp-server.c b/nanohttp/nanohttp-server.c
index 82b0610..fdcc73c 100644
--- a/nanohttp/nanohttp-server.c
+++ b/nanohttp/nanohttp-server.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: nanohttp-server.c,v 1.55 2006/03/28 08:02:29 snowdrop Exp $
+* $Id: nanohttp-server.c,v 1.56 2006/04/21 08:39:11 m0gg Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -572,7 +572,7 @@ static int _httpd_authenticate_request(hrequest_t *req, httpd_auth auth)
return 0;
}
- if ((ret = auth(user, pass)))
+ if ((ret = auth(req, user, pass)))
log_info2("Access granted for user=\"%s\"", user);
else
log_info2("Authentication failed for user=\"%s\"", user);