From: "Paul D. Smith" <[EMAIL PROTECTED]>
psmith> This is similar to standard C functions which take a const
psmith> char*, for example, and return a char* that points into the
psmith> string.
Like strstr()...
psmith> IMHO this is a legitimate reason to cast away const, and that
psmith> the "const" notation on the arguments to lhash is useful for
psmith> self-documentation purposes, at the least.
Hmm, perhaps you're right. I'm just a bit worried about how hard it
might become if someone is stupid enough to actually use the returned
(non-const) pointer to change something that is on RO memory...
--
Richard Levitte \ Spannvägen 38, II \ [EMAIL PROTECTED]
Chairman@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47
Redakteur@Stacken \ SWEDEN \ or +46-709-50 36 10
Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
Software Engineer, Celo Communications: http://www.celocom.com/
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]