Topic: DTLS over arbitrary protocols
I am interested in using wolfSSL for DTLS over arbitrary protocols (eg serial, bluetooth, ... not just UDP). Currently we do this with OpenSSL by setting up the read and write BIOs to be memory BIOs. Then when we send data, we call SSL_write() and then read the encrypted data out of the write BIO to send over whatever the protocol is; when we receive data from the remote side, we write it into the read BIO and then call SSL_read().
Is there a way to do something similar with the wolfSSL API? It seems like maybe the CBIORecv/CBIOSend function pointers could be set up in the SSL context to do what I want; is this correct?
I am also wondering if there is a way to set the MTU so that we can read/write chunks larger than 1500 bytes.