openssl/engines
Benjamin Kaduk 226f2bf191 Fix strict-warnings build on FreeBSD
The 'key' member of the (system-defined!) struct session op is of
type c_caddr_t, which can be (signed) char, so inter-casting with the
unsigned char* input to cipher_init() causes -Wpointer-sign errors, and we
can't change the signature of cipher_init() due to the function pointer
type required by EVP_CIPHER_meth_set_init().

As the least-bad option, introduce a void* cast to quell the following
warning:
engines/e_devcrypto.c:356:36: error: passing 'c_caddr_t' (aka 'const char *') to
      parameter of type 'const unsigned char *' converts between pointers to integer
      types with different sign [-Werror,-Wpointer-sign]
        return cipher_init(to_ctx, cipher_ctx->sess.key, EVP_CIPHER_CTX_iv(ctx),
                                   ^~~~~~~~~~~~~~~~~~~~
engines/e_devcrypto.c:191:66: note: passing argument to parameter 'key' here
static int cipher_init(EVP_CIPHER_CTX *ctx, const unsigned char *key,

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8509)
2019-03-19 07:19:41 +01:00
..
asm Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
build.info padlock: generate assembler source for static libraries too 2019-03-05 20:53:15 +01:00
e_afalg_err.c Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
e_afalg_err.h Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
e_afalg.c Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
e_afalg.ec make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_afalg.h Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
e_afalg.txt Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
e_capi_err.c Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
e_capi_err.h Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
e_capi.c Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
e_capi.ec make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_capi.txt Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
e_dasync_err.c Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
e_dasync_err.h Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
e_dasync.c engines/dasync: add explaining comments about AES-128-CBC-HMAC-SHA1 2019-02-22 13:31:49 +01:00
e_dasync.ec make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_dasync.txt Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
e_devcrypto.c Fix strict-warnings build on FreeBSD 2019-03-19 07:19:41 +01:00
e_ossltest_err.c Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
e_ossltest_err.h Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
e_ossltest.c Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
e_ossltest.ec make error tables const and separate header file 2017-06-07 15:12:03 -04:00
e_ossltest.txt Following the license change, modify the boilerplates in engines/ 2018-12-06 15:36:54 +01:00
e_padlock.c Deprecate the "hw" configuration options, make "padlockeng" disablable 2019-03-05 08:46:51 +01:00