~ubuntu-branches/ubuntu/hardy/openswan/hardy-updates

« back to all changes in this revision

Viewing changes to linux/include/freeswan/ipsec_sha1.h

  • Committer: Bazaar Package Importer
  • Author(s): Rene Mayrhofer
  • Date: 2005-01-27 16:10:11 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050127161011-idgybmyz3vwhpfiq
Tags: 2.3.0-2
Urgency HIGH due to security issue and problems with build-deps in sarge.
* Fix the security issue. Please see
  http://www.idefense.com/application/poi/display?id=190&
      type=vulnerabilities&flashstatus=false
  for more details. Thanks to Martin Schulze for informing me about
  this issue.
  Closes: #292458: Openswan XAUTH/PAM Buffer Overflow Vulnerability
* Added a Build-Dependency to lynx.
  Closes: #291143: openswan: FTBFS: Missing build dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * RCSID $Id: ipsec_sha1.h,v 1.7 2002/09/10 01:45:09 mcr Exp $
3
 
 */
4
 
 
5
 
/*
6
 
 * Here is the original comment from the distribution:
7
 
 
8
 
SHA-1 in C
9
 
By Steve Reid <steve@edmweb.com>
10
 
100% Public Domain
11
 
 
12
 
 * Adapted for use by the IPSEC code by John Ioannidis
13
 
 */
14
 
 
15
 
 
16
 
#ifndef _IPSEC_SHA1_H_
17
 
#define _IPSEC_SHA1_H_
18
 
 
19
 
typedef struct
20
 
{
21
 
        __u32   state[5];
22
 
        __u32   count[2];
23
 
        __u8    buffer[64];
24
 
} SHA1_CTX;
25
 
 
26
 
void SHA1Transform(__u32 state[5], __u8 buffer[64]);
27
 
void SHA1Init(void *context);
28
 
void SHA1Update(void *context, unsigned char *data, __u32 len);
29
 
void SHA1Final(unsigned char digest[20], void *context);
30
 
 
31
 
 
32
 
#endif /* _IPSEC_SHA1_H_ */
33
 
 
34
 
/*
35
 
 * $Log: ipsec_sha1.h,v $
36
 
 * Revision 1.7  2002/09/10 01:45:09  mcr
37
 
 *      changed type of MD5_CTX and SHA1_CTX to void * so that
38
 
 *      the function prototypes would match, and could be placed
39
 
 *      into a pointer to a function.
40
 
 *
41
 
 * Revision 1.6  2002/04/24 07:36:47  mcr
42
 
 * Moved from ./klips/net/ipsec/ipsec_sha1.h,v
43
 
 *
44
 
 * Revision 1.5  1999/12/13 13:59:13  rgb
45
 
 * Quick fix to argument size to Update bugs.
46
 
 *
47
 
 * Revision 1.4  1999/12/07 18:16:23  rgb
48
 
 * Fixed comments at end of #endif lines.
49
 
 *
50
 
 * Revision 1.3  1999/04/06 04:54:27  rgb
51
 
 * Fix/Add RCSID Id: and Log: bits to make PHMDs happy.  This includes
52
 
 * patch shell fixes.
53
 
 *
54
 
 * Revision 1.2  1998/11/30 13:22:54  rgb
55
 
 * Rationalised all the klips kernel file headers.  They are much shorter
56
 
 * now and won't conflict under RH5.2.
57
 
 *
58
 
 * Revision 1.1  1998/06/18 21:27:50  henry
59
 
 * move sources from klips/src to klips/net/ipsec, to keep stupid
60
 
 * kernel-build scripts happier in the presence of symlinks
61
 
 *
62
 
 * Revision 1.2  1998/04/23 20:54:05  rgb
63
 
 * Fixed md5 and sha1 include file nesting issues, to be cleaned up when
64
 
 * verified.
65
 
 *
66
 
 * Revision 1.1  1998/04/09 03:04:21  henry
67
 
 * sources moved up from linux/net/ipsec
68
 
 * these two include files modified not to include others except in kernel
69
 
 *
70
 
 * Revision 1.1.1.1  1998/04/08 05:35:04  henry
71
 
 * RGB's ipsec-0.8pre2.tar.gz ipsec-0.8
72
 
 *
73
 
 * Revision 0.4  1997/01/15 01:28:15  ji
74
 
 * New transform
75
 
 *
76
 
 */