|
NAMEkhttpdigest_validate ,
khttpdigest_validatehash —
validate an HTTP digest request
LIBRARYlibrary “libkcgi”SYNOPSIS#include <sys/types.h>
#include <stdarg.h>
#include <stdint.h>
#include <kcgi.h>
int
int
DESCRIPTIONThekhttpdigest_validate () and
khttpdigest_validatehash () functions validate the
given password (or a pre-combined
hash) with the HTTP digest-authorised request
req as returned by
khttp_parse(3)
or
khttp_fcgi_parse(3).
It fully implements all components of the digest: QOP, MD5 types, etc. It
does not check that the URI component of the digest matches
that of the request, as these values are known to be mutable.
The RETURN VALUESkhttpdigest_validate () and
khttpdigest_validatehash () will return zero if
validation failed, less than zero if the request was not properly set up for
HTTP digest validation (no HTTP method, not a digest request, not already
authenticated by the web server), or greater than zero if the validation
succeeded.
SEE ALSOkcgi(3), khttp_fcgi_parse(3), khttp_parse(3), khttpbasic_validate(3)AUTHORSThekhttpdigest_validate () and
khttpdigest_validatehash () functions were written by
Kristaps Dzonsons
<kristaps@bsd.lv>.
Visit the GSP FreeBSD Man Page Interface. |