xform_ah.c (d2549a448dd8ee465f172f71d93733538afbd19d) | xform_ah.c (39bbca6ffd794bb72156fb8053ad0ea03ac98e19) |
---|---|
1/* $FreeBSD$ */ 2/* $OpenBSD: ip_ah.c,v 1.63 2001/06/26 06:18:58 angelos Exp $ */ 3/*- 4 * The authors of this code are John Ioannidis (ji@tla.org), 5 * Angelos D. Keromytis (kermit@csd.uch.gr) and 6 * Niels Provos (provos@physnet.uni-hamburg.de). 7 * 8 * The original version of this code was written by John Ioannidis --- 643 unchanged lines hidden (view full) --- 652 crypto_freereq(crp); 653 key_freesav(&sav); 654 return (error); 655 } 656 657 /* Crypto operation descriptor. */ 658 crp->crp_ilen = m->m_pkthdr.len; /* Total input length. */ 659 crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_CBIFSYNC; | 1/* $FreeBSD$ */ 2/* $OpenBSD: ip_ah.c,v 1.63 2001/06/26 06:18:58 angelos Exp $ */ 3/*- 4 * The authors of this code are John Ioannidis (ji@tla.org), 5 * Angelos D. Keromytis (kermit@csd.uch.gr) and 6 * Niels Provos (provos@physnet.uni-hamburg.de). 7 * 8 * The original version of this code was written by John Ioannidis --- 643 unchanged lines hidden (view full) --- 652 crypto_freereq(crp); 653 key_freesav(&sav); 654 return (error); 655 } 656 657 /* Crypto operation descriptor. */ 658 crp->crp_ilen = m->m_pkthdr.len; /* Total input length. */ 659 crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_CBIFSYNC; |
660 if (V_async_crypto) 661 crp->crp_flags |= CRYPTO_F_ASYNC | CRYPTO_F_ASYNC_KEEPORDER; |
|
660 crp->crp_buf = (caddr_t) m; 661 crp->crp_callback = ah_input_cb; 662 crp->crp_sid = cryptoid; 663 crp->crp_opaque = (caddr_t) xd; 664 665 /* These are passed as-is to the callback. */ 666 xd->sav = sav; 667 xd->nxt = ah->ah_nxt; --- 360 unchanged lines hidden (view full) --- 1028 free(xd, M_XDATA); 1029 crypto_freereq(crp); 1030 goto bad; 1031 } 1032 1033 /* Crypto operation descriptor. */ 1034 crp->crp_ilen = m->m_pkthdr.len; /* Total input length. */ 1035 crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_CBIFSYNC; | 662 crp->crp_buf = (caddr_t) m; 663 crp->crp_callback = ah_input_cb; 664 crp->crp_sid = cryptoid; 665 crp->crp_opaque = (caddr_t) xd; 666 667 /* These are passed as-is to the callback. */ 668 xd->sav = sav; 669 xd->nxt = ah->ah_nxt; --- 360 unchanged lines hidden (view full) --- 1030 free(xd, M_XDATA); 1031 crypto_freereq(crp); 1032 goto bad; 1033 } 1034 1035 /* Crypto operation descriptor. */ 1036 crp->crp_ilen = m->m_pkthdr.len; /* Total input length. */ 1037 crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_CBIFSYNC; |
1038 if (V_async_crypto) 1039 crp->crp_flags |= CRYPTO_F_ASYNC | CRYPTO_F_ASYNC_KEEPORDER; |
|
1036 crp->crp_buf = (caddr_t) m; 1037 crp->crp_callback = ah_output_cb; 1038 crp->crp_sid = cryptoid; 1039 crp->crp_opaque = (caddr_t) xd; 1040 1041 /* These are passed as-is to the callback. */ 1042 xd->sp = sp; 1043 xd->sav = sav; --- 107 unchanged lines hidden --- | 1040 crp->crp_buf = (caddr_t) m; 1041 crp->crp_callback = ah_output_cb; 1042 crp->crp_sid = cryptoid; 1043 crp->crp_opaque = (caddr_t) xd; 1044 1045 /* These are passed as-is to the callback. */ 1046 xd->sp = sp; 1047 xd->sav = sav; --- 107 unchanged lines hidden --- |