Next: microhttpd-dauth digest, Up: microhttpd-dauth [Contents][Index]
Free the memory given at ptr
. Used to free data structures allocated by MHD. Calls free(ptr)
.
Get the username and password from the basic authorization header sent by the client.
Return NULL
if no username could be found, a pointer to the username if found.
If returned value is not NULL
, the value must be MHD_free()
’ed.
password reference a buffer to store the password. It can be NULL
.
If returned value is not NULL
, the value must be MHD_free()
’ed.
Queues a response to request basic authentication from the client.
Return MHD_YES
if successful, otherwise MHD_NO
.
realm must reference to a zero-terminated string representing the realm.
response a response structure to specify what shall be presented to the client with a 401 HTTP status.