X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/5d5c5d0d5b79ade9a973d55186ffda2638ba2b6e..39236c6e673c41db228275375ab7fdb0f837b292:/bsd/netinet6/ah.h?ds=inline diff --git a/bsd/netinet6/ah.h b/bsd/netinet6/ah.h index e2a75ebd8..c649899d2 100644 --- a/bsd/netinet6/ah.h +++ b/bsd/netinet6/ah.h @@ -55,7 +55,7 @@ struct newah { /* variable size, 32bit bound*/ /* Authentication data */ }; -#ifdef KERNEL_PRIVATE +#ifdef BSD_KERNEL_PRIVATE struct secasvar; struct ah_algorithm_state { @@ -71,10 +71,10 @@ struct ah_algorithm { const char *name; int (*init)(struct ah_algorithm_state *, struct secasvar *); void (*update)(struct ah_algorithm_state *, caddr_t, size_t); - void (*result)(struct ah_algorithm_state *, caddr_t); + void (*result)(struct ah_algorithm_state *, caddr_t, size_t); }; -#define AH_MAXSUMSIZE 16 +#define AH_MAXSUMSIZE 64 // sha2-512's output size extern const struct ah_algorithm *ah_algorithm_lookup(int); @@ -83,9 +83,9 @@ extern int ah_hdrlen(struct secasvar *); extern size_t ah_hdrsiz(struct ipsecrequest *); extern void ah4_input(struct mbuf *, int); -extern int ah4_output(struct mbuf *, struct ipsecrequest *); +extern int ah4_output(struct mbuf *, struct secasvar *); extern int ah4_calccksum(struct mbuf *, caddr_t, size_t, const struct ah_algorithm *, struct secasvar *); -#endif KERNEL_PRIVATE +#endif /* BSD_KERNEL_PRIVATE */ #endif /* _NETINET6_AH_H_ */