h1url.c 813 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * ssp-h1url plugin
  3. *
  4. * Written in 2010-2020 by Andy Green <[email protected]>
  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. #include <libwebsockets.h>
  13. static int
  14. ssp_h1url_create(struct lws_ss_handle *ss, void *info, plugin_auth_status_cb status)
  15. {
  16. return 0;
  17. }
  18. static int
  19. ssp_h1url_destroy(struct lws_ss_handle *ss)
  20. {
  21. return 0;
  22. }
  23. static int
  24. ssp_h1url_munge(struct lws_ss_handle *ss, char *path, size_t path_len)
  25. {
  26. return 0;
  27. }
  28. /* this is the only exported symbol */
  29. const lws_ss_plugin_t ssp_h1url = {
  30. .name = "h1url",
  31. .alloc = 0,
  32. .create = ssp_h1url_create,
  33. .destroy = ssp_h1url_destroy,
  34. .munge = ssp_h1url_munge
  35. };