/* variable size, 32bit bound*/ /* Authentication data */
};
-#ifdef KERNEL_PRIVATE
+#ifdef BSD_KERNEL_PRIVATE
struct secasvar;
struct ah_algorithm_state {
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);
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_ */