diff options
author | Emil Velikov <[email protected]> | 2017-01-24 21:21:08 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-03-15 11:15:53 +0000 |
commit | c96127e873584e6ea3808d5cdb661d2135de1ff2 (patch) | |
tree | 4a334c7859470b2ffc7c510e692c0d21155abad6 /src | |
parent | ef43eeb09f675185d3ea580fc0e52a60b446383a (diff) |
util/sha1: add non-typedef name for the SHA1_CTX struct
Using typedef(s) is not always the answer and makes it harder for people
to do clever (or one might call nasty) things with the code.
Add a struct name which we will use with follow-up commit.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Grazvydas Ignotas <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/util/sha1/README | 3 | ||||
-rw-r--r-- | src/util/sha1/sha1.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/util/sha1/README b/src/util/sha1/README index f13baf9d1a8..f30acf984e3 100644 --- a/src/util/sha1/README +++ b/src/util/sha1/README @@ -57,3 +57,6 @@ Upstream status: TBD (N/A ?) - Manually expand __BEGIN_DECLS/__END_DECLS and make sure that they include the struct declaration. Upstream status: TBD + + - Add non-typedef struct name. +Upstream status: TBD diff --git a/src/util/sha1/sha1.h b/src/util/sha1/sha1.h index 243481a98e4..029a0ae87f1 100644 --- a/src/util/sha1/sha1.h +++ b/src/util/sha1/sha1.h @@ -20,7 +20,7 @@ extern "C" { #endif -typedef struct { +typedef struct _SHA1_CTX { uint32_t state[5]; uint64_t count; uint8_t buffer[SHA1_BLOCK_LENGTH]; |