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_AUHTHORIZATION_H_
22 #define _OSIP_PROXY_AUHTHORIZATION_H_
24 #include <osipparser2/headers/osip_authorization.h>
27 * @file osip_proxy_authorization.h
28 * @brief oSIP osip_proxy_authorization header definition.
32 * @defgroup oSIP_PROXY_AUTHORIZATION oSIP proxy-authorization header definition.
33 * @ingroup oSIP_HEADERS
38 * Structure for Proxy-Authorization headers.
39 * @defvar osip_proxy_authorization_t
41 typedef osip_authorization_t osip_proxy_authorization_t;
50 * Allocate a Proxy-Authorization element.
51 * @param header The element to work on.
53 #define osip_proxy_authorization_init(header) osip_authorization_init(header)
55 * Parse a Proxy-Authorization element.
56 * @param header The element to work on.
57 * @param hvalue The string to parse.
59 #define osip_proxy_authorization_parse(header, hvalue) osip_authorization_parse(header, hvalue)
61 * Get a string representation of a Proxy-Authorization element.
62 * @param header The element to work on.
63 * @param dest A pointer on the new allocated string.
65 #define osip_proxy_authorization_to_str(header, dest) osip_authorization_to_str(header, dest)
67 * Free a Proxy-Authorization element.
68 * @param header The element to work on.
70 #define osip_proxy_authorization_free(header) osip_authorization_free(header)
72 * Clone a Proxy-Authorization element.
73 * @param header The element to work on.
74 * @param dest A pointer on the copy of the element.
76 #define osip_proxy_authorization_clone(header, dest) osip_authorization_clone(header, dest)
79 * Get value of the auth_type parameter from a Proxy-Authorization element.
80 * @param header The element to work on.
82 #define osip_proxy_authorization_get_auth_type(header) osip_authorization_get_auth_type(header)
84 * Add the auth_type parameter from a Proxy-Authorization element.
85 * @param header The element to work on.
86 * @param value The value of the new parameter.
88 #define osip_proxy_authorization_set_auth_type(header, value) osip_authorization_set_auth_type(header, value)
90 * Get value of the username parameter from a Proxy-Authorization element.
91 * @param header The element to work on.
93 #define osip_proxy_authorization_get_username(header) osip_authorization_get_username(header)
95 * Add the username parameter from a Proxy-Authorization element.
96 * @param header The element to work on.
97 * @param value The value of the new parameter.
99 #define osip_proxy_authorization_set_username(header, value) osip_authorization_set_username(header, value)
101 * Get value of the realm parameter from a Proxy-Authorization element.
102 * @param header The element to work on.
104 #define osip_proxy_authorization_get_realm(header) osip_authorization_get_realm(header)
106 * Add the realm parameter from a Proxy-Authorization element.
107 * @param header The element to work on.
108 * @param value The value of the new parameter.
110 #define osip_proxy_authorization_set_realm(header, value) osip_authorization_set_realm(header, value)
112 * Get value of the nonce parameter from a Proxy-Authorization element.
113 * @param header The element to work on.
115 #define osip_proxy_authorization_get_nonce(header) osip_authorization_get_nonce(header)
117 * Add the nonce parameter from a Proxy-Authorization element.
118 * @param header The element to work on.
119 * @param value The value of the new parameter.
121 #define osip_proxy_authorization_set_nonce(header, value) osip_authorization_set_nonce(header, value)
123 * Get value of the uri parameter from a Proxy-Authorization element.
124 * @param header The element to work on.
126 #define osip_proxy_authorization_get_uri(header) osip_authorization_get_uri(header)
128 * Add the uri parameter from a Proxy-Authorization element.
129 * @param header The element to work on.
130 * @param value The value of the new parameter.
132 #define osip_proxy_authorization_set_uri(header, value) osip_authorization_set_uri(header, value)
134 * Get value of the response parameter from a Proxy-Authorization element.
135 * @param header The element to work on.
137 #define osip_proxy_authorization_get_response(header) osip_authorization_get_response(header)
139 * Add the response parameter from a Proxy-Authorization element.
140 * @param header The element to work on.
141 * @param value The value of the new parameter.
143 #define osip_proxy_authorization_set_response(header, value) osip_authorization_set_response(header, value)
145 * Get value of the digest parameter from a Proxy-Authorization element.
146 * @param header The element to work on.
148 #define osip_proxy_authorization_get_digest(header) osip_authorization_get_digest(header)
150 * Add the digest parameter from a Proxy-Authorization element.
151 * @param header The element to work on.
152 * @param value The value of the new parameter.
154 #define osip_proxy_authorization_set_digest(header, value) osip_authorization_set_digest(header, value)
156 * Get value of the algorithm parameter from a Proxy-Authorization element.
157 * @param header The element to work on.
159 #define osip_proxy_authorization_get_algorithm(header) osip_authorization_get_algorithm(header)
161 * Add the algorithm parameter from a Proxy-Authorization element.
162 * @param header The element to work on.
163 * @param value The value of the new parameter.
165 #define osip_proxy_authorization_set_algorithm(header,value) osip_authorization_set_algorithm(header,value)
167 * Get value of the cnonce parameter from a Proxy-Authorization element.
168 * @param header The element to work on.
170 #define osip_proxy_authorization_get_cnonce(header) osip_authorization_get_cnonce(header)
172 * Add the cnonce parameter from a Proxy-Authorization element.
173 * @param header The element to work on.
174 * @param value The value of the new parameter.
176 #define osip_proxy_authorization_set_cnonce(header, value) osip_authorization_set_cnonce(header, value)
178 * Get value of the opaque parameter from a Proxy-Authorization element.
179 * @param header The element to work on.
181 #define osip_proxy_authorization_get_opaque(header) osip_authorization_get_opaque(header)
183 * Add the opaque parameter from a Proxy-Authorization element.
184 * @param header The element to work on.
185 * @param value The value of the new parameter.
187 #define osip_proxy_authorization_set_opaque(header, value) osip_authorization_set_opaque(header, value)
189 * Get value of the message_qop parameter from a Proxy-Authorization element.
190 * @param header The element to work on.
192 #define osip_proxy_authorization_get_message_qop(header) osip_authorization_get_message_qop(header)
194 * Add the message_qop parameter from a Proxy-Authorization element.
195 * @param header The element to work on.
196 * @param value The value of the new parameter.
198 #define osip_proxy_authorization_set_message_qop(header, value) osip_authorization_set_message_qop(header, value)
200 * Get value of the nonce_count parameter from a Proxy-Authorization element.
201 * @param header The element to work on.
203 #define osip_proxy_authorization_get_nonce_count(header) osip_authorization_get_nonce_count(header)
205 * Add the nonce_count parameter from a Proxy-Authorization element.
206 * @param header The element to work on.
207 * @param value The value of the new parameter.
209 #define osip_proxy_authorization_set_nonce_count(header, value) osip_authorization_set_nonce_count(header, value)