In message <[EMAIL PROTECTED]> on Sun, 16 May 2004 20:17:07 +0200, "Dr. Stephen Henson" <[EMAIL PROTECTED]> said:
steve> On Sun, May 16, 2004, Richard Levitte - VMS Whacker wrote: steve> steve> > In message <[EMAIL PROTECTED]> on Sun, 16 May 2004 19:12:22 +0200, Andy Polyakov <[EMAIL PROTECTED]> said: steve> > steve> > appro> > appro> Log: steve> > appro> > appro> size_t-fication of message digest APIs. We should size_t-fy more steve> > appro> > appro> APIs... steve> > appro> > steve> > appro> > Oh, I completely agree, and I have a working directory with that going steve> > appro> > on... steve> > appro> steve> > appro> I also had a look at it at some point and have even done some work on steve> > appro> size_t-fication of some ciphers. What do you have? A. steve> > steve> > Well, I think I've worked in a different way than you. I started with steve> > the memory allocation functions and let the effects spread. I've also steve> > taken a look at some header files and adjusted what needed to be steve> > adjusted, then modified all C files where the compiler complained. steve> > This work is still going on... steve> > steve> > steve> steve> There are a few cases (which the compiler might well complain steve> about) to be careful of. steve> steve> Some functions which return a length value return -1 for error steve> because zero is a valid length. This is theoretically true for steve> the i2d_foo() ASN1 functions though currently very few indicate steve> an error condition, that may well change in future. Yup, and it's quite possible to have them return (size_t)-1 in the future as well :-). Or we could have them return ssize_t, like write(2). ----- Please consider sponsoring my work on free software. See http://www.free.lp.se/sponsoring.html for details. -- Richard Levitte \ Tunnlandsv�gen 52 \ [EMAIL PROTECTED] [EMAIL PROTECTED] \ S-168 36 BROMMA \ T: +46-708-26 53 44 \ SWEDEN \ Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Unsolicited commercial email is subject to an archival fee of $400. See <http://www.stacken.kth.se/~levitte/mail/> for more info. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
