#include <stdio.h>
#include "../../dprint.h"
#include "../../timer.h"
#include "index.h"
#include "auth_mod.h"

Go to the source code of this file.
Defines | |
| #define | check_buf_bit(index) ( nonce_buf[index>>3] & (1<<(index%8)) ) |
| #define | set_buf_bit(index) |
| #define | unset_buf_bit(index) |
Functions | |
| int | is_nonce_index_valid (int index) |
| Check if the nonce has been used before. | |
| int | reserve_nonce_index (void) |
| Get valid index for nonce. | |
Definition in file index.c.
| #define check_buf_bit | ( | index | ) | ( nonce_buf[index>>3] & (1<<(index%8)) ) |
| #define set_buf_bit | ( | index | ) |
Value:
do{\ nonce_buf[index>>3] |= (1<<(index%8));\ }while(0)
Definition at line 40 of file index.c.
Referenced by is_nonce_index_valid().
| #define unset_buf_bit | ( | index | ) |
Value:
do{\ nonce_buf[index>>3] &= ~(1<<(index%8));\ }while(0)
Definition at line 45 of file index.c.
Referenced by reserve_nonce_index().
| int is_nonce_index_valid | ( | int | index | ) |
Check if the nonce has been used before.
| index | index |
Definition at line 139 of file index.c.
References check_buf_bit, LM_DBG, LM_ERR, MAX_NONCE_INDEX, next_index, nonce_lock, sec_monit, second, and set_buf_bit.
Referenced by post_auth().
| int reserve_nonce_index | ( | void | ) |
Get valid index for nonce.
Definition at line 57 of file index.c.
References get_ticks(), LM_DBG, LM_INFO, MAX_NONCE_INDEX, next_index, nonce_expire, nonce_lock, sec_monit, second, and unset_buf_bit.
Referenced by build_auth_hf().
1.5.6