SSL_read() fails when using manually managed buffers

Christian Mazakas christian.mazakas at gmail.com
Wed Jan 4 15:55:14 UTC 2023


Hey everyone,

I'm trying to get libssl to work without using any built-in I/O so for this,
I'm using manually managed BIO pairs.

It seems like I can get a TLS Client Hello written to a user-provided buffer
but I'm having trouble getting the server to parse this data and generate
its own Server Hello in response.

I have a Compiler Explorer link that demonstrates my issue here:
https://godbolt.org/z/ncxezWfqG

Is there something plainly obvious that I'm missing? I've been scouring the
docs so I'm wondering if there's something easy I missed.

- Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20230104/e4f4fd69/attachment.htm>


More information about the openssl-users mailing list