|
NAMEhttp_servlet_basicauth —
HTTP basic authentication servlet
LIBRARYPDEL Library (libpdel, -lpdel)SYNOPSIS#include <sys/types.h>
#include <stdio.h>
#include <netinet/in.h>
#include <openssl/ssl.h>
#include <pdel/http/http_defs.h>
#include
<pdel/http/http_server.h>
#include
<pdel/http/servlet/basicauth.h>
struct http_servlet *
DESCRIPTIONhttp_servlet_basicauth_create () creates a new servlet
that implements HTTP basic authentication. The servlet should be registered
with a lower order than the other servlets that it protects, so that it
executes first.
auth is a pointer to a function having this type: typedef const char *http_servlet_basicauth_t(void *arg, struct http_request *req, const char *username, const char *password); arg is the opaque cookie supplied to
When the servlet is destroyed, if destroy is
not RETURN VALUESOn failure,http_servlet_basicauth_create () returns
NULL and sets errno to an
appropriate value.
SEE ALSOhttp_request(3), http_response(3), http_server(3), http_servlet(3), http_servlet_cookieauth(3), libpdel(3)J. Franks, P. Hallam-Baker, J. Hostetler, S. Lawrence, P. Leach, A. Luotonen, and L. Stewart, HTTP Authentication: Basic and Digest Access Authentication, RFC 2617. HISTORYThe PDEL library was developed at Packet Design, LLC.http://www.packetdesign.com/
AUTHORSArchie Cobbs ⟨archie@freebsd.org⟩
Visit the GSP FreeBSD Man Page Interface. |