Note a couple of typoed struct names that we'll leave alone.

Change-Id: I4f0774c8c986eb7b2c464b6ecc72c8b6aa00b350
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/78870
Auto-Submit: Adam Langley <agl@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
This commit is contained in:
Adam Langley
2025-05-22 12:38:17 -07:00
committed by Boringssl LUCI CQ
parent abd20d628d
commit c5795a3288
2 changed files with 8 additions and 3 deletions
+4 -2
View File
@@ -22,6 +22,8 @@ extern "C" {
#endif
// env_md_st is typoed ("evp" -> "env"), but the typo comes from OpenSSL and
// some consumers forward-declare these structures so we're leaving it alone.
struct env_md_st {
// type contains a NID identifing the digest function. (For example,
// NID_md5.)
@@ -55,11 +57,11 @@ struct env_md_st {
struct evp_md_pctx_ops {
// free is called when an |EVP_MD_CTX| is being freed and the |pctx| also
// needs to be freed.
void (*free) (EVP_PKEY_CTX *pctx);
void (*free)(EVP_PKEY_CTX *pctx);
// dup is called when an |EVP_MD_CTX| is copied and so the |pctx| also needs
// to be copied.
EVP_PKEY_CTX* (*dup) (EVP_PKEY_CTX *pctx);
EVP_PKEY_CTX *(*dup)(EVP_PKEY_CTX *pctx);
};
+4 -1
View File
@@ -15,7 +15,7 @@
#ifndef OPENSSL_HEADER_DIGEST_H
#define OPENSSL_HEADER_DIGEST_H
#include <openssl/base.h> // IWYU pragma: export
#include <openssl/base.h> // IWYU pragma: export
#if defined(__cplusplus)
extern "C" {
@@ -285,6 +285,9 @@ OPENSSL_EXPORT int EVP_MD_nid(const EVP_MD *md);
struct evp_md_pctx_ops;
// env_md_ctx_st is typoed ("evp" -> "env"), but the typo comes from OpenSSL
// and some consumers forward-declare these structures so we're leaving it
// alone.
struct env_md_ctx_st {
// digest is the underlying digest function, or NULL if not set.
const EVP_MD *digest;