BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJLIB-UTIL Reference

pj_http_auth_cred Struct Reference

Data Fields

pj_str_t scheme
 
pj_str_t realm
 
pj_str_t username
 
unsigned data_type
 
pj_str_t data
 

Detailed Description

Structure to save HTTP authentication credential.

Field Documentation

pj_str_t pj_http_auth_cred::data

Specify authentication password. The encoding of the password depends on the value of data_type field above.

Default is empty.

unsigned pj_http_auth_cred::data_type

The type of password in data field. Currently only 0 is supported, meaning the data contains plain-text password.

Default is 0.

pj_str_t pj_http_auth_cred::realm

Specify specific authentication realm to be responded. If this field is set, only 401/407 response with matching realm will be responded. If this field is not set, any realms will be responded.

Default is empty.

pj_str_t pj_http_auth_cred::scheme

Specify specific authentication schemes to be responded. Valid values are "basic" and "digest". If this field is not set, any authentication schemes will be responded.

Default is empty.

pj_str_t pj_http_auth_cred::username

Specify authentication username.

Default is empty.


The documentation for this struct was generated from the following file:

 


PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.