GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  KHTTPDIGEST_VALIDATE (3)

NAME

khttpdigest_validate, khttpdigest_validatehash - validate an HTTP digest request

CONTENTS

Library
Synopsis
Description
Return Values
See Also
Authors

LIBRARY


.Lb libkcgi

SYNOPSIS


.In stdint.h
.In kcgi.h int
.Fo khttpdigest_validate struct kreq *req const char *password
.Fc int
.Fo khttpdigest_validatehash struct kreq *req const char *hash
.Fc

DESCRIPTION

The khttpdigest_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 khttpdigest_validate function will compute a hash from the request and password; the khttpdigest_validatehash operates on a pre-computed hash value.

RETURN VALUES

khttpdigest_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, or greater than zero if the validation succeeded.

SEE ALSO

kcgi(3), khttp_fcgi_parse(3), khttp_parse(3), khttpbasic_validate(3)

AUTHORS

The khttpdigest_validate and khttpdigest_validatehash functions were written by
.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv .
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.