auth_mod.h

Go to the documentation of this file.
00001 /*
00002  * $Id: auth_mod.h 5211 2008-11-17 20:05:27Z henningw $
00003  *
00004  * Copyright (C) 2001-2003 FhG Fokus
00005  *
00006  * This file is part of Kamailio, a free SIP server.
00007  *
00008  * Kamailio is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version
00012  *
00013  * Kamailio is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License 
00019  * along with this program; if not, write to the Free Software 
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  *
00022  * History:
00023  * --------
00024  * 2003-04-28 rpid contributed by Juha Heinanen added (janakj)
00025  */
00026 
00027 /*!
00028  * \file
00029  * \brief Digest Authentication Module
00030  * \ingroup auth
00031  * - Module: \ref auth
00032  */
00033 
00034 #ifndef AUTH_MOD_H
00035 #define AUTH_MOD_H
00036 
00037 #include "../../str.h"
00038 #include "../../parser/msg_parser.h"    /* struct sip_msg */
00039 #include "../sl/sl_api.h"
00040 #include "../../lock_ops.h"
00041 
00042 #define MAX_NONCE_INDEX     100000
00043 #define NBUF_LEN            (MAX_NONCE_INDEX>>3) /*!< nonce buffer length */
00044 
00045 /*
00046  * Module parameters variables
00047  */
00048 extern str secret;            /*!< secret phrase used to generate nonce */
00049 extern unsigned int nonce_expire; /*!< nonce expire interval */
00050 extern str rpid_prefix;       /*!< Remote-Party-ID prefix */
00051 extern str rpid_suffix;       /*!< Remote-Party-ID suffix */
00052 extern str realm_prefix;      /*!< strip off auto-generated realm */
00053 
00054 /*! SL binds */
00055 extern struct sl_binds slb;
00056 
00057 /* nonce index */
00058 extern gen_lock_t* nonce_lock;
00059 extern char* nonce_buf;
00060 extern int* sec_monit;
00061 extern int* second;
00062 extern int* next_index;
00063 extern int nonce_reuse;
00064 
00065 #endif

Generated on Thu May 17 12:00:25 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6