OpenVPN
Functions | Variables
session_id.c File Reference
#include "syshead.h"
#include "error.h"
#include "common.h"
#include "crypto.h"
#include "session_id.h"
#include "memdbg.h"
Include dependency graph for session_id.c:

Go to the source code of this file.

Functions

void session_id_random (struct session_id *sid)
 
const char * session_id_print (const struct session_id *sid, struct gc_arena *gc)
 

Variables

const struct session_id x_session_id_zero
 

Function Documentation

◆ session_id_print()

const char* session_id_print ( const struct session_id sid,
struct gc_arena gc 
)

◆ session_id_random()

void session_id_random ( struct session_id sid)

Definition at line 53 of file session_id.c.

References session_id::id, prng_bytes(), and SID_SIZE.

Referenced by session_id_write(), and tls_session_init().

Variable Documentation

◆ x_session_id_zero

const struct session_id x_session_id_zero

Definition at line 50 of file session_id.c.

Referenced by session_id_defined().