On Sun, May 16, 2004, Richard Levitte - VMS Whacker wrote: > In message <[EMAIL PROTECTED]> on Sun, 16 May 2004 19:12:22 +0200, Andy Polyakov > <[EMAIL PROTECTED]> said: > > appro> > appro> Log: > appro> > appro> size_t-fication of message digest APIs. We should size_t-fy more > appro> > appro> APIs... > appro> > > appro> > Oh, I completely agree, and I have a working directory with that going > appro> > on... > appro> > appro> I also had a look at it at some point and have even done some work on > appro> size_t-fication of some ciphers. What do you have? A. > > Well, I think I've worked in a different way than you. I started with > the memory allocation functions and let the effects spread. I've also > taken a look at some header files and adjusted what needed to be > adjusted, then modified all C files where the compiler complained. > This work is still going on... > >
There are a few cases (which the compiler might well complain about) to be careful of. Some functions which return a length value return -1 for error because zero is a valid length. This is theoretically true for the i2d_foo() ASN1 functions though currently very few indicate an error condition, that may well change in future. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
