diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-04-17 10:55:22 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-04-17 10:55:22 +0200 |
commit | eeb4166266659b3aa9134c70200478d1b9ab52ff (patch) | |
tree | 5bb1f40518b5381cec21c8d4917012936b704f37 /src/microhttpd/md5_ext.h | |
parent | 46357a33c1c8bf16ca8649e2b3b18c720f54da2e (diff) | |
download | libmicrohttpd-eeb4166266659b3aa9134c70200478d1b9ab52ff.tar.gz libmicrohttpd-eeb4166266659b3aa9134c70200478d1b9ab52ff.zip |
-fix bogus assert, use proper libgcrypt type
Diffstat (limited to 'src/microhttpd/md5_ext.h')
-rw-r--r-- | src/microhttpd/md5_ext.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/microhttpd/md5_ext.h b/src/microhttpd/md5_ext.h index b7437c03..435991c1 100644 --- a/src/microhttpd/md5_ext.h +++ b/src/microhttpd/md5_ext.h | |||
@@ -16,13 +16,11 @@ | |||
16 | License along with GNU libmicrohttpd. | 16 | License along with GNU libmicrohttpd. |
17 | If not, see <http://www.gnu.org/licenses/>. | 17 | If not, see <http://www.gnu.org/licenses/>. |
18 | */ | 18 | */ |
19 | |||
20 | /** | 19 | /** |
21 | * @file microhttpd/md5_ext.h | 20 | * @file microhttpd/md5_ext.h |
22 | * @brief Wrapper declarations for MD5 calculation performed by TLS library | 21 | * @brief Wrapper declarations for MD5 calculation performed by TLS library |
23 | * @author Karlson2k (Evgeny Grin) | 22 | * @author Karlson2k (Evgeny Grin) |
24 | */ | 23 | */ |
25 | |||
26 | #ifndef MHD_MD5_EXT_H | 24 | #ifndef MHD_MD5_EXT_H |
27 | #define MHD_MD5_EXT_H 1 | 25 | #define MHD_MD5_EXT_H 1 |
28 | 26 | ||
@@ -31,6 +29,7 @@ | |||
31 | #ifdef HAVE_STDDEF_H | 29 | #ifdef HAVE_STDDEF_H |
32 | #include <stddef.h> /* for size_t */ | 30 | #include <stddef.h> /* for size_t */ |
33 | #endif /* HAVE_STDDEF_H */ | 31 | #endif /* HAVE_STDDEF_H */ |
32 | #include <gnutls/crypto.h> | ||
34 | 33 | ||
35 | /** | 34 | /** |
36 | * Size of MD5 resulting digest in bytes | 35 | * Size of MD5 resulting digest in bytes |
@@ -38,8 +37,6 @@ | |||
38 | */ | 37 | */ |
39 | #define MD5_DIGEST_SIZE (16) | 38 | #define MD5_DIGEST_SIZE (16) |
40 | 39 | ||
41 | /* Actual declaration is in GnuTLS lib header */ | ||
42 | struct hash_hd_st; | ||
43 | 40 | ||
44 | /** | 41 | /** |
45 | * Indicates that struct Md5CtxExt has 'ext_error' | 42 | * Indicates that struct Md5CtxExt has 'ext_error' |
@@ -51,7 +48,7 @@ struct hash_hd_st; | |||
51 | */ | 48 | */ |
52 | struct Md5CtxExt | 49 | struct Md5CtxExt |
53 | { | 50 | { |
54 | struct hash_hd_st *handle; /**< Hash calculation handle */ | 51 | gnutls_hash_hd_t handle; /**< Hash calculation handle */ |
55 | int ext_error; /**< Non-zero if external error occurs during init or hashing */ | 52 | int ext_error; /**< Non-zero if external error occurs during init or hashing */ |
56 | }; | 53 | }; |
57 | 54 | ||