Changeset 35


Ignore:
Timestamp:
Sep 5, 2006, 11:46:35 PM (19 years ago)
Author:
dmik
Message:

QCA-TLS: Use 'const unsigned char' when OSSL_097 is defined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qca-tls/trunk/qca-tls.cpp

    r31 r35  
    455455                                // try this other public function, for whatever reason
    456456                                p = (void *)in;
     457#ifdef OSSL_097
     458                                r = d2i_RSA_PUBKEY(NULL, (const unsigned char **)&p, len);
     459#else
    457460                                r = d2i_RSA_PUBKEY(NULL, (unsigned char **)&p, len);
     461#endif
    458462                        }
    459463                        if(r) {
     
    799803        bool createFromDER(const char *in, unsigned int len)
    800804        {
     805#ifdef OSSL_097
     806                const unsigned char *p = (const unsigned char *)in;
     807#else
    801808                unsigned char *p = (unsigned char *)in;
     809#endif
    802810                X509 *t = d2i_X509(NULL, &p, len);
    803811                if(!t)
Note: See TracChangeset for help on using the changeset viewer.