Ben Laurie <[EMAIL PROTECTED]>:

>>   --- enginetest.c      2001/09/10 14:10:10     1.10
>>   +++ enginetest.c      2001/09/10 17:46:54     1.11
>>   @@ -234,8 +234,8 @@
>>                 }
>>         for(loop = 0; loop < 512; loop++)
>>                 {
>>   -             OPENSSL_free(ENGINE_get_id(block[loop]));
>>   -             OPENSSL_free(ENGINE_get_name(block[loop]));
>>   +             OPENSSL_free((void *)ENGINE_get_id(block[loop]));
>>   +             OPENSSL_free((void *)ENGINE_get_name(block[loop]));

> but but... this is an abuse of constness!

Well, it's legal C -- we know that the pointers returned by those
functions are the pointers we originally created const-less and handed
over to the corresponding ENGINE_set_... functions, so it's OK to
cast the 'const' away.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to