Go to the documentation of this file.
115 #define SESSION_ID_PREFIX "SESS_ID_AT_"
#define SESSION_ID_PREFIX
The prefix given to auth tokens start with, this prefix is special cased to not show up in log files ...
void check_send_auth_token(struct context *c)
Checks if the timer to resend the auth-token has expired and if a new auth-token should be send to th...
static bool is_auth_token(const char *password)
Return if the password string has the format of a password.
Contains all state information for one tunnel.
void resend_auth_token_renegotiation(struct tls_multi *multi, struct tls_session *session)
Checks if a client should be sent a new auth token to update its current auth-token.
void add_session_token_env(struct tls_session *session, struct tls_multi *multi, const struct user_pass *up)
Put the session id, and auth token status into the environment if auth-token is enabled.
Security parameter state for a single VPN tunnel.
unsigned verify_auth_token(struct user_pass *up, struct tls_multi *multi, struct tls_session *session)
Verifies the auth token to be in the format that generate_auth_token create and checks if the token i...
Container for one set of cipher and/or HMAC contexts.
void auth_token_write_server_key_file(const char *filename)
Generate a auth-token server secret key, and write to file.
Security parameter state of a single session within a VPN tunnel.
void generate_auth_token(const struct user_pass *up, struct tls_multi *multi)
Generate an auth token based on username and timestamp.
void auth_token_init_secret(struct key_ctx *key_ctx, const char *key_file, bool key_inline)
Loads an HMAC secret from a file or if no file is present generates a epheremal secret for the run ti...
int memcmp_constant_time(const void *a, const void *b, size_t size)
As memcmp(), but constant-time.
void wipe_auth_token(struct tls_multi *multi)
Wipes the authentication token out of the memory, frees and cleans up related buffers and flags.
char password[USER_PASS_LEN]