> Currently, I'm workig on adding SSL support (for https) to a KDE
> ...
> ... However, once I tried to include
> ssh.h, I got errors complaining about conflicting types for MD5_CTX.  Sure
> enough, I the SSLeay idea of what that structure looked like varied
There is an elegant way to work around that kind of problems. Indeed!

        #define MD5_CTX SSLeay_MD5_CTX
        #include <ssl.h>
        #undef MD5_CTX

and go ahead and call none-SSLeay MD5 routines.

        #define MD5_CTX SSLeay_MD5_CTX
        #include <ssl.h>

and go ahead and call SSLeay MD5 routines. It works just fine! Well,
provided that function names don't conflict. In case they do, then you
probably have to pay attention to order of libraries you feed linker
with.

Don't underestimate power of C preprocessor! Andy.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to