HTTP_FILTER_AUTHENT - authentication data.
#include "httpfilt.h" typedef struct _HTTP_FILTER_AUTHENT { CHAR *pszUser; DWORD cbUserBuff; CHAR *pszPassword; DWORD cbPasswordBuff; } HTTP_FILTER_AUTHENT, *PHTTP_FILTER_AUTHENT;
When an HttpFilterProc is called with SF_NOTIFY_AUTHENTICATION as its second parameter, NotificationType, its third, pvNotification, is a pointer to an HTTP_FILTER_AUTHENT. This provides access to the username and password associated with a request being processed (the request is described by the first argument to the HttpFilterProc).
The username and password supplied by the client are initially stored in the structure: if either is omitted, the associated buffer is initialized with its first byte set to '\0' (i.e. the buffer, read as a C string, is the empty string); in the case of the username, this means that the connection is anonymous. The filter has the option of modifying these data (but must not write outside the buffers), e.g. decoding the password, or checking it is correct for the given user.
The fields come in two pairs: one pair provides access to the username, the other to the password. In each case, the first field in the pair is a pointer to the start of a buffer; the second is the size, in bytes, of that buffer. This size is guaranteed to be at least SF_MAX_USERNAME or SF_MAX_PASSWORD, as appropriate.
isapi(7),
HttpFilterProc(3),
HTTP_FILTER_CONTEXT(5).
$ZEUSHOME/web/include/httpfilt.h $ZEUSHOME/web/include/wintypes.h $ZEUSHOME/webadmin/docroot/docs/modules/isapi/*.html
Copyright (C) 2000-2001 Zeus Technology Limited. All rights reserved.