2 The oSIP library implements the Session Initiation Protocol (SIP -rfc2543-)
3 Copyright (C) 2001 Aymeric MOIZARD jack@atosc.org
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.
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.
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
21 #ifndef _OSIP_PROXY_AUHTHENTICATE_H_
22 #define _OSIP_PROXY_AUHTHENTICATE_H_
24 #include <osipparser2/headers/osip_www_authenticate.h>
27 * @file osip_proxy_authenticate.h
28 * @brief oSIP osip_proxy_authenticate header definition.
32 * @defgroup oSIP_PROXY_AUTHENTICATE oSIP proxy-authenticate header definition.
33 * @ingroup oSIP_HEADERS
38 * Structure for Proxy-Authenticate headers.
39 * @defvar osip_proxy_authenticate_t
41 typedef osip_www_authenticate_t osip_proxy_authenticate_t;
49 * Allocate a Proxy-Authenticate element.
50 * @param header The element to work on.
52 #define osip_proxy_authenticate_init(header) osip_www_authenticate_init(header)
54 * Parse a Proxy-Authenticate element.
55 * @param header The element to work on.
56 * @param hvalue The string to parse.
58 #define osip_proxy_authenticate_parse(header, hvalue) osip_www_authenticate_parse(header, hvalue)
60 * Get a string representation of a Proxy-Authenticate element.
61 * @param header The element to work on.
62 * @param dest A pointer on the new allocated string.
64 #define osip_proxy_authenticate_to_str(header, dest) osip_www_authenticate_to_str(header, dest)
66 * Free a Proxy-Authenticate element.
67 * @param header The element to work on.
69 #define osip_proxy_authenticate_free(header) osip_www_authenticate_free(header)
71 * Clone a Proxy-Authenticate element.
72 * @param header The element to work on.
73 * @param dest A pointer on the copy of the element.
75 #define osip_proxy_authenticate_clone(header, dest) osip_www_authenticate_clone(header, dest)
78 * Get value of the auth_type parameter from a Proxy-Authenticate element.
79 * @param header The element to work on.
81 #define osip_proxy_authenticate_get_auth_type(header) osip_www_authenticate_get_auth_type(header)
83 * Add the auth_type parameter from a Proxy-Authenticate element.
84 * @param header The element to work on.
85 * @param value The value of the new parameter.
87 #define osip_proxy_authenticate_set_auth_type(header,value) osip_www_authenticate_set_auth_type(header, value)
89 * Get value of the realm parameter from a Proxy-Authenticate element.
90 * @param header The element to work on.
92 #define osip_proxy_authenticate_get_realm(header) osip_www_authenticate_get_realm(header)
94 * Add the realm parameter from a Proxy-Authenticate element.
95 * @param header The element to work on.
96 * @param value The value of the new parameter.
98 #define osip_proxy_authenticate_set_realm(header, value) osip_www_authenticate_set_realm(header, value)
100 * Get value of the domain parameter from a Proxy-Authenticate element.
101 * @param header The element to work on.
103 #define osip_proxy_authenticate_get_domain(header) osip_www_authenticate_get_domain(header)
105 * Add the domain parameter from a Proxy-Authenticate element.
106 * @param header The element to work on.
107 * @param value The value of the new parameter.
109 #define osip_proxy_authenticate_set_domain(header, value) osip_www_authenticate_set_domain(header, value)
111 * Get value of the nonce parameter from a Proxy-Authenticate element.
112 * @param header The element to work on.
114 #define osip_proxy_authenticate_get_nonce(header) osip_www_authenticate_get_nonce(header)
116 * Add the nonce parameter from a Proxy-Authenticate element.
117 * @param header The element to work on.
118 * @param value The value of the new parameter.
120 #define osip_proxy_authenticate_set_nonce(header, value) osip_www_authenticate_set_nonce(header, value)
122 * Get value of the opaque parameter from a Proxy-Authenticate element.
123 * @param header The element to work on.
125 #define osip_proxy_authenticate_get_opaque(header) osip_www_authenticate_get_opaque(header)
127 * Add the opaque parameter from a Proxy-Authenticate element.
128 * @param header The element to work on.
129 * @param value The value of the new parameter.
131 #define osip_proxy_authenticate_set_opaque(header, value) osip_www_authenticate_set_opaque(header, value)
133 * Get value of the stale parameter from a Proxy-Authenticate element.
134 * @param header The element to work on.
136 #define osip_proxy_authenticate_get_stale(header) osip_www_authenticate_get_stale(header)
138 * Add the stale parameter from a Proxy-Authenticate element.
139 * @param header The element to work on.
140 * @param value The value of the new parameter.
142 #define osip_proxy_authenticate_set_stale(header, value) osip_www_authenticate_set_stale(header, value)
144 * Add a stale parameter set to "true" in a proxy-Authenticate element.
145 * @param header The element to work on.
147 #define osip_proxy_authenticate_set_stale_true(header) osip_www_authenticate_set_stale(header,osip_strdup("true"))
149 * Add a stale parameter set to "false" in a Proxy-Authenticate element.
150 * @param header The element to work on.
152 #define osip_proxy_authenticate_set_stale_false(header) osip_www_authenticate_set_stale(header,osip_strdup("false"))
154 * Get value of the algorithm parameter from a Proxy-Authenticate element.
155 * @param header The element to work on.
157 #define osip_proxy_authenticate_get_algorithm(header) osip_www_authenticate_get_algorithm(header)
159 * Add the algorithm parameter from a Proxy-Authenticate element.
160 * @param header The element to work on.
161 * @param value The value of the new parameter.
163 #define osip_proxy_authenticate_set_algorithm(header, value) osip_www_authenticate_set_algorithm(header, value)
165 * Add the algorithm parameter set to "MD5" in a Proxy-Authenticate element.
166 * @param header The element to work on.
168 #define osip_proxy_authenticate_set_algorithm_MD5(header) osip_www_authenticate_set_algorithm(header,osip_strdup("MD5"))
170 * Get value of the qop_options parameter from a Proxy-Authenticate element.
171 * @param header The element to work on.
173 #define osip_proxy_authenticate_get_qop_options(header) osip_www_authenticate_get_qop_options(header)
175 * Add the qop_options parameter from a Proxy-Authenticate element.
176 * @param header The element to work on.
177 * @param value The value of the new parameter.
179 #define osip_proxy_authenticate_set_qop_options(header,value) osip_www_authenticate_set_qop_options(header,value)