summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/nanohttp/http_server.c4
-rw-r--r--nanohttp/nanohttp-server.c4
-rw-r--r--nanohttp/nanohttp-server.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/examples/nanohttp/http_server.c b/examples/nanohttp/http_server.c
index f8a0536..33e60ce 100644
--- a/examples/nanohttp/http_server.c
+++ b/examples/nanohttp/http_server.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: http_server.c,v 1.2 2006/02/27 22:26:02 snowdrop Exp $
+* $Id: http_server.c,v 1.3 2006/04/21 08:40:37 m0gg Exp $
*
* CSOAP Project: A http client/server library in C (example)
* Copyright (C) 2003 Ferhat Ayaz
@@ -26,7 +26,7 @@
#include <nanohttp/nanohttp-server.h>
-static int simple_authenticator(const char *user, const char *password)
+static int simple_authenticator(hrequest_t *req, const char *user, const char *password)
{
log_info3("logging in user=\"%s\" password=\"%s\"", user, password);
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);
diff --git a/nanohttp/nanohttp-server.h b/nanohttp/nanohttp-server.h
index 5b36c6f..85402c5 100644
--- a/nanohttp/nanohttp-server.h
+++ b/nanohttp/nanohttp-server.h
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: nanohttp-server.h,v 1.18 2006/03/23 13:51:06 m0gg Exp $
+ * $Id: nanohttp-server.h,v 1.19 2006/04/21 08:39:11 m0gg Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -45,7 +45,7 @@ typedef struct httpd_conn
Service callback
*/
typedef void (*httpd_service) (httpd_conn_t *, hrequest_t *);
-typedef int (*httpd_auth) (const char *user, const char *password);
+typedef int (*httpd_auth) (hrequest_t *req, const char *user, const char *password);
/*
* Service representation object