• Home
  • Raw
  • Download

Lines Matching refs:p

192 get_key(const void *p, const void *end,  in get_key()  argument
198 p = simple_get_bytes(p, end, &alg, sizeof(alg)); in get_key()
199 if (IS_ERR(p)) in get_key()
214 p = ERR_PTR(-EINVAL); in get_key()
217 p = simple_get_netobj(p, end, &key); in get_key()
218 if (IS_ERR(p)) in get_key()
236 return p; in get_key()
242 p = ERR_PTR(-EINVAL); in get_key()
244 return p; in get_key()
248 gss_import_v1_context(const void *p, const void *end, struct krb5_ctx *ctx) in gss_import_v1_context() argument
252 p = simple_get_bytes(p, end, &ctx->initiate, sizeof(ctx->initiate)); in gss_import_v1_context()
253 if (IS_ERR(p)) in gss_import_v1_context()
261 p = ERR_PTR(-EINVAL); in gss_import_v1_context()
269 if (unlikely(p + 20 > end || p + 20 < p)) { in gss_import_v1_context()
270 p = ERR_PTR(-EFAULT); in gss_import_v1_context()
273 p += 20; in gss_import_v1_context()
274 p = simple_get_bytes(p, end, &tmp, sizeof(tmp)); in gss_import_v1_context()
275 if (IS_ERR(p)) in gss_import_v1_context()
278 p = ERR_PTR(-ENOSYS); in gss_import_v1_context()
281 p = simple_get_bytes(p, end, &tmp, sizeof(tmp)); in gss_import_v1_context()
282 if (IS_ERR(p)) in gss_import_v1_context()
285 p = ERR_PTR(-ENOSYS); in gss_import_v1_context()
288 p = simple_get_bytes(p, end, &ctx->endtime, sizeof(ctx->endtime)); in gss_import_v1_context()
289 if (IS_ERR(p)) in gss_import_v1_context()
291 p = simple_get_bytes(p, end, &ctx->seq_send, sizeof(ctx->seq_send)); in gss_import_v1_context()
292 if (IS_ERR(p)) in gss_import_v1_context()
294 p = simple_get_netobj(p, end, &ctx->mech_used); in gss_import_v1_context()
295 if (IS_ERR(p)) in gss_import_v1_context()
297 p = get_key(p, end, ctx, &ctx->enc); in gss_import_v1_context()
298 if (IS_ERR(p)) in gss_import_v1_context()
300 p = get_key(p, end, ctx, &ctx->seq); in gss_import_v1_context()
301 if (IS_ERR(p)) in gss_import_v1_context()
303 if (p != end) { in gss_import_v1_context()
304 p = ERR_PTR(-EFAULT); in gss_import_v1_context()
317 return PTR_ERR(p); in gss_import_v1_context()
580 gss_import_v2_context(const void *p, const void *end, struct krb5_ctx *ctx, in gss_import_v2_context() argument
585 p = simple_get_bytes(p, end, &ctx->flags, sizeof(ctx->flags)); in gss_import_v2_context()
586 if (IS_ERR(p)) in gss_import_v2_context()
590 p = simple_get_bytes(p, end, &ctx->endtime, sizeof(ctx->endtime)); in gss_import_v2_context()
591 if (IS_ERR(p)) in gss_import_v2_context()
593 p = simple_get_bytes(p, end, &ctx->seq_send64, sizeof(ctx->seq_send64)); in gss_import_v2_context()
594 if (IS_ERR(p)) in gss_import_v2_context()
601 p = ERR_PTR(-EINVAL); in gss_import_v2_context()
604 p = simple_get_bytes(p, end, &ctx->enctype, sizeof(ctx->enctype)); in gss_import_v2_context()
605 if (IS_ERR(p)) in gss_import_v2_context()
614 p = ERR_PTR(-EINVAL); in gss_import_v2_context()
619 p = simple_get_bytes(p, end, ctx->Ksess, keylen); in gss_import_v2_context()
620 if (IS_ERR(p)) in gss_import_v2_context()
623 if (p != end) { in gss_import_v2_context()
624 p = ERR_PTR(-EINVAL); in gss_import_v2_context()
631 p = ERR_PTR(-ENOMEM); in gss_import_v2_context()
649 return PTR_ERR(p); in gss_import_v2_context()
653 gss_import_sec_context_kerberos(const void *p, size_t len, in gss_import_sec_context_kerberos() argument
658 const void *end = (const void *)((const char *)p + len); in gss_import_sec_context_kerberos()
667 ret = gss_import_v1_context(p, end, ctx); in gss_import_sec_context_kerberos()
669 ret = gss_import_v2_context(p, end, ctx, gfp_mask); in gss_import_sec_context_kerberos()