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 (-4 / +6 lines)
Lines 20-27 Link Here
20
20
21
#define __BEGIN_DECLS
21
#define __BEGIN_DECLS
22
#define __END_DECLS
22
#define __END_DECLS
23
#else
24
#include <sys/cdefs.h>
25
#endif
23
#endif
26
24
27
#define SHA1_DIGEST_LENGTH		20
25
#define SHA1_DIGEST_LENGTH		20
Lines 33-43 Link Here
33
	u_char buffer[64];
31
	u_char buffer[64];
34
} SHA1_CTX;
32
} SHA1_CTX;
35
33
36
__BEGIN_DECLS
34
#ifdef __cplusplus
35
extern "C" {
36
#endif
37
void	SHA1Transform(uint32_t[5], const u_char[64]);
37
void	SHA1Transform(uint32_t[5], const u_char[64]);
38
void	SHA1Init(SHA1_CTX *);
38
void	SHA1Init(SHA1_CTX *);
39
void	SHA1Update(SHA1_CTX *, const u_char *, u_int);
39
void	SHA1Update(SHA1_CTX *, const u_char *, u_int);
40
void	SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *);
40
void	SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *);
41
__END_DECLS
41
#ifdef __cplusplus
42
}
43
#endif
42
44
43
#endif /* _SYS_SHA1_H_ */
45
#endif /* _SYS_SHA1_H_ */

Return to bug 580686