Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 580686 | Differences between
and this patch

Collapse All | Expand All

(-)a/extras/ext4_utils/sha1.c (-3 lines)
Lines 17-25 Link Here
17
17
18
#define SHA1HANDSOFF		/* Copies data before messing with it. */
18
#define SHA1HANDSOFF		/* Copies data before messing with it. */
19
19
20
#ifndef USE_MINGW
21
#include <sys/cdefs.h>
22
#endif
23
#include <sys/types.h>
20
#include <sys/types.h>
24
#include <assert.h>
21
#include <assert.h>
25
#include <string.h>
22
#include <string.h>
(-)a/extras/ext4_utils/sha1.h (-7 / +6 lines)
Lines 17-27 Link Here
17
typedef unsigned int uint32_t;
17
typedef unsigned int uint32_t;
18
typedef unsigned int u_int32_t;
18
typedef unsigned int u_int32_t;
19
typedef unsigned int u_int;
19
typedef unsigned int u_int;
20
21
#define __BEGIN_DECLS
22
#define __END_DECLS
23
#else
24
#include <sys/cdefs.h>
25
#endif
20
#endif
26
21
27
#define SHA1_DIGEST_LENGTH		20
22
#define SHA1_DIGEST_LENGTH		20
Lines 33-43 Link Here
33
	u_char buffer[64];
28
	u_char buffer[64];
34
} SHA1_CTX;
29
} SHA1_CTX;
35
30
36
__BEGIN_DECLS
31
#ifdef __cplusplus
32
extern "C" {
33
#endif
37
void	SHA1Transform(uint32_t[5], const u_char[64]);
34
void	SHA1Transform(uint32_t[5], const u_char[64]);
38
void	SHA1Init(SHA1_CTX *);
35
void	SHA1Init(SHA1_CTX *);
39
void	SHA1Update(SHA1_CTX *, const u_char *, u_int);
36
void	SHA1Update(SHA1_CTX *, const u_char *, u_int);
40
void	SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *);
37
void	SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *);
41
__END_DECLS
38
#ifdef __cplusplus
39
}
40
#endif
42
41
43
#endif /* _SYS_SHA1_H_ */
42
#endif /* _SYS_SHA1_H_ */

Return to bug 580686