libwebsockets
Lightweight C library for HTML5 websockets
lws-plugin-generic-sessions.h
1 /*
2  * libwebsockets - small server side websockets and web server implementation
3  *
4  * Copyright (C) 2010-2018 Andy Green <andy@warmcat.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation:
9  * version 2.1 of the License.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301 USA
20  *
21  * included from libwebsockets.h
22  */
23 
33 
34 #define LWSGS_EMAIL_CONTENT_SIZE 16384
37 /* SHA-1 binary and hexified versions */
39 typedef struct { unsigned char bin[32]; } lwsgw_hash_bin;
41 typedef struct { char id[65]; } lwsgw_hash;
42 
49 };
50 
53  char username[32];
54  char email[100];
55  char ip[72];
56  unsigned int mask;
58  char session[42];
59 };
60 
65 };
66 
69  enum lws_gs_event event;
70  const char *username;
71  const char *email;
72 };
73 
lwsgs_auth_bits
Definition: lws-plugin-generic-sessions.h:44
lws_gs_event
Definition: lws-plugin-generic-sessions.h:62
@ LWSGS_AUTH_ADMIN
Definition: lws-plugin-generic-sessions.h:46
@ LWSGS_AUTH_FORGOT_FLOW
Definition: lws-plugin-generic-sessions.h:48
@ LWSGS_AUTH_VERIFIED
Definition: lws-plugin-generic-sessions.h:47
@ LWSGS_AUTH_LOGGED_IN
Definition: lws-plugin-generic-sessions.h:45
@ LWSGSE_CREATED
Definition: lws-plugin-generic-sessions.h:63
@ LWSGSE_DELETED
Definition: lws-plugin-generic-sessions.h:64
Definition: lws-plugin-generic-sessions.h:68
const char * username
Definition: lws-plugin-generic-sessions.h:70
enum lws_gs_event event
Definition: lws-plugin-generic-sessions.h:69
const char * email
Definition: lws-plugin-generic-sessions.h:71
Definition: lws-plugin-generic-sessions.h:52
char username[32]
Definition: lws-plugin-generic-sessions.h:53
char session[42]
Definition: lws-plugin-generic-sessions.h:58
char ip[72]
Definition: lws-plugin-generic-sessions.h:55
char email[100]
Definition: lws-plugin-generic-sessions.h:54
unsigned int mask
Definition: lws-plugin-generic-sessions.h:56
Definition: lws-plugin-generic-sessions.h:39
Definition: lws-plugin-generic-sessions.h:41