aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/cmp_ctx_test.c2
-rw-r--r--test/cmp_vfy_test.c2
-rw-r--r--test/ocspapitest.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/cmp_ctx_test.c b/test/cmp_ctx_test.c
index fa4ef91..6da9863 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) \
diff --git a/test/cmp_vfy_test.c b/test/cmp_vfy_test.c
index f52efa9..f0b9b50 100644
--- a/test/cmp_vfy_test.c
+++ b/test/cmp_vfy_test.c
@@ -313,7 +313,7 @@ static int test_validate_msg_signature_sender_cert_absent(void)
}
-static int test_validate_with_sender(X509_NAME *name, int expected)
+static int test_validate_with_sender(const X509_NAME *name, int expected)
{
SETUP_TEST_FIXTURE(CMP_VFY_TEST_FIXTURE, set_up);
fixture->expected = expected;
diff --git a/test/ocspapitest.c b/test/ocspapitest.c
index 358eb54..ad3b6ca 100644
--- a/test/ocspapitest.c
+++ b/test/ocspapitest.c
@@ -182,7 +182,7 @@ err:
static int test_ocsp_url_svcloc_new(void)
{
- static const char * urls[] = {
+ static const char *urls[] = {
"www.openssl.org",
"www.openssl.net",
NULL