mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
226f2bf191
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) |
||
---|---|---|
.. | ||
asm | ||
build.info | ||
e_afalg_err.c | ||
e_afalg_err.h | ||
e_afalg.c | ||
e_afalg.ec | ||
e_afalg.h | ||
e_afalg.txt | ||
e_capi_err.c | ||
e_capi_err.h | ||
e_capi.c | ||
e_capi.ec | ||
e_capi.txt | ||
e_dasync_err.c | ||
e_dasync_err.h | ||
e_dasync.c | ||
e_dasync.ec | ||
e_dasync.txt | ||
e_devcrypto.c | ||
e_ossltest_err.c | ||
e_ossltest_err.h | ||
e_ossltest.c | ||
e_ossltest.ec | ||
e_ossltest.txt | ||
e_padlock.c |