Searched refs:xfrm_ctx (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/net/key/
H A Daf_key.c732 struct xfrm_sec_ctx *xfrm_ctx; __pfkey_xfrm_state2msg() local
756 if ((xfrm_ctx = x->security)) { __pfkey_xfrm_state2msg()
757 ctx_size = PFKEY_ALIGN8(xfrm_ctx->ctx_len); __pfkey_xfrm_state2msg()
997 if (xfrm_ctx) { __pfkey_xfrm_state2msg()
1003 sec_ctx->sadb_x_ctx_doi = xfrm_ctx->ctx_doi; __pfkey_xfrm_state2msg()
1004 sec_ctx->sadb_x_ctx_alg = xfrm_ctx->ctx_alg; __pfkey_xfrm_state2msg()
1005 sec_ctx->sadb_x_ctx_len = xfrm_ctx->ctx_len; __pfkey_xfrm_state2msg()
1006 memcpy(sec_ctx + 1, xfrm_ctx->ctx_str, __pfkey_xfrm_state2msg()
1007 xfrm_ctx->ctx_len); __pfkey_xfrm_state2msg()
1959 struct xfrm_sec_ctx *xfrm_ctx = xp->security; pfkey_xfrm_policy2sec_ctx_size() local
1961 if (xfrm_ctx) { pfkey_xfrm_policy2sec_ctx_size()
1963 len += xfrm_ctx->ctx_len; pfkey_xfrm_policy2sec_ctx_size()
2012 struct xfrm_sec_ctx *xfrm_ctx; pfkey_xfrm_policy2msg() local
2141 if ((xfrm_ctx = xp->security)) { pfkey_xfrm_policy2msg()
2147 sec_ctx->sadb_x_ctx_doi = xfrm_ctx->ctx_doi; pfkey_xfrm_policy2msg()
2148 sec_ctx->sadb_x_ctx_alg = xfrm_ctx->ctx_alg; pfkey_xfrm_policy2msg()
2149 sec_ctx->sadb_x_ctx_len = xfrm_ctx->ctx_len; pfkey_xfrm_policy2msg()
2150 memcpy(sec_ctx + 1, xfrm_ctx->ctx_str, pfkey_xfrm_policy2msg()
2151 xfrm_ctx->ctx_len); pfkey_xfrm_policy2msg()
3088 struct xfrm_sec_ctx *xfrm_ctx; pfkey_send_acquire() local
3105 if ((xfrm_ctx = x->security)) { pfkey_send_acquire()
3106 ctx_size = PFKEY_ALIGN8(xfrm_ctx->ctx_len); pfkey_send_acquire()
3172 if (xfrm_ctx) { pfkey_send_acquire()
3178 sec_ctx->sadb_x_ctx_doi = xfrm_ctx->ctx_doi; pfkey_send_acquire()
3179 sec_ctx->sadb_x_ctx_alg = xfrm_ctx->ctx_alg; pfkey_send_acquire()
3180 sec_ctx->sadb_x_ctx_len = xfrm_ctx->ctx_len; pfkey_send_acquire()
3181 memcpy(sec_ctx + 1, xfrm_ctx->ctx_str, pfkey_send_acquire()
3182 xfrm_ctx->ctx_len); pfkey_send_acquire()
/linux-4.4.14/security/selinux/ss/
H A Dservices.c2823 struct context *xfrm_ctx; security_net_peersid_resolve() local
2858 xfrm_ctx = sidtab_search(&sidtab, xfrm_sid); security_net_peersid_resolve()
2859 if (!xfrm_ctx) { security_net_peersid_resolve()
2864 rc = (mls_context_cmp(nlbl_ctx, xfrm_ctx) ? 0 : -EACCES); security_net_peersid_resolve()
/linux-4.4.14/net/xfrm/
H A Dxfrm_user.c454 static inline int xfrm_user_sec_ctx_size(struct xfrm_sec_ctx *xfrm_ctx) xfrm_user_sec_ctx_size() argument
458 if (xfrm_ctx) { xfrm_user_sec_ctx_size()
460 len += xfrm_ctx->ctx_len; xfrm_user_sec_ctx_size()

Completed in 180 milliseconds