Lines Matching refs:args

161 	struct jose_cb_args *args = (struct jose_cb_args *)ctx->user;
171 if (args->is_jwe && !strncmp(ctx->path, "epk.", 4)) {
172 memcpy(args->jwk_jctx.path, ctx->path + 4,
174 memcpy(args->jwk_jctx.buf, ctx->buf, ctx->npos);
175 args->jwk_jctx.npos = ctx->npos;
178 args->jwk_jctx.path_match = 0;
179 lejp_check_path_match(&args->jwk_jctx);
181 if (args->jwk_jctx.path_match)
182 args->jwk_jctx.pst[args->jwk_jctx.pst_sp].
183 callback(&args->jwk_jctx, reason);
190 if (args->is_jwe && reason == LEJPCB_OBJECT_END && ctx->sp == 1 &&
192 args->jose->recipients++;
210 if (!args->is_jwe &&
212 &args->jose->alg)) {
219 if (args->is_jwe &&
221 &args->jose->alg)) {
231 lws_strnncpy(args->jose->typ, ctx->buf, ctx->npos,
232 sizeof(args->jose->typ));
262 if (!args->is_jwe) {
266 args->recipients_array = 1;
274 if (!args->is_jwe) {
278 args->recipients_array = 1;
283 if (!args->is_jwe) {
288 &args->jose->enc_alg)) {
297 if (!args->is_jwe)
302 if (!args->is_jwe)
309 if (!args->is_jwe)
315 if (!args->is_jwe)
321 if (!args->is_jwe)
326 if (!args->is_jwe)
331 if (!args->is_jwe)
335 if (!args->is_jwe)
349 if (*args->temp_len < ctx->npos) {
354 if (!args->jose->e[ctx->path_match - 1].buf) {
355 args->jose->e[ctx->path_match - 1].buf = (uint8_t *)args->temp;
356 args->jose->e[ctx->path_match - 1].len = 0;
359 memcpy(args->temp, ctx->buf, ctx->npos);
360 args->temp += ctx->npos;
361 *args->temp_len -= ctx->npos;
362 args->jose->e[ctx->path_match - 1].len += ctx->npos;
366 (const char *)args->jose->e[ctx->path_match - 1].buf,
367 (int)args->jose->e[ctx->path_match - 1].len,
368 (char *)args->jose->e[ctx->path_match - 1].buf,
369 (int)args->jose->e[ctx->path_match - 1].len + 1);
375 args->temp -= (int)args->jose->e[ctx->path_match - 1].len - n - 1;
376 *args->temp_len +=
377 (int)args->jose->e[ctx->path_match - 1].len - n - 1;
379 args->jose->e[ctx->path_match - 1].len = (uint32_t)n;
412 struct jose_cb_args args;
417 lws_jwk_init_jps(&args.jps,
420 lejp_construct(&args.jwk_jctx, cb_jwk, &args.jps,
424 args.is_jwe = (unsigned int)is_jwe;
425 args.temp = temp;
426 args.temp_len = temp_len;
427 args.jose = jose;
428 args.recip = 0;
429 args.recipients_array = 0;
432 lejp_construct(&jctx, lws_jws_jose_cb, &args, jws_jose,
442 if (!args.recipients_array && jose->recipient[0].unprot[LJJHI_ALG].buf)