summaryrefslogtreecommitdiffstats
path: root/net/key
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-05-27 16:03:45 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-05-28 11:23:20 +0800
commit69b0137f6164a14993504d4cf5a61dabf79e6c43 (patch)
tree0654e06290f7940fdb693513c54dd9fa6c93699b /net/key
parent165ecc6373c7bfcd63da6dc489980c892fac2db9 (diff)
downloadop-kernel-dev-69b0137f6164a14993504d4cf5a61dabf79e6c43.zip
op-kernel-dev-69b0137f6164a14993504d4cf5a61dabf79e6c43.tar.gz
ipsec: Add IV generator information to xfrm_state
This patch adds IV generator information to xfrm_state. This is currently obtained from our own list of algorithm descriptions. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'net/key')
-rw-r--r--net/key/af_key.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c
index f0d52d7..3c5b8ce 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -1190,6 +1190,7 @@ static struct xfrm_state * pfkey_msg2xfrm_state(struct net *net,
memcpy(x->ealg->alg_key, key+1, keysize);
}
x->props.ealgo = sa->sadb_sa_encrypt;
+ x->geniv = a->uinfo.encr.geniv;
}
}
/* x->algo.flags = sa->sadb_sa_flags; */
OpenPOWER on IntegriCloud