[Libwebsockets] Fwd: [libwebsockets] #51: Auto-SSL

James Devine fxmulder at gmail.com
Mon Dec 9 19:04:13 CET 2013


I'm looking for the TLS content-types for a Handshake 0x16
and ChangeCipherSpec Record 0x14, I just chose ascii 32 because it is the
first readable ascii character above these (space).


On Sun, Dec 8, 2013 at 7:51 AM, Trac <andy.green at linaro.org> wrote:

> #51: Auto-SSL
> ------------------------------------+-----------------
>   Reporter:  fxmulder               |      Owner:
>       Type:  enhancement            |     Status:  new
>   Priority:  minor                  |  Milestone:
>  Component:  libwebsockets library  |    Version:
> Resolution:                         |   Keywords:
> ------------------------------------+-----------------
>
> Comment (by agreen):
>
>  Thanks for the patch... can you explain the logic for this a bit? -->
>
>
>                  n = recv(wsi->sock, context->service_buffer,
>                          sizeof(context->service_buffer), MSG_PEEK);
>                  if (n >= 1 && context->service_buffer[0] >= 32) {
>
>  what's the idea about the first byte being >= ' ', how is that related to
>  whether it's SSL or not?
>
> --
> Ticket URL: <
> http://libwebsockets.org/trac/libwebsockets/ticket/51#comment:1>
> libwebsockets <http://libwebsockets.org>
> libwebsockets C library
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20131209/e9fa0540/attachment-0001.html>


More information about the Libwebsockets mailing list