Searched refs:sec_ctx (Results 1 – 2 of 2) sorted by relevance
440 static inline int pfkey_sec_ctx_len(const struct sadb_x_sec_ctx *sec_ctx) in pfkey_sec_ctx_len() argument443 sec_ctx->sadb_x_ctx_len, in pfkey_sec_ctx_len()449 const struct sadb_x_sec_ctx *sec_ctx = p; in verify_sec_ctx_len() local450 int len = sec_ctx->sadb_x_ctx_len; in verify_sec_ctx_len()455 len = pfkey_sec_ctx_len(sec_ctx); in verify_sec_ctx_len()457 if (sec_ctx->sadb_x_sec_len != len) in verify_sec_ctx_len()463 …inline struct xfrm_user_sec_ctx *pfkey_sadb2xfrm_user_sec_ctx(const struct sadb_x_sec_ctx *sec_ctx, in pfkey_sadb2xfrm_user_sec_ctx() argument467 int ctx_size = sec_ctx->sadb_x_ctx_len; in pfkey_sadb2xfrm_user_sec_ctx()474 uctx->len = pfkey_sec_ctx_len(sec_ctx); in pfkey_sadb2xfrm_user_sec_ctx()475 uctx->exttype = sec_ctx->sadb_x_sec_exttype; in pfkey_sadb2xfrm_user_sec_ctx()[all …]
4942 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument4945 return call_int_hook(xfrm_policy_alloc_security, ctxp, sec_ctx, gfp); in security_xfrm_policy_alloc()5002 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument5004 return call_int_hook(xfrm_state_alloc, x, sec_ctx); in security_xfrm_state_alloc()