I wrote a network event library in C, and now I want to add SSL / TLS support through OpenSSL. Instead of using it SSL_read(), SSL_write()I would prefer that OpenSSL only perform encryption / decryption of outgoing / incoming data, allowing me to send / receive data myself.
I am new to SSL / TLS and OpenSSL, therefore:
Is there a way for OpenSSL to only encrypt / decrypt arrays char?
Something like size_t SSL_encrypt(const char *buf_in, size_t size_in, char *buf_out)that would be great.
source
share