diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2023-04-28 13:45:21 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2023-12-21 23:06:42 +0100 |
commit | bedffe1731e8c587d3d854e05535175863447dc3 (patch) | |
tree | dacd36294473787f970bd0587d0472e268bc1093 /fuzz | |
parent | crypto/cmp/,apps/lib/cmp_mock_srv.c: add delayed delivery for all types of re... (diff) | |
download | openssl-bedffe1731e8c587d3d854e05535175863447dc3.tar.xz openssl-bedffe1731e8c587d3d854e05535175863447dc3.zip |
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.c | 11 |
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); |