From: Evan Klinger <[EMAIL PROTECTED]>

evan715> I tried that and now I get nothing back. I've attached the
evan715> update source.  Please take a look at it and see if you can
evan715> figure out what's wrong. Thank you very much.

One quick question: are you new at programming in C?

Anyhow, the loop you have crafted will give you exactly that result.
The reason is that you read all the bytes to exactly the same location
(buffer[0]).  But anyhow, that loop is, I'm sorry to say, just a
little bit clumsy.  How about something like this?

        i = 0
        while((bytes = SSL_read(ssl,buffer+i,32767)) >= 0)
                i += bytes;

        bytes[i]='\0';
        ...

-- 
Richard Levitte   \ Spannvägen 38, II \ [EMAIL PROTECTED]
Chairman@Stacken   \ S-168 35  BROMMA  \ T: +46-8-26 52 47
Redakteur@Stacken   \      SWEDEN       \ or +46-709-50 36 10
Procurator Odiosus Ex Infernis             -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
Software Engineer, Celo Communications: http://www.celocom.com/

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to