Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

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  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 
00042   struct osip_authentication_info
00043   {
00044     char *nextnonce;    /* optional */
00045     char *qop_options;  /* optional */
00046     char *rspauth;      /* optional */
00047     char *cnonce;       /* optional */
00048     char *nonce_count;  /* optional */
00049   };
00050 
00051 
00052 #ifdef __cplusplus
00053 extern "C"
00054 {
00055 #endif
00056 
00061   int osip_authentication_info_init (osip_authentication_info_t ** header);
00067   int osip_authentication_info_parse (osip_authentication_info_t * header, const char *hvalue);
00073   int osip_authentication_info_to_str (const osip_authentication_info_t * header, char **dest);
00078   void osip_authentication_info_free (osip_authentication_info_t * header);
00084   int osip_authentication_info_clone (const osip_authentication_info_t * header,
00085                               osip_authentication_info_t ** dest);
00086 
00087 
00092   char *osip_authentication_info_get_nextnonce (osip_authentication_info_t * header);
00098   void osip_authentication_info_set_nextnonce (osip_authentication_info_t * header, char *value);
00103   char *osip_authentication_info_get_cnonce (osip_authentication_info_t * header);
00109   void osip_authentication_info_set_cnonce (osip_authentication_info_t * header, char *value);
00114   char *osip_authentication_info_get_qop_options (osip_authentication_info_t * header);
00120   void osip_authentication_info_set_qop_options (osip_authentication_info_t * header,
00121                                         char *value);
00126   char *osip_authentication_info_get_rspauth (osip_authentication_info_t * header);
00132   void osip_authentication_info_set_rspauth (osip_authentication_info_t * header, char *value);
00137   char *osip_authentication_info_get_nonce_count (osip_authentication_info_t * header);
00143   void osip_authentication_info_set_nonce_count (osip_authentication_info_t * header, char *value);
00144 
00145 
00146 #ifdef __cplusplus
00147 }
00148 #endif
00149 
00152 #endif

Generated on Tue Feb 22 00:59:46 2005 for libosip by  doxygen 1.4.1