aboutsummaryrefslogtreecommitdiffstats
path: root/security/heimdal/files/patch-cs
blob: 6d774125905a6cfeb9ea76dedf119ac5d5dd8542 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- lib/otp/otp_md.c.orig	Tue Jul 11 19:26:43 2000
+++ lib/otp/otp_md.c	Thu Jan  4 09:38:17 2001
@@ -212,7 +212,7 @@
  */
 
 static void
-SHA1Final_little_endian (void *res, struct sha1 *m)
+SHA1Final_little_endian (void *res, SHA_CTX *m)
 {
   unsigned char tmp[20];
   unsigned char *p = res;
@@ -231,7 +231,7 @@
 otp_sha_init (OtpKey key, const char *pwd, const char *seed)
 {
   unsigned char res[20];
-  struct sha1 sha1;
+  SHA_CTX sha1;
 
   return otp_md_init (key, pwd, seed, 
 		      (void (*)(void *))SHA1Init, 
@@ -245,7 +245,7 @@
 	      size_t len,
 	      unsigned char *res)
 {
-  struct sha1 sha1;
+  SHA_CTX sha1;
 
   return otp_md_hash (data, len,
 		      (void (*)(void *))SHA1Init,
@@ -258,7 +258,7 @@
 otp_sha_next (OtpKey key)
 {
   unsigned char res[20];
-  struct sha1 sha1;
+  SHA_CTX sha1;
 
   return otp_md_next (key, 
 		      (void (*)(void *))SHA1Init,