diff options
author | beck <> | 2000-03-19 11:13:58 +0000 |
---|---|---|
committer | beck <> | 2000-03-19 11:13:58 +0000 |
commit | 796d609550df3a33fc11468741c5d2f6d3df4c11 (patch) | |
tree | 6c6d539061caa20372dad0ac4ddb1dfae2fbe7fe /src/lib/libcrypto/md2 | |
parent | 5be3114c1fd7e0dfea1e38d3abb4cbba75244419 (diff) | |
download | openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.tar.gz openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.tar.bz2 openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.zip |
OpenSSL 0.9.5 merge
*warning* this bumps shared lib minors for libssl and libcrypto from 2.1 to 2.2
if you are using the ssl26 packages for ssh and other things to work you will
need to get new ones (see ~beck/libsslsnap/<arch>) on cvs or ~beck/src-patent.tar.gz on cvs
Diffstat (limited to 'src/lib/libcrypto/md2')
-rw-r--r-- | src/lib/libcrypto/md2/Makefile.ssl | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/md2/md2.h | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/md2/md2_dgst.c | 8 | ||||
-rw-r--r-- | src/lib/libcrypto/md2/md2_one.c | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/md2/md2test.c | 4 |
5 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/libcrypto/md2/Makefile.ssl b/src/lib/libcrypto/md2/Makefile.ssl index 4274354b5f..eab615a5be 100644 --- a/src/lib/libcrypto/md2/Makefile.ssl +++ b/src/lib/libcrypto/md2/Makefile.ssl | |||
@@ -84,5 +84,5 @@ md2_one.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h | |||
84 | md2_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h | 84 | md2_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h |
85 | md2_one.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | 85 | md2_one.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h |
86 | md2_one.o: ../../include/openssl/md2.h ../../include/openssl/opensslconf.h | 86 | md2_one.o: ../../include/openssl/md2.h ../../include/openssl/opensslconf.h |
87 | md2_one.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h | 87 | md2_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h |
88 | md2_one.o: ../cryptlib.h | 88 | md2_one.o: ../../include/openssl/stack.h ../cryptlib.h |
diff --git a/src/lib/libcrypto/md2/md2.h b/src/lib/libcrypto/md2/md2.h index 0d3592506c..582bffb859 100644 --- a/src/lib/libcrypto/md2/md2.h +++ b/src/lib/libcrypto/md2/md2.h | |||
@@ -81,9 +81,9 @@ typedef struct MD2state_st | |||
81 | 81 | ||
82 | const char *MD2_options(void); | 82 | const char *MD2_options(void); |
83 | void MD2_Init(MD2_CTX *c); | 83 | void MD2_Init(MD2_CTX *c); |
84 | void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len); | 84 | void MD2_Update(MD2_CTX *c, const unsigned char *data, unsigned long len); |
85 | void MD2_Final(unsigned char *md, MD2_CTX *c); | 85 | void MD2_Final(unsigned char *md, MD2_CTX *c); |
86 | unsigned char *MD2(unsigned char *d, unsigned long n,unsigned char *md); | 86 | unsigned char *MD2(const unsigned char *d, unsigned long n,unsigned char *md); |
87 | #ifdef __cplusplus | 87 | #ifdef __cplusplus |
88 | } | 88 | } |
89 | #endif | 89 | #endif |
diff --git a/src/lib/libcrypto/md2/md2_dgst.c b/src/lib/libcrypto/md2/md2_dgst.c index c7d8d6aef5..608baefa8f 100644 --- a/src/lib/libcrypto/md2/md2_dgst.c +++ b/src/lib/libcrypto/md2/md2_dgst.c | |||
@@ -69,9 +69,9 @@ const char *MD2_version="MD2" OPENSSL_VERSION_PTEXT; | |||
69 | 69 | ||
70 | #define UCHAR unsigned char | 70 | #define UCHAR unsigned char |
71 | 71 | ||
72 | static void md2_block(MD2_CTX *c, unsigned char *d); | 72 | static void md2_block(MD2_CTX *c, const unsigned char *d); |
73 | /* The magic S table - I have converted it to hex since it is | 73 | /* The magic S table - I have converted it to hex since it is |
74 | * basicaly just a random byte string. */ | 74 | * basically just a random byte string. */ |
75 | static MD2_INT S[256]={ | 75 | static MD2_INT S[256]={ |
76 | 0x29, 0x2E, 0x43, 0xC9, 0xA2, 0xD8, 0x7C, 0x01, | 76 | 0x29, 0x2E, 0x43, 0xC9, 0xA2, 0xD8, 0x7C, 0x01, |
77 | 0x3D, 0x36, 0x54, 0xA1, 0xEC, 0xF0, 0x06, 0x13, | 77 | 0x3D, 0x36, 0x54, 0xA1, 0xEC, 0xF0, 0x06, 0x13, |
@@ -123,7 +123,7 @@ void MD2_Init(MD2_CTX *c) | |||
123 | memset(c->data,0,MD2_BLOCK); | 123 | memset(c->data,0,MD2_BLOCK); |
124 | } | 124 | } |
125 | 125 | ||
126 | void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len) | 126 | void MD2_Update(MD2_CTX *c, const unsigned char *data, unsigned long len) |
127 | { | 127 | { |
128 | register UCHAR *p; | 128 | register UCHAR *p; |
129 | 129 | ||
@@ -161,7 +161,7 @@ void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len) | |||
161 | c->num=(int)len; | 161 | c->num=(int)len; |
162 | } | 162 | } |
163 | 163 | ||
164 | static void md2_block(MD2_CTX *c, unsigned char *d) | 164 | static void md2_block(MD2_CTX *c, const unsigned char *d) |
165 | { | 165 | { |
166 | register MD2_INT t,*sp1,*sp2; | 166 | register MD2_INT t,*sp1,*sp2; |
167 | register int i,j; | 167 | register int i,j; |
diff --git a/src/lib/libcrypto/md2/md2_one.c b/src/lib/libcrypto/md2/md2_one.c index 7157299d95..b12c37ce4d 100644 --- a/src/lib/libcrypto/md2/md2_one.c +++ b/src/lib/libcrypto/md2/md2_one.c | |||
@@ -63,7 +63,7 @@ | |||
63 | /* This is a separate file so that #defines in cryptlib.h can | 63 | /* This is a separate file so that #defines in cryptlib.h can |
64 | * map my MD functions to different names */ | 64 | * map my MD functions to different names */ |
65 | 65 | ||
66 | unsigned char *MD2(unsigned char *d, unsigned long n, unsigned char *md) | 66 | unsigned char *MD2(const unsigned char *d, unsigned long n, unsigned char *md) |
67 | { | 67 | { |
68 | MD2_CTX c; | 68 | MD2_CTX c; |
69 | static unsigned char m[MD2_DIGEST_LENGTH]; | 69 | static unsigned char m[MD2_DIGEST_LENGTH]; |
diff --git a/src/lib/libcrypto/md2/md2test.c b/src/lib/libcrypto/md2/md2test.c index 461d124957..e3f4fb4c34 100644 --- a/src/lib/libcrypto/md2/md2test.c +++ b/src/lib/libcrypto/md2/md2test.c | |||
@@ -73,7 +73,7 @@ int main(int argc, char *argv[]) | |||
73 | #include <openssl/ebcdic.h> | 73 | #include <openssl/ebcdic.h> |
74 | #endif | 74 | #endif |
75 | 75 | ||
76 | char *test[]={ | 76 | static char *test[]={ |
77 | "", | 77 | "", |
78 | "a", | 78 | "a", |
79 | "abc", | 79 | "abc", |
@@ -84,7 +84,7 @@ char *test[]={ | |||
84 | NULL, | 84 | NULL, |
85 | }; | 85 | }; |
86 | 86 | ||
87 | char *ret[]={ | 87 | static char *ret[]={ |
88 | "8350e5a3e24c153df2275c9f80692773", | 88 | "8350e5a3e24c153df2275c9f80692773", |
89 | "32ec01ec4a6dac72c0ab96fb34c0b5d1", | 89 | "32ec01ec4a6dac72c0ab96fb34c0b5d1", |
90 | "da853b0d3f88d99b30283a69e6ded6bb", | 90 | "da853b0d3f88d99b30283a69e6ded6bb", |