xform_esp.c (286292) | xform_esp.c (288418) |
---|---|
1/* $FreeBSD: head/sys/netipsec/xform_esp.c 286292 2015-08-04 17:47:11Z jmg $ */ | 1/* $FreeBSD: head/sys/netipsec/xform_esp.c 288418 2015-09-30 08:16:33Z ae $ */ |
2/* $OpenBSD: ip_esp.c,v 1.69 2001/06/26 06:18:59 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 9 * for BSD/OS in Athens, Greece, in November 1995. --- 859 unchanged lines hidden (view full) --- 869 be32enc(&ivp[sav->ivlen + 4], 1); 870 } 871 872 m_copyback(m, skip + hlen - sav->ivlen, sav->ivlen, &ivp[4]); 873 crde->crd_flags |= CRD_F_IV_EXPLICIT|CRD_F_IV_PRESENT; 874 } 875 876 /* Callback parameters */ | 2/* $OpenBSD: ip_esp.c,v 1.69 2001/06/26 06:18:59 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 9 * for BSD/OS in Athens, Greece, in November 1995. --- 859 unchanged lines hidden (view full) --- 869 be32enc(&ivp[sav->ivlen + 4], 1); 870 } 871 872 m_copyback(m, skip + hlen - sav->ivlen, sav->ivlen, &ivp[4]); 873 crde->crd_flags |= CRD_F_IV_EXPLICIT|CRD_F_IV_PRESENT; 874 } 875 876 /* Callback parameters */ |
877 key_addref(isr->sp); |
|
877 tc->tc_isr = isr; 878 KEY_ADDREFSA(sav); 879 tc->tc_sav = sav; 880 tc->tc_spi = sav->spi; 881 tc->tc_dst = saidx->dst; 882 tc->tc_proto = saidx->proto; 883 884 /* Crypto operation descriptor. */ --- 141 unchanged lines hidden --- | 878 tc->tc_isr = isr; 879 KEY_ADDREFSA(sav); 880 tc->tc_sav = sav; 881 tc->tc_spi = sav->spi; 882 tc->tc_dst = saidx->dst; 883 tc->tc_proto = saidx->proto; 884 885 /* Crypto operation descriptor. */ --- 141 unchanged lines hidden --- |