Functions | Variables
cookie_auth.c File Reference
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "mongoose.h"
Include dependency graph for cookie_auth.c:

Go to the source code of this file.

Functions

static int check_auth (struct mg_connection *conn)
static int check_login_form_submission (struct mg_connection *conn)
static int ev_handler (struct mg_connection *conn, enum mg_event ev)
static void generate_ssid (const char *user_name, const char *expiration_date, char *ssid, size_t ssid_size)
int main (void)
static int serve_request (struct mg_connection *conn)

Variables

static const char * s_login_uri = "/login.html"
static const char * s_secret = ":-)"

Function Documentation

static int check_auth ( struct mg_connection conn) [static]

Definition at line 19 of file cookie_auth.c.

static int check_login_form_submission ( struct mg_connection conn) [static]

Definition at line 43 of file cookie_auth.c.

static int ev_handler ( struct mg_connection conn,
enum mg_event  ev 
) [static]

Definition at line 76 of file cookie_auth.c.

static void generate_ssid ( const char *  user_name,
const char *  expiration_date,
char *  ssid,
size_t  ssid_size 
) [static]

Definition at line 12 of file cookie_auth.c.

int main ( void  )

Definition at line 84 of file cookie_auth.c.

static int serve_request ( struct mg_connection conn) [static]

Definition at line 68 of file cookie_auth.c.


Variable Documentation

const char* s_login_uri = "/login.html" [static]

Definition at line 9 of file cookie_auth.c.

const char* s_secret = ":-)" [static]

Definition at line 10 of file cookie_auth.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:08