]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Clarify where dispatch functions/ids are defined
authorDaniel Bevenius <daniel.bevenius@gmail.com>
Wed, 5 May 2021 06:56:36 +0000 (08:56 +0200)
committerPauli <pauli@openssl.org>
Thu, 6 May 2021 13:00:23 +0000 (23:00 +1000)
When reading the comment for ossl_dispatch_st it seems to indicate that
the function_id numbers are defined further down in the same file. But I
was not able to find them there, but instead in core_dispatch.h.

This commit suggests updating the comment to point to core_dispatch.h

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15156)

include/openssl/core.h

index 5d69278d2ecb963846a226a2172483974ced1d03..3356ef20884335db093610d3fd9b27ae8428d68b 100644 (file)
@@ -32,8 +32,8 @@ typedef struct openssl_core_ctx_st OPENSSL_CORE_CTX;
 typedef struct ossl_core_bio_st OSSL_CORE_BIO;
 
 /*
- * Dispatch table element.  function_id numbers are defined further down,
- * see macros with '_FUNC' in their names.
+ * Dispatch table element.  function_id numbers and the functions are defined
+ * in core_dispatch.h, see macros with 'OSSL_CORE_MAKE_FUNC' in their names.
  *
  * An array of these is always terminated by function_id == 0
  */