mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-16 06:49:19 +08:00
increased the default cookie rekey time to 3 days
This commit is contained in:
@@ -311,9 +311,8 @@ cookie-timeout = 300
|
|||||||
# Cookie rekey time (in seconds)
|
# Cookie rekey time (in seconds)
|
||||||
# The time after which the key used to encrypt cookies will be
|
# The time after which the key used to encrypt cookies will be
|
||||||
# refreshed. After this time the previous key will also be valid
|
# refreshed. After this time the previous key will also be valid
|
||||||
# for verification. It is recommended not to modify the default
|
# for verification until the next rotation cycle.
|
||||||
# value.
|
cookie-rekey-time = 259200
|
||||||
cookie-rekey-time = 14400
|
|
||||||
|
|
||||||
# If this is enabled (not recommended) the cookies will stay
|
# If this is enabled (not recommended) the cookies will stay
|
||||||
# valid even after a user manually disconnects, and until they
|
# valid even after a user manually disconnects, and until they
|
||||||
|
|||||||
@@ -30,7 +30,8 @@
|
|||||||
|
|
||||||
/* The time after a disconnection the cookie is valid */
|
/* The time after a disconnection the cookie is valid */
|
||||||
#define DEFAULT_COOKIE_RECON_TIMEOUT 120
|
#define DEFAULT_COOKIE_RECON_TIMEOUT 120
|
||||||
#define DEFAULT_COOKIE_REKEY_TIME 14400
|
/* The time after a cookie key is rotated */
|
||||||
|
#define DEFAULT_COOKIE_REKEY_TIME 259200
|
||||||
|
|
||||||
int encrypt_cookie(void *pool, gnutls_datum_t *key, const Cookie *msg,
|
int encrypt_cookie(void *pool, gnutls_datum_t *key, const Cookie *msg,
|
||||||
uint8_t** ecookie, unsigned *ecookie_size);
|
uint8_t** ecookie, unsigned *ecookie_size);
|
||||||
|
|||||||
@@ -405,9 +405,8 @@ cookie-timeout = 300
|
|||||||
# Cookie rekey time (in seconds)
|
# Cookie rekey time (in seconds)
|
||||||
# The time after which the key used to encrypt cookies will be
|
# The time after which the key used to encrypt cookies will be
|
||||||
# refreshed. After this time the previous key will also be valid
|
# refreshed. After this time the previous key will also be valid
|
||||||
# for verification. It is recommended not to modify the default
|
# for verification until the next rotation cycle.
|
||||||
# value.
|
cookie-rekey-time = 259200
|
||||||
cookie-rekey-time = 14400
|
|
||||||
|
|
||||||
# If this is enabled (not recommended) the cookies will stay
|
# If this is enabled (not recommended) the cookies will stay
|
||||||
# valid even after a user manually disconnects, and until they
|
# valid even after a user manually disconnects, and until they
|
||||||
|
|||||||
Reference in New Issue
Block a user