From af5501cdc561a4a5aba98ac02bcdc964f25c8544 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Thu, 19 Jan 2012 04:33:38 +0100 Subject: [PATCH] Introduce CRYPTO_SHA1_DIGEST_LENGTH and CRYPTO_MD5_DIGEST_LENGTH that hold number of bytes needed for a given hash. --- libfreerdp-core/crypto.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libfreerdp-core/crypto.h b/libfreerdp-core/crypto.h index 47322d5..f4eab41 100644 --- a/libfreerdp-core/crypto.h +++ b/libfreerdp-core/crypto.h @@ -78,11 +78,13 @@ struct crypto_cert_struct X509 * px509; }; +#define CRYPTO_SHA1_DIGEST_LENGTH SHA_DIGEST_LENGTH typedef struct crypto_sha1_struct* CryptoSha1; CryptoSha1 crypto_sha1_init(void); void crypto_sha1_update(CryptoSha1 sha1, const uint8* data, uint32 length); void crypto_sha1_final(CryptoSha1 sha1, uint8* out_data); +#define CRYPTO_MD5_DIGEST_LENGTH MD5_DIGEST_LENGTH typedef struct crypto_md5_struct* CryptoMd5; CryptoMd5 crypto_md5_init(void); void crypto_md5_update(CryptoMd5 md5, const uint8* data, uint32 length); -- 2.7.4