summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2f713da)
sha1.h simply shouldn't use it while sha1.c simply doesn't
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
#define SHA1HANDSOFF /* Copies data before messing with it. */
#define SHA1HANDSOFF /* Copies data before messing with it. */
#include <sys/types.h>
#include <assert.h>
#include <string.h>
#include <sys/types.h>
#include <assert.h>
#include <string.h>
#define _SYS_SHA1_H_
#include <sys/types.h>
#define _SYS_SHA1_H_
#include <sys/types.h>
#include <stdint.h>
#define SHA1_DIGEST_LENGTH 20
#include <stdint.h>
#define SHA1_DIGEST_LENGTH 20
u_char buffer[64];
} SHA1_CTX;
u_char buffer[64];
} SHA1_CTX;
+#ifdef __cplusplus
+extern "C" {
+#endif
void SHA1Transform(uint32_t[5], const u_char[64]);
void SHA1Init(SHA1_CTX *);
void SHA1Update(SHA1_CTX *, const u_char *, u_int);
void SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *);
void SHA1Transform(uint32_t[5], const u_char[64]);
void SHA1Init(SHA1_CTX *);
void SHA1Update(SHA1_CTX *, const u_char *, u_int);
void SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *);
+#ifdef __cplusplus
+}
+#endif
#endif /* _SYS_SHA1_H_ */
#endif /* _SYS_SHA1_H_ */