We are using OPENSSL_strcmp() as the cmp_func, where cmp_func takes a pair of (void *) pointers, not (char *). Which is fine; we know we're going to pass it strings in this case. So explicitly cast it to avoid the resulting compiler warning. --- crypto/objects/o_names.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/objects/o_names.c b/crypto/objects/o_names.c index 0a07379..1f9f10a 100644 --- a/crypto/objects/o_names.c +++ b/crypto/objects/o_names.c @@ -83,7 +83,7 @@ int OBJ_NAME_new_index(unsigned long (*hash_func) (const char *), return (0); } name_funcs->hash_func = lh_strhash; - name_funcs->cmp_func = OPENSSL_strcmp; + name_funcs->cmp_func = (void *)OPENSSL_strcmp; CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE); sk_NAME_FUNCS_push(name_funcs_stack, name_funcs); CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE); -- 2.5.0 -- David Woodhouse Open Source Technology Centre [email protected] Intel Corporation -- Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4335 Please log in as guest with password guest if prompted
smime.p7s
Description: S/MIME cryptographic signature
-- openssl-dev mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
