On Mon, Jun 25, 2001 at 04:01:01AM +0100, Ben Laurie wrote:

> Sorry, I'd managed to forget about opensslconf.h! It does also solve the
> problem and I have no problem with it.

However, it would be safer if data strutures in exported headers did
not depend on disabled ciphers.  In the OPENSSL_NO_... cases, there
should be dummy pointers (void *) in this struct, for example:

typedef struct evp_pkey_st
        {
        int type;
        int save_type;
        int references;
        union   {
                char *ptr;
#ifndef OPENSSL_NO_RSA
                struct rsa_st *rsa;     /* RSA */
#endif
#ifndef OPENSSL_NO_DSA
                struct dsa_st *dsa;     /* DSA */
#endif
#ifndef OPENSSL_NO_DH
                struct dh_st *dh;       /* DH */
#endif
                } pkey;
        int save_parameters;
        STACK_OF(X509_ATTRIBUTE) *attributes; /* [ 0 ] */
        } EVP_PKEY;



-- 
Bodo M�ller <[EMAIL PROTECTED]>
PGP http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/moeller/0x36d2c658.html
* TU Darmstadt, Theoretische Informatik, Alexanderstr. 10, D-64283 Darmstadt
* Tel. +49-6151-16-6628, Fax +49-6151-16-6036
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to