All, I am trying to use a memory BIO to decrypt data from a TCP stream I am processing,
I have followed the following steps and for some reason I am still not able to get the SSL_READ function to return anything but -1? I have looked at the archives and it appears that this method has worked for others ? So I am guessing I am missing something Simple (Hoping more like it J Note: The server.key file is NOT password protected (This is a browser talking to a Apache Server on lo/443) Thanks in advance for any help with this! Ed SSL_library_init() SSL_load_error_strings() meth =SSLv23_method() ctx = SSL_CTX_new(meth) ssl = SSL_new(ctx) SSL_CTX_use_PrivateKey_file() <- Returns 1 from what I can tell is success(PEM) SSL_CTX_use_certificate_file() <- Returns 1 from what I can tell is success (PEM) memBIO = BIO_new(BIO_s_mem()) BIO_write(memBIO, data, datasize) SSL_set_bio(ssl, memBIO, memBIO) SSL_read(); No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 270.7.1/1688 - Release Date: 9/24/2008 6:29 AM