oh I know, I just send the piece of code as I test it out, of course, someone needs to refine, to add test for every line of code! to test return code from function.


David Schwartz <[EMAIL PROTECTED]> wrote:

read = SSL_read(ssl, reply, sizeof(reply));
strcpy (reply, "encoded_base64_password\n");
SSL_write (ssl, reply, strlen (reply));
read = SSL_read(ssl, reply, sizeof(reply));
strcpy (reply, "MAIL FROM: <[EMAIL PROTECTED]>\n");
SSL_write (ssl, reply, strlen (reply));

All of the SSL_read lines are broken. There is no check to make sure an
entire line has been read. The net effect is that you cannot later figure
out what happened when you need to get a final reply from the server, and
you blindly continue sending stuff past an early error.

DS


______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]


Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.

Reply via email to