00001 /* 00002 * $Id: index.h 5665 2009-03-03 12:10:47Z henningw $ 00003 * 00004 * Copyright (C)2008 Voice System S.R.L 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 * 2008-05-29 initial version (anca) 00025 */ 00026 00027 /*! 00028 * \file 00029 * \brief Nonce index related functions 00030 * \ingroup auth 00031 * - Module: \ref auth 00032 */ 00033 00034 #ifndef _NONCE_INDEX_H_ 00035 #define _NONCE_INDEX_H_ 00036 00037 /*! 00038 * \brief Get valid index for nonce 00039 * \return index on success, -1 on failure 00040 */ 00041 int reserve_nonce_index(void); 00042 00043 00044 /*! 00045 * \brief Check if the nonce has been used before 00046 * \param index index 00047 * \return 1 if nonce is valid, 0 if not valid or on errors 00048 */ 00049 int is_nonce_index_valid(int index); 00050 00051 #endif
1.5.6