SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
osip_authentication_info.h
Go to the documentation of this file.
1 /*
2  The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
3  Copyright (C) 2001-2012 Aymeric MOIZARD amoizard@antisip.com
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 
20 
21 #ifndef _OSIP_AUTHENTICATION_INFO_H_
22 #define _OSIP_AUTHENTICATION_INFO_H_
23 
24 
41 
47  {
48  char *auth_type;
49  char *nextnonce;
50  char *qop_options;
51  char *rspauth;
52  char *cnonce;
53  char *nonce_count;
54  char *snum;
55  char *srand;
56  char *realm;
57  char *targetname;
58  char *opaque;
59  };
60 
61 
62 #ifdef __cplusplus
63 extern "C"
64 {
65 #endif
66 
77  int osip_authentication_info_parse (osip_authentication_info_t * header, const char *hvalue);
83  int osip_authentication_info_to_str (const osip_authentication_info_t * header, char **dest);
96 
97 
142  char *value);
220 
221 #ifdef __cplusplus
222 }
223 #endif
224 
227 #endif
int osip_authentication_info_to_str(const osip_authentication_info_t *header, char **dest)
Get a string representation of a Authenication-Info element.
int osip_authentication_info_clone(const osip_authentication_info_t *header, osip_authentication_info_t **dest)
Clone a Authenication-Info element.
void osip_authentication_info_set_auth_type(osip_authentication_info_t *header, char *value)
Add the auth_type parameter from a Authenication-Info element.
void osip_authentication_info_set_nonce_count(osip_authentication_info_t *header, char *value)
Add the nc parameter from a Authenication-Info element.
void osip_authentication_info_free(osip_authentication_info_t *header)
Free a Authenication-Info element.
char * osip_authentication_info_get_nonce_count(osip_authentication_info_t *header)
Get value of the nc parameter from a Authenication-Info element.
char * auth_type
Authentication Type (Basic or Digest)
void osip_authentication_info_set_nextnonce(osip_authentication_info_t *header, char *value)
Add the nextnonce parameter from a Authenication-Info element.
char * nonce_count
noncecount value
void osip_authentication_info_set_srand(osip_authentication_info_t *header, char *value)
Add the srand parameter from a Authenication-Info element.
void osip_authentication_info_set_rspauth(osip_authentication_info_t *header, char *value)
Add the rspauth parameter from a Authenication-Info element.
void osip_authentication_info_set_qop_options(osip_authentication_info_t *header, char *value)
Add the qop_options parameter from a Authenication-Info element.
char * osip_authentication_info_get_realm(osip_authentication_info_t *header)
Get value of the realm parameter from a Authenication-Info element.
char * targetname
targetname value
char * osip_authentication_info_get_nextnonce(osip_authentication_info_t *header)
Get value of the nextnonce parameter from a Authenication-Info element.
void osip_authentication_info_set_targetname(osip_authentication_info_t *header, char *value)
Add the targetname parameter from a Authenication-Info element.
char * nextnonce
nextnonce value
int osip_authentication_info_init(osip_authentication_info_t **header)
Allocate a Authenication-Info element.
Definition of the Authentication-Info header.
char * qop_options
qop options value
char * osip_authentication_info_get_srand(osip_authentication_info_t *header)
Get value of the srand parameter from a Authenication-Info element.
char * osip_authentication_info_get_targetname(osip_authentication_info_t *header)
Get value of the targetname parameter from a Authenication-Info element.
char * osip_authentication_info_get_qop_options(osip_authentication_info_t *header)
Get value of the qop_options parameter from a Authenication-Info element.
int osip_authentication_info_parse(osip_authentication_info_t *header, const char *hvalue)
Parse a Authenication-Info element.
void osip_authentication_info_set_opaque(osip_authentication_info_t *header, char *value)
Add the opaque parameter from a Authenication-Info element.
char * osip_authentication_info_get_snum(osip_authentication_info_t *header)
Get value of the snum parameter from a Authenication-Info element.
char * value[96]
Definition: cgiserver.cpp:90
char * osip_authentication_info_get_cnonce(osip_authentication_info_t *header)
Get value of the cnonce parameter from a Authenication-Info element.
char * osip_authentication_info_get_opaque(osip_authentication_info_t *header)
Get value of the opaque parameter from a Authenication-Info element.
void osip_authentication_info_set_cnonce(osip_authentication_info_t *header, char *value)
Add the cnonce parameter from a Authenication-Info element.
void osip_authentication_info_set_realm(osip_authentication_info_t *header, char *value)
Add the realm parameter from a Authenication-Info element.
void osip_authentication_info_set_snum(osip_authentication_info_t *header, char *value)
Add the snum parameter from a Authenication-Info element.
char * osip_authentication_info_get_auth_type(osip_authentication_info_t *header)
Get value of the auth_type parameter from a Authenication-Info element.
char * osip_authentication_info_get_rspauth(osip_authentication_info_t *header)
Get value of the rspauth parameter from a Authenication-Info element.