diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2016-05-11 13:12:22 -0500 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2016-05-12 11:00:57 -0500 |
commit | 79f295f7fdbf10f912085b0aed22d81f465a1d68 (patch) | |
tree | 7f756d1fc4c9328aa792a8208f7041533f2ccf2c /sys/crypto | |
parent | ad9757e9045dfb7a1874be0663130fe1c0c2933d (diff) | |
download | FreeBSD-src-79f295f7fdbf10f912085b0aed22d81f465a1d68.zip FreeBSD-src-79f295f7fdbf10f912085b0aed22d81f465a1d68.tar.gz |
MFC r292963:
Break up opencrypto/xform.c so it can be reused piecemeal
Keep xform.c as a meta-file including the broken out bits
existing code that includes xform.c continues to work as normal
Individual algorithms can now be reused elsewhere, including outside
of the kernel
Reviewed by: bapt (previous version), gnn, delphij
Approved by: secteam
MFC after: 1 week
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D4674
TAG: IPSEC-HEAD
(cherry picked from commit 271bb86c6bc2052797fce3ea16d42b3a60ec388c)
Diffstat (limited to 'sys/crypto')
-rw-r--r-- | sys/crypto/sha1.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/crypto/sha1.h b/sys/crypto/sha1.h index 3686d7d..d32aa8a 100644 --- a/sys/crypto/sha1.h +++ b/sys/crypto/sha1.h @@ -53,6 +53,7 @@ struct sha1_ctxt { } m; u_int8_t count; }; +typedef struct sha1_ctxt SHA1_CTX; #ifdef _KERNEL extern void sha1_init(struct sha1_ctxt *); @@ -61,7 +62,6 @@ extern void sha1_loop(struct sha1_ctxt *, const u_int8_t *, size_t); extern void sha1_result(struct sha1_ctxt *, caddr_t); /* compatibilty with other SHA1 source codes */ -typedef struct sha1_ctxt SHA1_CTX; #define SHA1Init(x) sha1_init((x)) #define SHA1Update(x, y, z) sha1_loop((x), (y), (z)) #define SHA1Final(x, y) sha1_result((y), (x)) |