> I have a problem in the section (Read in the response). For my > futher work i need to know if in the internal openssl buffer are > still some data. I thing that best method to recognize it will be > the BIO_pending(), but this function gives me everytime number 0, > that there aren`t any data. But when I try to read (BIO_read()) > again some data are still there. > > Please can you advise me how to change my code.
Could you clarify what it is you are trying to do? You are trying to keep reading until .. what? It sounds like you are seeing exactly what is supposed to happen. When you call BIO_pending, there is no data pending. When you call BIO_read, it waits until some data can be read, which can certainly happen even if there was no data pending before. DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
