> 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 'result', but then you called 'strlen' to determine how many bytes to send. Since 'buffer' does not contain a C-style string, the result of passing it to 'strlen' is definitely not going to make any sense. DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]