00001 /* 00002 The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-) 00003 Copyright (C) 2001,2002,2003,2004,2005 Aymeric MOIZARD jack@atosc.org 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 */ 00019 00020 00021 #ifndef _OSIP_PROXY_AUHTHENTICATE_H_ 00022 #define _OSIP_PROXY_AUHTHENTICATE_H_ 00023 00024 #include <osipparser2/headers/osip_www_authenticate.h> 00025 00041 typedef osip_www_authenticate_t osip_proxy_authenticate_t; 00042 00043 #ifdef __cplusplus 00044 extern "C" 00045 { 00046 #endif 00047 00052 #define osip_proxy_authenticate_init(header) osip_www_authenticate_init(header) 00053 00058 #define osip_proxy_authenticate_parse(header, hvalue) osip_www_authenticate_parse(header, hvalue) 00059 00064 #define osip_proxy_authenticate_to_str(header, dest) osip_www_authenticate_to_str(header, dest) 00065 00069 #define osip_proxy_authenticate_free(header) osip_www_authenticate_free(header) 00070 00075 #define osip_proxy_authenticate_clone(header, dest) osip_www_authenticate_clone(header, dest) 00076 00081 #define osip_proxy_authenticate_get_auth_type(header) osip_www_authenticate_get_auth_type(header) 00082 00087 #define osip_proxy_authenticate_set_auth_type(header,value) osip_www_authenticate_set_auth_type(header, value) 00088 00092 #define osip_proxy_authenticate_get_realm(header) osip_www_authenticate_get_realm(header) 00093 00098 #define osip_proxy_authenticate_set_realm(header, value) osip_www_authenticate_set_realm(header, value) 00099 00103 #define osip_proxy_authenticate_get_domain(header) osip_www_authenticate_get_domain(header) 00104 00109 #define osip_proxy_authenticate_set_domain(header, value) osip_www_authenticate_set_domain(header, value) 00110 00114 #define osip_proxy_authenticate_get_nonce(header) osip_www_authenticate_get_nonce(header) 00115 00120 #define osip_proxy_authenticate_set_nonce(header, value) osip_www_authenticate_set_nonce(header, value) 00121 00125 #define osip_proxy_authenticate_get_opaque(header) osip_www_authenticate_get_opaque(header) 00126 00131 #define osip_proxy_authenticate_set_opaque(header, value) osip_www_authenticate_set_opaque(header, value) 00132 00136 #define osip_proxy_authenticate_get_stale(header) osip_www_authenticate_get_stale(header) 00137 00142 #define osip_proxy_authenticate_set_stale(header, value) osip_www_authenticate_set_stale(header, value) 00143 00147 #define osip_proxy_authenticate_set_stale_true(header) osip_www_authenticate_set_stale(header,osip_strdup("true")) 00148 00152 #define osip_proxy_authenticate_set_stale_false(header) osip_www_authenticate_set_stale(header,osip_strdup("false")) 00153 00157 #define osip_proxy_authenticate_get_algorithm(header) osip_www_authenticate_get_algorithm(header) 00158 00163 #define osip_proxy_authenticate_set_algorithm(header, value) osip_www_authenticate_set_algorithm(header, value) 00164 00168 #define osip_proxy_authenticate_set_algorithm_MD5(header) osip_www_authenticate_set_algorithm(header,osip_strdup("MD5")) 00169 00173 #define osip_proxy_authenticate_get_qop_options(header) osip_www_authenticate_get_qop_options(header) 00174 00179 #define osip_proxy_authenticate_set_qop_options(header,value) osip_www_authenticate_set_qop_options(header,value) 00180 00181 00182 #ifdef __cplusplus 00183 } 00184 #endif 00185 00188 #endif