>I've started working on bringing better use of const to OpenSSL

Huzzah.

>Also, this will bring about a few ugly casts in the ASN.1 macros or
>direct callers of them.

Perhaps something like
        #define CONST(t, p) (const t)(p)
        #define UNCONST(t, p)   (t)(p)

As in
        extern void bar(unsigned char** ucpp);
        void foo(const unsigned char* ucp)
        {
            bar(UNCONST(unsigned char**,&ucp));
        }
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to