RE: sending binary data using openSSL

2007-09-10 Thread David Schwartz
> int result = fread(wbuf, fsize, 1, fp); > > void *buffer; > buffer = (char *)malloc (length); > > long err = SSL_write(ssl,buffer, strlen((char *)buffer)); > > err = SSL_get_error(ssl,err); You lost track of what you were doing. You put the number of bytes to send in 'r

RE: sending binary data using openSSL

2007-09-10 Thread Rucha
err = SSL_write(ssl,buffer, strlen((char *)buffer)); err = SSL_get_error(ssl,err); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Schwartz Sent: Monday, September 10, 2007 8:57 PM To: openssl-users@openssl.org Subject: RE: sending binary data usi

RE: sending binary data using openSSL

2007-09-10 Thread David Schwartz
> I am using OpenSSL in my project. I wanted to send binary data, The term "binary data" could mean anything. > but SSL_write is not working. That's not a very good description of the problem. > Is there any other way to do it. You really have to give us something more to go on. DS __

sending binary data using openSSL

2007-09-10 Thread Rucha
Hello, I am using OpenSSL in my project. I wanted to send binary data, but SSL_write is not working. Is there any other way to do it. Thanks and Regards, Rucha Mahajan