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/md2_dgst.c | |
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/md2_dgst.c')
-rw-r--r-- | src/lib/libcrypto/md2/md2_dgst.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |