2009/5/29 jazeltq <jaze...@163.com>: > 在2009-05-28,"Victor Duchovni" <victor.ducho...@morganstanley.com> 写道: >>On Thu, May 28, 2009 at 11:51:42AM +0200, Ger Hobbelt wrote: >> >>Only if the data is text. Using strlen() on binary data is another >>classic/basic 'C' programming mistake. > if it is binary data, what to do ? Use a Variable to send the the size ?
yes. Just like the BIO_read, BIO_write, fwrite, etc. APIs all do too: pass along a pointer /and/ a length parameter. -- Met vriendelijke groeten / Best regards, Ger Hobbelt -------------------------------------------------- web: http://www.hobbelt.com/ http://www.hebbut.net/ mail: g...@hobbelt.com mobile: +31-6-11 120 978 -------------------------------------------------- ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org