The following causes a compile failure,

#ifndef OPENSSL_NO_RSA
/* Used to attach our own key-data to an RSA structure */
static int rsax_ex_data_idx = -1;
#endif

static int e_rsax_destroy(ENGINE *e)
         {
         return 1;
         }

/* (de)initialisation functions. */
static int e_rsax_init(ENGINE *e)
         {
#ifndef OPENSSL_NO_RSA
         if (rsax_ex_data_idx == -1)
                 rsax_ex_data_idx = RSA_get_ex_new_index(0,
                         NULL,
                         NULL, NULL, NULL);
#endif
         if (rsax_ex_data_idx  == -1)
                 return 0;
         return 1;
         }

======

moving the last #endif two lines lower to fixes the issue as  
rsax_ex_data_idx isn't defined if OPENSSL_NO_RSA is defined.

Thanks

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to