mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
inline revive_cookie()
This commit is contained in:
@@ -263,11 +263,6 @@ struct cookie_entry_st *find_cookie_entry(struct cookie_entry_db_st* db, void *c
|
|||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|
||||||
void revive_cookie(struct cookie_entry_st * e)
|
|
||||||
{
|
|
||||||
e->expiration = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct cookie_entry_st *new_cookie_entry(struct cookie_entry_db_st* db, proc_st *proc, void *cookie, unsigned cookie_size)
|
struct cookie_entry_st *new_cookie_entry(struct cookie_entry_db_st* db, proc_st *proc, void *cookie, unsigned cookie_size)
|
||||||
{
|
{
|
||||||
struct cookie_entry_st *t;
|
struct cookie_entry_st *t;
|
||||||
|
|||||||
@@ -43,6 +43,9 @@ void expire_cookies(struct cookie_entry_db_st* db);
|
|||||||
struct cookie_entry_st *new_cookie_entry(struct cookie_entry_db_st* db, proc_st *proc, void *cookie, unsigned cookie_size);
|
struct cookie_entry_st *new_cookie_entry(struct cookie_entry_db_st* db, proc_st *proc, void *cookie, unsigned cookie_size);
|
||||||
struct cookie_entry_st *find_cookie_entry(struct cookie_entry_db_st* db, void *cookie, unsigned cookie_len);
|
struct cookie_entry_st *find_cookie_entry(struct cookie_entry_db_st* db, void *cookie, unsigned cookie_len);
|
||||||
|
|
||||||
void revive_cookie(struct cookie_entry_st *);
|
inline static void revive_cookie(struct cookie_entry_st * e)
|
||||||
|
{
|
||||||
|
e->expiration = -1;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user