summaryrefslogtreecommitdiffstats
path: root/net/key
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-05-27 10:03:45 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-05-28 05:23:20 +0200
commit69b0137f6164a14993504d4cf5a61dabf79e6c43 (patch)
tree0654e06290f7940fdb693513c54dd9fa6c93699b /net/key
parentxfrm: Add IV generator information to xfrm_algo_desc (diff)
downloadlinux-69b0137f6164a14993504d4cf5a61dabf79e6c43.tar.xz
linux-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.c1
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; */