diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2012-10-13 21:25:15 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2012-10-13 21:25:15 +0000 |
commit | 426a154a830ca2d9bae74612741ff86332f5c66e (patch) | |
tree | 7937e26cb4336f7a8bfd41a8238859a89e83e4b3 /lib/libcrypto/md5 | |
parent | 1ab62f029308adf86f7a805afd722d5170be8c34 (diff) |
resolve conflicts
Diffstat (limited to 'lib/libcrypto/md5')
-rw-r--r-- | lib/libcrypto/md5/md5.h | 3 | ||||
-rw-r--r-- | lib/libcrypto/md5/md5_dgst.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/libcrypto/md5/md5.h b/lib/libcrypto/md5/md5.h index 4cbf84386b3..541cc925feb 100644 --- a/lib/libcrypto/md5/md5.h +++ b/lib/libcrypto/md5/md5.h @@ -105,6 +105,9 @@ typedef struct MD5state_st unsigned int num; } MD5_CTX; +#ifdef OPENSSL_FIPS +int private_MD5_Init(MD5_CTX *c); +#endif int MD5_Init(MD5_CTX *c); int MD5_Update(MD5_CTX *c, const void *data, size_t len); int MD5_Final(unsigned char *md, MD5_CTX *c); diff --git a/lib/libcrypto/md5/md5_dgst.c b/lib/libcrypto/md5/md5_dgst.c index beace632e3a..265890de52b 100644 --- a/lib/libcrypto/md5/md5_dgst.c +++ b/lib/libcrypto/md5/md5_dgst.c @@ -59,6 +59,7 @@ #include <stdio.h> #include "md5_locl.h" #include <openssl/opensslv.h> +#include <openssl/crypto.h> const char MD5_version[]="MD5" OPENSSL_VERSION_PTEXT; @@ -70,7 +71,7 @@ const char MD5_version[]="MD5" OPENSSL_VERSION_PTEXT; #define INIT_DATA_C (unsigned long)0x98badcfeL #define INIT_DATA_D (unsigned long)0x10325476L -int MD5_Init(MD5_CTX *c) +fips_md_init(MD5) { memset (c,0,sizeof(*c)); c->A=INIT_DATA_A; |