diff options
| author | djm <> | 2009-01-09 12:14:09 +0000 |
|---|---|---|
| committer | djm <> | 2009-01-09 12:14:09 +0000 |
| commit | c38e9fa1885187364cfeba026e9bf38d6845886f (patch) | |
| tree | 9b645adc5cf0aa0820e1501ee5c6f2c41c454e7c /src/lib/libcrypto/md2 | |
| parent | 221e4bfdc56c7ec8942006900694c958c515c143 (diff) | |
| download | openbsd-c38e9fa1885187364cfeba026e9bf38d6845886f.tar.gz openbsd-c38e9fa1885187364cfeba026e9bf38d6845886f.tar.bz2 openbsd-c38e9fa1885187364cfeba026e9bf38d6845886f.zip | |
import openssl-0.9.8j
Diffstat (limited to 'src/lib/libcrypto/md2')
| -rw-r--r-- | src/lib/libcrypto/md2/Makefile | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/md2/md2.h | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/md2/md2_dgst.c | 7 |
3 files changed, 13 insertions, 3 deletions
diff --git a/src/lib/libcrypto/md2/Makefile b/src/lib/libcrypto/md2/Makefile index 17f878aeb7..7f43321ab2 100644 --- a/src/lib/libcrypto/md2/Makefile +++ b/src/lib/libcrypto/md2/Makefile | |||
| @@ -33,7 +33,7 @@ top: | |||
| 33 | all: lib | 33 | all: lib |
| 34 | 34 | ||
| 35 | lib: $(LIBOBJ) | 35 | lib: $(LIBOBJ) |
| 36 | $(AR) $(LIB) $(LIBOBJ) | 36 | $(ARX) $(LIB) $(LIBOBJ) |
| 37 | $(RANLIB) $(LIB) || echo Never mind. | 37 | $(RANLIB) $(LIB) || echo Never mind. |
| 38 | @touch lib | 38 | @touch lib |
| 39 | 39 | ||
| @@ -74,7 +74,9 @@ clean: | |||
| 74 | 74 | ||
| 75 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 75 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
| 76 | 76 | ||
| 77 | md2_dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h | 77 | md2_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h |
| 78 | md2_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 79 | md2_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h | ||
| 78 | md2_dgst.o: ../../include/openssl/md2.h ../../include/openssl/opensslconf.h | 80 | md2_dgst.o: ../../include/openssl/md2.h ../../include/openssl/opensslconf.h |
| 79 | md2_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | 81 | md2_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h |
| 80 | md2_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | 82 | md2_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h |
diff --git a/src/lib/libcrypto/md2/md2.h b/src/lib/libcrypto/md2/md2.h index a46120e7d4..d59c9f2593 100644 --- a/src/lib/libcrypto/md2/md2.h +++ b/src/lib/libcrypto/md2/md2.h | |||
| @@ -81,6 +81,9 @@ typedef struct MD2state_st | |||
| 81 | } MD2_CTX; | 81 | } MD2_CTX; |
| 82 | 82 | ||
| 83 | const char *MD2_options(void); | 83 | const char *MD2_options(void); |
| 84 | #ifdef OPENSSL_FIPS | ||
| 85 | int private_MD2_Init(MD2_CTX *c); | ||
| 86 | #endif | ||
| 84 | int MD2_Init(MD2_CTX *c); | 87 | int MD2_Init(MD2_CTX *c); |
| 85 | int MD2_Update(MD2_CTX *c, const unsigned char *data, size_t len); | 88 | int MD2_Update(MD2_CTX *c, const unsigned char *data, size_t len); |
| 86 | int MD2_Final(unsigned char *md, MD2_CTX *c); | 89 | 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 6f68b25c6a..cc4eeaf7a7 100644 --- a/src/lib/libcrypto/md2/md2_dgst.c +++ b/src/lib/libcrypto/md2/md2_dgst.c | |||
| @@ -62,6 +62,11 @@ | |||
| 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 | #ifdef OPENSSL_FIPS | ||
| 66 | #include <openssl/fips.h> | ||
| 67 | #endif | ||
| 68 | |||
| 69 | #include <openssl/err.h> | ||
| 65 | 70 | ||
| 66 | const char MD2_version[]="MD2" OPENSSL_VERSION_PTEXT; | 71 | const char MD2_version[]="MD2" OPENSSL_VERSION_PTEXT; |
| 67 | 72 | ||
| @@ -116,7 +121,7 @@ const char *MD2_options(void) | |||
| 116 | return("md2(int)"); | 121 | return("md2(int)"); |
| 117 | } | 122 | } |
| 118 | 123 | ||
| 119 | int MD2_Init(MD2_CTX *c) | 124 | FIPS_NON_FIPS_MD_Init(MD2) |
| 120 | { | 125 | { |
| 121 | c->num=0; | 126 | c->num=0; |
| 122 | memset(c->state,0,sizeof c->state); | 127 | memset(c->state,0,sizeof c->state); |
