diff options
author | djm <> | 2005-04-29 05:39:33 +0000 |
---|---|---|
committer | djm <> | 2005-04-29 05:39:33 +0000 |
commit | 68edd00d9258df93b1366c71ac124e0cadf7bc08 (patch) | |
tree | 3ce4ae2a9747bbc11aed1f95f9bbea92c41f8683 /src/lib/libcrypto/md2 | |
parent | f396ed0f5ce0af56bfde2e75e15cf1f52924c779 (diff) | |
download | openbsd-68edd00d9258df93b1366c71ac124e0cadf7bc08.tar.gz openbsd-68edd00d9258df93b1366c71ac124e0cadf7bc08.tar.bz2 openbsd-68edd00d9258df93b1366c71ac124e0cadf7bc08.zip |
resolve conflicts
Diffstat (limited to 'src/lib/libcrypto/md2')
-rw-r--r-- | src/lib/libcrypto/md2/md2.h | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/md2/md2_dgst.c | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libcrypto/md2/md2.h b/src/lib/libcrypto/md2/md2.h index ad9241455c..d0ef9da08e 100644 --- a/src/lib/libcrypto/md2/md2.h +++ b/src/lib/libcrypto/md2/md2.h | |||
@@ -80,6 +80,9 @@ typedef struct MD2state_st | |||
80 | } MD2_CTX; | 80 | } MD2_CTX; |
81 | 81 | ||
82 | const char *MD2_options(void); | 82 | const char *MD2_options(void); |
83 | #ifdef OPENSSL_FIPS | ||
84 | int private_MD2_Init(MD2_CTX *c); | ||
85 | #endif | ||
83 | int MD2_Init(MD2_CTX *c); | 86 | int MD2_Init(MD2_CTX *c); |
84 | int MD2_Update(MD2_CTX *c, const unsigned char *data, unsigned long len); | 87 | int MD2_Update(MD2_CTX *c, const unsigned char *data, unsigned long len); |
85 | int MD2_Final(unsigned char *md, MD2_CTX *c); | 88 | int MD2_Final(unsigned char *md, MD2_CTX *c); |
diff --git a/src/lib/libcrypto/md2/md2_dgst.c b/src/lib/libcrypto/md2/md2_dgst.c index ecb64f0ec4..8124acd687 100644 --- a/src/lib/libcrypto/md2/md2_dgst.c +++ b/src/lib/libcrypto/md2/md2_dgst.c | |||
@@ -62,6 +62,8 @@ | |||
62 | #include <openssl/md2.h> | 62 | #include <openssl/md2.h> |
63 | #include <openssl/opensslv.h> | 63 | #include <openssl/opensslv.h> |
64 | #include <openssl/crypto.h> | 64 | #include <openssl/crypto.h> |
65 | #include <openssl/fips.h> | ||
66 | #include <openssl/err.h> | ||
65 | 67 | ||
66 | const char *MD2_version="MD2" OPENSSL_VERSION_PTEXT; | 68 | const char *MD2_version="MD2" OPENSSL_VERSION_PTEXT; |
67 | 69 | ||
@@ -116,7 +118,7 @@ const char *MD2_options(void) | |||
116 | return("md2(int)"); | 118 | return("md2(int)"); |
117 | } | 119 | } |
118 | 120 | ||
119 | int MD2_Init(MD2_CTX *c) | 121 | FIPS_NON_FIPS_MD_Init(MD2) |
120 | { | 122 | { |
121 | c->num=0; | 123 | c->num=0; |
122 | memset(c->state,0,sizeof c->state); | 124 | memset(c->state,0,sizeof c->state); |