David McCullough proposed the following patch to
crypto/engine/eng_cryptodev.c:

(extracted from a larger change set):

@@ -428,7 +428,7 @@ cryptodev_init_key(EVP_CIPHER_CTX *ctx, const
unsigned char *key,
        if ((state->d_fd = get_dev_crypto()) < 0)
                return (0);
 
-       sess->key = (unsigned char *)key;
+       sess->key = (caddr_t)key;
        sess->keylen = ctx->key_len;
        sess->cipher = cipher;
 
Please be aware that the "caddr_t" (core(!) addr) data type is not
included in the POSIX-2001 standard(1).  My copy of SuSE Linux make it
visible in sys/types.h under the control of the _BSD_SOURCE macro.  If
you are going to use this data type in OpenSSL, you should ensure that
it is defined by OpenSSL if the standard headers do not already define
it.  IMHO, a better solution would be to use only POSIX data types.

(1) http://www.opengroup.org/onlinepubs/009695399/toc.htm

Thanks
PG
--
Paul Green, Senior Technical Consultant, Stratus Technologies.
Voice: +1 978-461-7557; FAX: +1 978-461-3610; Mobile: +1 (978) 235-2451;
AIM: PaulGreen


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to