Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
KHTTPBASIC_VALIDATE(3)	 BSD Library Functions Manual	KHTTPBASIC_VALIDATE(3)

NAME
     khttpbasic_validate -- validate an	HTTP basic authorisation request

LIBRARY
     library "libkcgi"

SYNOPSIS
     #include <stdarg.h>
     #include <stdint.h>
     #include <unistd.h>
     #include <kcgi.h>

     int
     khttpbasic_validate(struct	kreq *req, const char *user,
	 const char *password);

DESCRIPTION
     The khttpbasic_validate function validates	the given user and password
     with the HTTP basic-authorised request req	as returned by khttp_parse(3)
     or	khttp_fcgi_parse(3).

RETURN VALUES
     khttpbasic_validate will return zero if validation	failed,	less than zero
     if	the request was	not properly set up for	HTTP basic validation, or
     greater than zero if the validation succeeded.

SEE ALSO
     kcgi(3), khttp_fcgi_parse(3), khttp_parse(3), khttpdigest_validate

AUTHORS
     The khttpbasic_validate function was written by Kristaps Dzonsons
     <kristaps@bsd.lv>.

BSD			       October 12, 2016				   BSD

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUES | SEE ALSO | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=khttpbasic_validate&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help