summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/md2
diff options
context:
space:
mode:
authorbeck <>2000-03-19 11:13:58 +0000
committerbeck <>2000-03-19 11:13:58 +0000
commit796d609550df3a33fc11468741c5d2f6d3df4c11 (patch)
tree6c6d539061caa20372dad0ac4ddb1dfae2fbe7fe /src/lib/libcrypto/md2
parent5be3114c1fd7e0dfea1e38d3abb4cbba75244419 (diff)
downloadopenbsd-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.ssl4
-rw-r--r--src/lib/libcrypto/md2/md2.h4
-rw-r--r--src/lib/libcrypto/md2/md2_dgst.c8
-rw-r--r--src/lib/libcrypto/md2/md2_one.c2
-rw-r--r--src/lib/libcrypto/md2/md2test.c4
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
84md2_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h 84md2_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
85md2_one.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 85md2_one.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
86md2_one.o: ../../include/openssl/md2.h ../../include/openssl/opensslconf.h 86md2_one.o: ../../include/openssl/md2.h ../../include/openssl/opensslconf.h
87md2_one.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h 87md2_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
88md2_one.o: ../cryptlib.h 88md2_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
82const char *MD2_options(void); 82const char *MD2_options(void);
83void MD2_Init(MD2_CTX *c); 83void MD2_Init(MD2_CTX *c);
84void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len); 84void MD2_Update(MD2_CTX *c, const unsigned char *data, unsigned long len);
85void MD2_Final(unsigned char *md, MD2_CTX *c); 85void MD2_Final(unsigned char *md, MD2_CTX *c);
86unsigned char *MD2(unsigned char *d, unsigned long n,unsigned char *md); 86unsigned 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
72static void md2_block(MD2_CTX *c, unsigned char *d); 72static 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. */
75static MD2_INT S[256]={ 75static 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
126void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len) 126void 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
164static void md2_block(MD2_CTX *c, unsigned char *d) 164static 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
66unsigned char *MD2(unsigned char *d, unsigned long n, unsigned char *md) 66unsigned 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
76char *test[]={ 76static 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
87char *ret[]={ 87static char *ret[]={
88 "8350e5a3e24c153df2275c9f80692773", 88 "8350e5a3e24c153df2275c9f80692773",
89 "32ec01ec4a6dac72c0ab96fb34c0b5d1", 89 "32ec01ec4a6dac72c0ab96fb34c0b5d1",
90 "da853b0d3f88d99b30283a69e6ded6bb", 90 "da853b0d3f88d99b30283a69e6ded6bb",