u_int32_t spi;
/** protocol, IPPROTO_ESP/IPPROTO_AH */
u_int8_t protocol;
+ /** hard lifetime of SA */
+ u_int32_t lifetime;
/** destination host address for this SPI */
host_t *dst;
struct {
.spi = ntohl(sa->spi),
};
IPSEC_SA_BUNDLE0 bundle = {
+ .lifetime = {
+ .lifetimeSeconds = inbound ? entry->isa.lifetime
+ : entry->osa.lifetime,
+ },
.saList = &ipsec,
.numSAs = 1,
.ipVersion = version,
.spi = spi,
.dst = local,
.protocol = protocol,
+ .lifetime = lifetime->time.life,
.encr = {
.alg = enc_alg,
.key = chunk_clone(enc_key),
.spi = spi,
.dst = entry->remote,
.protocol = protocol,
+ .lifetime = lifetime->time.life,
.encr = {
.alg = enc_alg,
.key = chunk_clone(enc_key),