Richard Levitte - VMS Whacker wrote:
>
> 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()...
Just because the C libraries are broken doesn't mean we should break
ours. In Apache we fix these rather than live with them.
> 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...
Exactly.
Cheers,
Ben.
--
http://www.apache-ssl.org/ben.html
"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]