Fix warnings found from that Introduce lws_ptr_diff(head, tail) helper to normalize pointers to char *, do the subtraction and cast the result to int.
Like the simple hashes, these work the same regardless of if the backend is OpenSSL or mbedTLS. Also move into ./lib/tls/ and split into two specific to mbedtls or openssl backends.