Robin Sommer
1e46466114
Add option to disable hostname check ( #399 )
...
* Suppress compiler warnings about unused elements.
* Enable CMake's compilation database.
* Add TLS option to disable checking a certificate's host name.
* Add `--disable-hostname-validation` to `ws`.
* Add test for disabling hostname validation.
2022-10-12 06:41:32 -07:00
Benjamin Sergeant
c70f1d09a8
include all ssl backends inside special per backend macro
2020-04-24 12:47:47 -07:00
Benjamin Sergeant
1d6373335c
(websocket+tls) fix hang in tls handshake which could lead to ANR, discovered through unittesting.
2020-03-20 16:57:27 -07:00
Benjamin Sergeant
4f3f1f3e4c
simplify socket interface
2020-01-12 22:30:16 -08:00
Benjamin Sergeant
2a954b5b5b
use curl code for large apple ssl send
2020-01-12 22:04:06 -08:00
Benjamin Sergeant
9651f3823d
(apple ssl) model write method after the OpenSSL one for consistency
...
More test code for #140 .
2020-01-10 18:32:34 -08:00
Benjamin Sergeant
f6c482c65d
(apple ssl) unify read and write ssl utility code
2020-01-06 15:19:14 -08:00
Benjamin Sergeant
dec8a2b9ab
apple ssl: aesthetic change (get rid of yoda comparisons/conditionals)
2020-01-06 14:45:05 -08:00
Benjamin Sergeant
d60777b9cc
clang-format
2019-12-30 08:46:18 -08:00
Benjamin Sergeant
b9cc6d7e23
(tls / apple) minor refactoring, move functions out of the anonymous namespace to become static member functions
2019-12-23 16:30:38 -08:00
Benjamin Sergeant
4e240e4992
formatting
2019-12-19 19:13:55 -08:00
Benjamin Sergeant
299afc1425
(tls servers) Make it clear that apple ssl and mbedtls backends do not support SSL in server mode
2019-12-18 10:43:05 -08:00
Benjamin Sergeant
ba4cf75e0f
(mac) convert SSL errors to utf8
2019-12-06 16:45:49 -08:00
Benjamin Sergeant
155bbfa984
On Darwin SSL, add ability to skip peer verification.
2019-11-20 13:58:08 -08:00
Benjamin Sergeant
cd3c9d879c
reformat everything with clang-format
2019-09-23 10:25:23 -07:00
Benjamin Sergeant
041fa3e340
compiled fixes on mac and windows
2019-09-22 18:43:57 -07:00
Dimon4eg
93b901a286
remove more iostream includes ( #65 )
2019-05-11 11:27:58 -07:00
Benjamin Sergeant
932bb732e0
Feature/send large message ( #14 )
...
* introduce send fragment
* can pass a fin frame
* can send messages which are a perfect multiple of the chunk size
* set fin only for last fragment
* cleanup
* last fragment should be of type CONTINUATION
* Add simple send and receive programs
* speedups receiving + better way to wait for thing
* receive speedup by using linked list of chunks instead of large array
* document bug
* use chunks to receive data
* trailing spaces
2019-02-20 18:59:07 -08:00
Benjamin Sergeant
57c22cddb8
make a class hierarchy for server code (IXWebSocketServer <- IXSocketServer)
2019-01-06 12:09:31 -08:00
Benjamin Sergeant
0fd06bb592
int -> ssize_t for socker recv and send
2019-01-05 20:53:50 -08:00
Benjamin Sergeant
ea07afcc0b
can create a socket from a fd
2018-12-29 21:53:33 -08:00
Benjamin Sergeant
cbadecab33
non blocking dns lookup
2018-12-14 16:28:17 -08:00
Benjamin Sergeant
8c079787f0
add cancellation support while connecting, to speed up WebSocket::stop
2018-12-09 17:56:20 -08:00
Benjamin Sergeant
62528e6a0b
http upgrade and connections use non blocking sockets
2018-12-09 14:07:40 -08:00
Benjamin Sergeant
9b8d6cedfe
First import
2018-09-27 14:57:19 -07:00