PageRenderTime 26ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/include/osipparser2/headers/osip_proxy_authorization.h

#
C Header | 251 lines | 47 code | 14 blank | 190 comment | 0 complexity | 8711a9b6ad7882e4b43314a4ce01ef6d MD5 | raw file
Possible License(s): LGPL-2.0
  1. /*
  2. The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
  3. Copyright (C) 2001-2012 Aymeric MOIZARD amoizard@antisip.com
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with this library; if not, write to the Free Software
  14. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  15. */
  16. #ifndef _OSIP_PROXY_AUHTHORIZATION_H_
  17. #define _OSIP_PROXY_AUHTHORIZATION_H_
  18. #include <osipparser2/headers/osip_authorization.h>
  19. /**
  20. * @file osip_proxy_authorization.h
  21. * @brief oSIP osip_proxy_authorization header definition.
  22. */
  23. /**
  24. * @defgroup oSIP_PROXY_AUTHORIZATION oSIP proxy-authorization header definition.
  25. * @ingroup oSIP_HEADERS
  26. * @{
  27. */
  28. /**
  29. * Structure for Proxy-Authorization headers.
  30. * @var osip_proxy_authorization_t
  31. */
  32. typedef osip_authorization_t osip_proxy_authorization_t;
  33. #ifdef __cplusplus
  34. extern "C"
  35. {
  36. #endif
  37. /**
  38. * Allocate a Proxy-Authorization element.
  39. * @param header The element to work on.
  40. */
  41. #define osip_proxy_authorization_init(header) osip_authorization_init(header)
  42. /**
  43. * Parse a Proxy-Authorization element.
  44. * @param header The element to work on.
  45. * @param hvalue The string to parse.
  46. */
  47. #define osip_proxy_authorization_parse(header, hvalue) osip_authorization_parse(header, hvalue)
  48. /**
  49. * Get a string representation of a Proxy-Authorization element.
  50. * @param header The element to work on.
  51. * @param dest A pointer on the new allocated string.
  52. */
  53. #define osip_proxy_authorization_to_str(header, dest) osip_authorization_to_str(header, dest)
  54. /**
  55. * Free a Proxy-Authorization element.
  56. * @param header The element to work on.
  57. */
  58. #define osip_proxy_authorization_free osip_authorization_free
  59. /**
  60. * Clone a Proxy-Authorization element.
  61. * @param header The element to work on.
  62. * @param dest A pointer on the copy of the element.
  63. */
  64. #define osip_proxy_authorization_clone osip_authorization_clone
  65. /**
  66. * Get value of the auth_type parameter from a Proxy-Authorization element.
  67. * @param header The element to work on.
  68. */
  69. #define osip_proxy_authorization_get_auth_type(header) osip_authorization_get_auth_type(header)
  70. /**
  71. * Add the auth_type parameter from a Proxy-Authorization element.
  72. * @param header The element to work on.
  73. * @param value The value of the new parameter.
  74. */
  75. #define osip_proxy_authorization_set_auth_type(header, value) osip_authorization_set_auth_type(header, value)
  76. /**
  77. * Get value of the username parameter from a Proxy-Authorization element.
  78. * @param header The element to work on.
  79. */
  80. #define osip_proxy_authorization_get_username(header) osip_authorization_get_username(header)
  81. /**
  82. * Add the username parameter from a Proxy-Authorization element.
  83. * @param header The element to work on.
  84. * @param value The value of the new parameter.
  85. */
  86. #define osip_proxy_authorization_set_username(header, value) osip_authorization_set_username(header, value)
  87. /**
  88. * Get value of the realm parameter from a Proxy-Authorization element.
  89. * @param header The element to work on.
  90. */
  91. #define osip_proxy_authorization_get_realm(header) osip_authorization_get_realm(header)
  92. /**
  93. * Add the realm parameter from a Proxy-Authorization element.
  94. * @param header The element to work on.
  95. * @param value The value of the new parameter.
  96. */
  97. #define osip_proxy_authorization_set_realm(header, value) osip_authorization_set_realm(header, value)
  98. /**
  99. * Get value of the nonce parameter from a Proxy-Authorization element.
  100. * @param header The element to work on.
  101. */
  102. #define osip_proxy_authorization_get_nonce(header) osip_authorization_get_nonce(header)
  103. /**
  104. * Add the nonce parameter from a Proxy-Authorization element.
  105. * @param header The element to work on.
  106. * @param value The value of the new parameter.
  107. */
  108. #define osip_proxy_authorization_set_nonce(header, value) osip_authorization_set_nonce(header, value)
  109. /**
  110. * Get value of the uri parameter from a Proxy-Authorization element.
  111. * @param header The element to work on.
  112. */
  113. #define osip_proxy_authorization_get_uri(header) osip_authorization_get_uri(header)
  114. /**
  115. * Add the uri parameter from a Proxy-Authorization element.
  116. * @param header The element to work on.
  117. * @param value The value of the new parameter.
  118. */
  119. #define osip_proxy_authorization_set_uri(header, value) osip_authorization_set_uri(header, value)
  120. /**
  121. * Get value of the response parameter from a Proxy-Authorization element.
  122. * @param header The element to work on.
  123. */
  124. #define osip_proxy_authorization_get_response(header) osip_authorization_get_response(header)
  125. /**
  126. * Add the response parameter from a Proxy-Authorization element.
  127. * @param header The element to work on.
  128. * @param value The value of the new parameter.
  129. */
  130. #define osip_proxy_authorization_set_response(header, value) osip_authorization_set_response(header, value)
  131. /**
  132. * Get value of the digest parameter from a Proxy-Authorization element.
  133. * @param header The element to work on.
  134. */
  135. #define osip_proxy_authorization_get_digest(header) osip_authorization_get_digest(header)
  136. /**
  137. * Add the digest parameter from a Proxy-Authorization element.
  138. * @param header The element to work on.
  139. * @param value The value of the new parameter.
  140. */
  141. #define osip_proxy_authorization_set_digest(header, value) osip_authorization_set_digest(header, value)
  142. /**
  143. * Get value of the algorithm parameter from a Proxy-Authorization element.
  144. * @param header The element to work on.
  145. */
  146. #define osip_proxy_authorization_get_algorithm(header) osip_authorization_get_algorithm(header)
  147. /**
  148. * Add the algorithm parameter from a Proxy-Authorization element.
  149. * @param header The element to work on.
  150. * @param value The value of the new parameter.
  151. */
  152. #define osip_proxy_authorization_set_algorithm(header,value) osip_authorization_set_algorithm(header,value)
  153. /**
  154. * Get value of the cnonce parameter from a Proxy-Authorization element.
  155. * @param header The element to work on.
  156. */
  157. #define osip_proxy_authorization_get_cnonce(header) osip_authorization_get_cnonce(header)
  158. /**
  159. * Add the cnonce parameter from a Proxy-Authorization element.
  160. * @param header The element to work on.
  161. * @param value The value of the new parameter.
  162. */
  163. #define osip_proxy_authorization_set_cnonce(header, value) osip_authorization_set_cnonce(header, value)
  164. /**
  165. * Get value of the opaque parameter from a Proxy-Authorization element.
  166. * @param header The element to work on.
  167. */
  168. #define osip_proxy_authorization_get_opaque(header) osip_authorization_get_opaque(header)
  169. /**
  170. * Add the opaque parameter from a Proxy-Authorization element.
  171. * @param header The element to work on.
  172. * @param value The value of the new parameter.
  173. */
  174. #define osip_proxy_authorization_set_opaque(header, value) osip_authorization_set_opaque(header, value)
  175. /**
  176. * Get value of the message_qop parameter from a Proxy-Authorization element.
  177. * @param header The element to work on.
  178. */
  179. #define osip_proxy_authorization_get_message_qop(header) osip_authorization_get_message_qop(header)
  180. /**
  181. * Add the message_qop parameter from a Proxy-Authorization element.
  182. * @param header The element to work on.
  183. * @param value The value of the new parameter.
  184. */
  185. #define osip_proxy_authorization_set_message_qop(header, value) osip_authorization_set_message_qop(header, value)
  186. /**
  187. * Get value of the nonce_count parameter from a Proxy-Authorization element.
  188. * @param header The element to work on.
  189. */
  190. #define osip_proxy_authorization_get_nonce_count(header) osip_authorization_get_nonce_count(header)
  191. /**
  192. * Add the nonce_count parameter from a Proxy-Authorization element.
  193. * @param header The element to work on.
  194. * @param value The value of the new parameter.
  195. */
  196. #define osip_proxy_authorization_set_nonce_count(header, value) osip_authorization_set_nonce_count(header, value)
  197. /**
  198. * Get value of the version parameter from a Proxy-Authorization element.
  199. * @param header The element to work on.
  200. */
  201. #define osip_proxy_authorization_get_version(header) osip_authorization_get_version(header)
  202. /**
  203. * Add the version parameter from a Proxy-Authorization element.
  204. * @param header The element to work on.
  205. * @param value The value of the new parameter.
  206. */
  207. #define osip_proxy_authorization_set_version(header, value) osip_authorization_set_version(header, value)
  208. /**
  209. * Get value of the targetname parameter from a Proxy-Authorization element.
  210. * @param header The element to work on.
  211. */
  212. #define osip_proxy_authorization_get_targetname(header) osip_authorization_get_targetname(header)
  213. /**
  214. * Add the targetname parameter from a Proxy-Authorization element.
  215. * @param header The element to work on.
  216. * @param value The value of the new parameter.
  217. */
  218. #define osip_proxy_authorization_set_targetname(header, value) osip_authorization_set_targetname(header, value)
  219. /**
  220. * Get value of the gssapi_data parameter from a Proxy-Authorization element.
  221. * @param header The element to work on.
  222. */
  223. #define osip_proxy_authorization_get_gssapi_data(header) osip_authorization_get_gssapi_data(header)
  224. /**
  225. * Add the gssapi_data parameter from a Proxy-Authorization element.
  226. * @param header The element to work on.
  227. * @param value The value of the new parameter.
  228. */
  229. #define osip_proxy_authorization_set_gssapi_data(header, value) osip_authorization_set_gssapi_data(header, value)
  230. #ifdef __cplusplus
  231. }
  232. #endif
  233. /** @} */
  234. #endif