summaryrefslogtreecommitdiffstats
path: root/fuzz
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2023-04-28 13:45:21 +0200
committerDr. David von Oheimb <dev@ddvo.net>2023-12-21 23:06:42 +0100
commitbedffe1731e8c587d3d854e05535175863447dc3 (patch)
treedacd36294473787f970bd0587d0472e268bc1093 /fuzz
parent192bfec487b27ee9398138ce5f0c5b00f536dc95 (diff)
crypto/cmp/,apps/lib/cmp_mock_srv.c: various improvements on delayed delivery
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from https://github.com/openssl/openssl/pull/20727)
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/cmp.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/fuzz/cmp.c b/fuzz/cmp.c
index 37b6c310c3..16d2fade22 100644
--- a/fuzz/cmp.c
+++ b/fuzz/cmp.c
@@ -155,13 +155,14 @@ static int process_pollReq(OSSL_CMP_SRV_CTX *srv_ctx,
return 0;
}
-static int reset_transaction(OSSL_CMP_SRV_CTX *srv_ctx)
+static int clean_transaction(ossl_unused OSSL_CMP_SRV_CTX *srv_ctx,
+ ossl_unused const ASN1_OCTET_STRING *id)
{
return 1;
}
-static int delayed_delivery(OSSL_CMP_SRV_CTX *srv_ctx,
- const OSSL_CMP_MSG *req)
+static int delayed_delivery(ossl_unused OSSL_CMP_SRV_CTX *srv_ctx,
+ ossl_unused const OSSL_CMP_MSG *req)
{
return 0;
}
@@ -195,8 +196,8 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len)
&& OSSL_CMP_SRV_CTX_init(srv_ctx, NULL, process_cert_request,
process_rr, process_genm, process_error,
process_certConf, process_pollReq)
- && OSSL_CMP_SRV_CTX_setup_polling(srv_ctx, reset_transaction,
- delayed_delivery))
+ && OSSL_CMP_SRV_CTX_init_trans(srv_ctx, delayed_delivery,
+ clean_transaction))
OSSL_CMP_MSG_free(OSSL_CMP_SRV_process_request(srv_ctx, msg));
OSSL_CMP_CTX_free(client_ctx);