From 8cc86b81ac20ff3e933ea7fd107a5a6066032330 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Mon, 23 Mar 2020 08:30:37 +0100 Subject: Constify various mostly X509-related parameter types in crypto/ and apps/ in particular X509_NAME*, X509_STORE{,_CTX}*, and ASN1_INTEGER *, also some result types of new functions, which does not break compatibility Reviewed-by: Tomas Mraz Reviewed-by: David von Oheimb (Merged from https://github.com/openssl/openssl/pull/10504) --- test/cmp_ctx_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/cmp_ctx_test.c') diff --git a/test/cmp_ctx_test.c b/test/cmp_ctx_test.c index fa4ef911bf..6da9863179 100644 --- a/test/cmp_ctx_test.c +++ b/test/cmp_ctx_test.c @@ -520,7 +520,7 @@ static X509_STORE *X509_STORE_new_1(void) #define DEFINE_SET_TEST_DEFAULT(OSSL_CMP, CTX, N, DUP, FIELD, TYPE, DEFAULT) \ static TYPE *OSSL_CMP_CTX_get0_##FIELD(const CMP_CTX *ctx) \ { \ - return ctx == NULL ? ERR(NULL) : ctx->FIELD; \ + return ctx == NULL ? ERR(NULL) : (TYPE *)ctx->FIELD; \ } \ DEFINE_SET_GET_TEST_DEFAULT(OSSL_CMP, CTX, N, 0, DUP, FIELD, TYPE, DEFAULT) #define DEFINE_SET_TEST(OSSL_CMP, CTX, N, DUP, FIELD, TYPE) \ -- cgit v1.2.3