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>
diff --git a/crypto/fipsmodule/digest/internal.h b/crypto/fipsmodule/digest/internal.h
index 0e850c9..dca8e2c 100644
--- a/crypto/fipsmodule/digest/internal.h
+++ b/crypto/fipsmodule/digest/internal.h
@@ -22,6 +22,8 @@
#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 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);
};
diff --git a/include/openssl/digest.h b/include/openssl/digest.h
index 6abab76..b5f76c3 100644
--- a/include/openssl/digest.h
+++ b/include/openssl/digest.h
@@ -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 @@
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;