diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-27 16:03:45 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-28 11:23:20 +0800 |
commit | 69b0137f6164a14993504d4cf5a61dabf79e6c43 (patch) | |
tree | 0654e06290f7940fdb693513c54dd9fa6c93699b /net/key | |
parent | 165ecc6373c7bfcd63da6dc489980c892fac2db9 (diff) | |
download | linux-stable-69b0137f6164a14993504d4cf5a61dabf79e6c43.tar.gz linux-stable-69b0137f6164a14993504d4cf5a61dabf79e6c43.tar.bz2 linux-stable-69b0137f6164a14993504d4cf5a61dabf79e6c43.zip |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c index f0d52d721b3a..3c5b8ce38ef4 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; */ |