osip_authentication_info.h

Go to the documentation of this file.
00001 /*
00002   The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
00003   Copyright (C) 2001,2002,2003,2004,2005,2006,2007 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_AUTHENTICATION_INFO_H_
00022 #define _OSIP_AUTHENTICATION_INFO_H_
00023 
00024 
00040   typedef struct osip_authentication_info osip_authentication_info_t;
00041 
00046   struct osip_authentication_info
00047   {
00048     char *nextnonce;    
00049     char *qop_options;  
00050     char *rspauth;      
00051     char *cnonce;       
00052     char *nonce_count;  
00053   };
00054 
00055 
00056 #ifdef __cplusplus
00057 extern "C"
00058 {
00059 #endif
00060 
00065   int osip_authentication_info_init (osip_authentication_info_t ** header);
00071   int osip_authentication_info_parse (osip_authentication_info_t * header, const char *hvalue);
00077   int osip_authentication_info_to_str (const osip_authentication_info_t * header, char **dest);
00082   void osip_authentication_info_free (osip_authentication_info_t * header);
00088   int osip_authentication_info_clone (const osip_authentication_info_t * header,
00089                               osip_authentication_info_t ** dest);
00090 
00091 
00096   char *osip_authentication_info_get_nextnonce (osip_authentication_info_t * header);
00102   void osip_authentication_info_set_nextnonce (osip_authentication_info_t * header, char *value);
00107   char *osip_authentication_info_get_cnonce (osip_authentication_info_t * header);
00113   void osip_authentication_info_set_cnonce (osip_authentication_info_t * header, char *value);
00118   char *osip_authentication_info_get_qop_options (osip_authentication_info_t * header);
00124   void osip_authentication_info_set_qop_options (osip_authentication_info_t * header,
00125                                         char *value);
00130   char *osip_authentication_info_get_rspauth (osip_authentication_info_t * header);
00136   void osip_authentication_info_set_rspauth (osip_authentication_info_t * header, char *value);
00141   char *osip_authentication_info_get_nonce_count (osip_authentication_info_t * header);
00147   void osip_authentication_info_set_nonce_count (osip_authentication_info_t * header, char *value);
00148 
00149 
00150 #ifdef __cplusplus
00151 }
00152 #endif
00153 
00156 #endif

Generated on Wed Feb 13 01:03:29 2008 for libosip by  doxygen 1.5.4