• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * ssp-h1url plugin
3  *
4  * Written in 2010-2020 by Andy Green <andy@warmcat.com>
5  *
6  * This file is made available under the Creative Commons CC0 1.0
7  * Universal Public Domain Dedication.
8  *
9  * CC0 so it can be used as a template for your own secure streams plugins
10  * licensed how you like.
11  */
12 
13 #include <libwebsockets.h>
14 
15 static int
ssp_h1url_create(struct lws_ss_handle * ss,void * info,plugin_auth_status_cb status)16 ssp_h1url_create(struct lws_ss_handle *ss, void *info, plugin_auth_status_cb status)
17 {
18 	return 0;
19 }
20 
21 static int
ssp_h1url_destroy(struct lws_ss_handle * ss)22 ssp_h1url_destroy(struct lws_ss_handle *ss)
23 {
24 	return 0;
25 }
26 
27 static int
ssp_h1url_munge(struct lws_ss_handle * ss,char * path,size_t path_len)28 ssp_h1url_munge(struct lws_ss_handle *ss, char *path, size_t path_len)
29 {
30 	return 0;
31 }
32 
33 /* this is the only exported symbol */
34 const lws_ss_plugin_t ssp_h1url = {
35 	.name			= "h1url",
36 	.alloc			= 0,
37 	.create			= ssp_h1url_create,
38 	.destroy		= ssp_h1url_destroy,
39 	.munge			= ssp_h1url_munge
40 };
41