I see there is a multiplexed I/O example for luvit at
https://github.com/luvit/openssl/blob/master/openssl/demos/easy_tls/easy-tls.c
Is there a good example like this for BoringSSL? The bssl tool is the only reference i've seen and it's not multiplexed. If no example, are there any possible incompatibilities to watch for?
I've also looked at Eric Rescorla's code:
https://github.com/smbutton/DataCommProject/blob/master/openssl-examples-20020110/openssl-examples-20020110/read_write.c
It seems to follow roughly the same logic to handle the SSL/network buffer impedance but it's circa 2002 so i'm leaning towards easy-tls.
thanks!
do {
n = read(0, buffer, sizeof(buffer));
} while (n == -1 && errno == EINTR);
Probably not a problem for interactive input.
No worries.. the Rescorla/easy-tls code seem ok so far..