From 712e8debb5b2238450b303acb5f24298382c63a5 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Mon, 20 Mar 2017 17:29:28 +0100 Subject: Fix the parameter types of the CRYPTO_EX_dup function type. This fixes a strict aliasing issue in ui_dup_method_data. The parameter type of CRYPTO_EX_dup's from_d parameter is in fact void **, since it points to a pointer. This function is rarely used, therefore fix the param type although that may be considered an API breaking change. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/2986) --- include/openssl/crypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/openssl/crypto.h b/include/openssl/crypto.h index 3cca316cd4..58965de0e8 100644 --- a/include/openssl/crypto.h +++ b/include/openssl/crypto.h @@ -201,7 +201,7 @@ typedef void CRYPTO_EX_new (void *parent, void *ptr, CRYPTO_EX_DATA *ad, typedef void CRYPTO_EX_free (void *parent, void *ptr, CRYPTO_EX_DATA *ad, int idx, long argl, void *argp); typedef int CRYPTO_EX_dup (CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from, - void *from_d, int idx, long argl, void *argp); + void **from_d, int idx, long argl, void *argp); __owur int CRYPTO_get_ex_new_index(int class_index, long argl, void *argp, CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, -- cgit v1.2.3