summaryrefslogtreecommitdiff
path: root/src/ne_auth.h
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-02-11 11:15:32 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-02-11 11:15:32 +0000
commitd2d780b4d7553711b2998d8a3699f9090682e9fc (patch)
tree4f96f8ac697efd63a3e3eee981d11722e27b3ea5 /src/ne_auth.h
parent0ab93bf9b9e8dd226d97ddd75d3d441f0aa557eb (diff)
downloadneon-d2d780b4d7553711b2998d8a3699f9090682e9fc.tar.gz
* src/ne_auth.h: Move hint on using attempt as return value.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@878 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_auth.h')
-rw-r--r--src/ne_auth.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/ne_auth.h b/src/ne_auth.h
index de4010c..ba5c7be 100644
--- a/src/ne_auth.h
+++ b/src/ne_auth.h
@@ -1,6 +1,6 @@
/*
HTTP authentication routines
- Copyright (C) 1999-2002, Joe Orton <joe@manyfish.co.uk>
+ Copyright (C) 1999-2006, Joe Orton <joe@manyfish.co.uk>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
@@ -39,14 +39,15 @@ NE_BEGIN_DECLS
* The callback must return zero to indicate that authentication
* should be attempted with the username/password, or non-zero to
* cancel the request. (if non-zero, username and password are
- * ignored.) */
+ * ignored.)
+ *
+ * Hint: if you just wish to attempt authentication just once (even if
+ * the user gets the username/password wrong), have the callback
+ * function use 'attempt' value as the function return value.
+ */
typedef int (*ne_auth_creds)(void *userdata, const char *realm, int attempt,
char *username, char *password);
-/* TOP TIP: if you just wish to try authenticating once (even if the
- * user gets the username/password wrong), have your implementation of
- * the callback return the 'attempt' value. */
-
/* Set callbacks to provide credentials for server and proxy
* authentication. userdata is passed as the first argument to the
* callback. The callback is called *indefinitely* until either it