Re: temp buffer used with ssl_write

2010-07-12 Thread Darryl Miles
Amit Ben Shahar wrote: Does anyone know if a buffer passed to ssl_write (or any other method) must remain valid (i.e not freed) for any period. for example, if i have this code: // allocate buffer char* tmpBuff = (char*)malloc(1024); // .. some code to put data in buff // write b

temp buffer used with ssl_write

2010-07-11 Thread Amit Ben Shahar
Hi, Does anyone know if a buffer passed to ssl_write (or any other method) must remain valid (i.e not freed) for any period. for example, if i have this code: // allocate buffer char* tmpBuff = (char*)malloc(1024); // .. some code to put data in buff // write buffer to ssl ssl_write