diff options
author | cmetz <cmetz@cvs.openbsd.org> | 1999-07-06 20:17:54 +0000 |
---|---|---|
committer | cmetz <cmetz@cvs.openbsd.org> | 1999-07-06 20:17:54 +0000 |
commit | b572bd87e759146844b72e7a327306a471ae69c7 (patch) | |
tree | 3e21a6f1fca265ba2767f46b76bfd8d2182243b9 /sys/netinet/ip_ipsp.h | |
parent | 1b325370253fe0a5d55ea7f66f9477a75800daaf (diff) |
Added support for TCP MD5 option (RFC 2385).
Diffstat (limited to 'sys/netinet/ip_ipsp.h')
-rw-r--r-- | sys/netinet/ip_ipsp.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/netinet/ip_ipsp.h b/sys/netinet/ip_ipsp.h index 02e861e3594..7c256a5767c 100644 --- a/sys/netinet/ip_ipsp.h +++ b/sys/netinet/ip_ipsp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipsp.h,v 1.37 1999/06/30 17:23:59 deraadt Exp $ */ +/* $OpenBSD: ip_ipsp.h,v 1.38 1999/07/06 20:17:52 cmetz Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -356,6 +356,7 @@ struct xformsw #define XF_OLD_ESP 3 /* RFCs 1829 & 1851 */ #define XF_NEW_AH 4 /* AH HMAC 96bits */ #define XF_NEW_ESP 5 /* ESP + auth 96bits + replay counter */ +#define XF_TCPSIGNATURE 6 /* TCP MD5 Signature option, RFC 2358 */ /* xform attributes */ #define XFT_AUTH 0x0001 @@ -494,6 +495,16 @@ extern int esp_new_output(struct mbuf *, struct sockaddr_encap *, struct tdb *, struct mbuf **); extern struct mbuf *esp_new_input(struct mbuf *, struct tdb *); +/* XF_TCPSIGNATURE */ +extern int tcp_signature_tdb_attach __P((void)); +extern int tcp_signature_tdb_init __P((struct tdb *, struct xformsw *, + struct ipsecinit *)); +extern int tcp_signature_tdb_zeroize __P((struct tdb *)); +extern struct mbuf *tcp_signature_tdb_input __P((struct mbuf *, struct tdb *)); +extern int tcp_signature_tdb_output __P((struct mbuf *, + struct sockaddr_encap *, struct tdb *, + struct mbuf **)); + /* Padding */ extern caddr_t m_pad(struct mbuf *, int, int); |