On Mon, Jun 02, 2014 at 19:12, Joerg Sonnenberger wrote: > On Mon, Jun 02, 2014 at 12:33:14PM -0400, Ted Unangst wrote: >> What compiler warns about this? It's perfectly fine to pass a nonconst >> string to a function that takes a const string. > > char * vs unsigned char *?
Oh, I guess. My feeling is that code is better without casts. The OpenSSL codebase is absolutely lousy with unnecessary and even harmful casts. They should be deleted before we start adding new casts.