summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIrak Rigia <tarakrigia@gmail.com>2023-04-19 19:36:29 +0530
committerTomas Mraz <tomas@openssl.org>2023-04-21 16:16:14 +0200
commit23e648962e04af132c0841bec950b8a89b87fb2d (patch)
tree13102801b78961293a7d4a5b20958fef193e190b /include
parent4e5f3d691343a691ddae739c51f7ae71e9893c98 (diff)
downloadopenssl-new-23e648962e04af132c0841bec950b8a89b87fb2d.tar.gz
Added a macro OSSL_DISPATCH_END as marker of the end of OSSL_DISPATCH arrays
Also updated the corresponding documentations. Fixes #20710 Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20745)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/openssl/core.h b/include/openssl/core.h
index 9683ac70a5..b35392656c 100644
--- a/include/openssl/core.h
+++ b/include/openssl/core.h
@@ -42,6 +42,9 @@ struct ossl_dispatch_st {
void (*function)(void);
};
+# define OSSL_DISPATCH_END \
+ { 0, NULL }
+
/*
* Other items, essentially an int<->pointer map element.
*