Home
last modified time | relevance | path

Searched refs:sec_ctx (Results 1 – 4 of 4) sorted by relevance

/linux-4.1.27/net/key/
Daf_key.c413 static inline int pfkey_sec_ctx_len(const struct sadb_x_sec_ctx *sec_ctx) in pfkey_sec_ctx_len() argument
416 sec_ctx->sadb_x_ctx_len, in pfkey_sec_ctx_len()
422 const struct sadb_x_sec_ctx *sec_ctx = p; in verify_sec_ctx_len() local
423 int len = sec_ctx->sadb_x_ctx_len; in verify_sec_ctx_len()
428 len = pfkey_sec_ctx_len(sec_ctx); in verify_sec_ctx_len()
430 if (sec_ctx->sadb_x_sec_len != len) in verify_sec_ctx_len()
436 …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() argument
440 int ctx_size = sec_ctx->sadb_x_ctx_len; in pfkey_sadb2xfrm_user_sec_ctx()
447 uctx->len = pfkey_sec_ctx_len(sec_ctx); in pfkey_sadb2xfrm_user_sec_ctx()
448 uctx->exttype = sec_ctx->sadb_x_sec_exttype; in pfkey_sadb2xfrm_user_sec_ctx()
[all …]
/linux-4.1.27/include/linux/
Dsecurity.h1723 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp);
1728 struct xfrm_user_sec_ctx *sec_ctx);
2932 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp);
2936 int security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx);
2951 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument
2972 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument
/linux-4.1.27/security/
Dsecurity.c1367 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument
1370 return security_ops->xfrm_policy_alloc_security(ctxp, sec_ctx, gfp); in security_xfrm_policy_alloc()
1392 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument
1394 return security_ops->xfrm_state_alloc(x, sec_ctx); in security_xfrm_state_alloc()
Dcapability.c783 struct xfrm_user_sec_ctx *sec_ctx, in cap_xfrm_policy_alloc_security() argument
805 struct xfrm_user_sec_ctx *sec_ctx) in cap_xfrm_state_alloc() argument