Reputation: 3357
I am using BIO_SSL which is in bio.h to create SSL. but how to encrypt data using BIO_SSL?
Upvotes: 0
Views: 355
Reputation: 41967
I'm afraid your question is akin to "I have a nail. How do I build a house?". However, perhaps the example on this page will get you started with openssl. Also, this book is pretty good for understanding openssl.
EDIT:
If you are looking to encrypt data rather than do SSL, and you want to use BIO's, then consider the BIO_f_cipher()
bio. I personally find the EVP interface to be easier to understand than the BIO interface.
Upvotes: 1